Template:Random card/doc

Returns a random card from Special:CargoTables/Cards, filtered for any combination of faction, card type, unit type, and rarity. Random selection is done using the RandomSelection extension. Results are not cached, so every reload of the page should yield a new selection.

Card appearance uses Template:Card.

Usage


If called simply as, it will pick randomly pick any card with no limitation.


 * can be a comma-separated list of any combination of the following terms: Winter Pact, Swarm of the East, Tribes of Shadowfen, Ironclad, Neutral, Spell, Unit, Hero, Structure, Dwarf, Frostling, Raven, Toad, Undead, Satyr, Construct, Rodent, Knight, Pirate, Dragon, Common, Rare, Epic, Legendary


 * Optional. Identical to, but uses an OR relation instead of AND. If combined with  , it is evaluated as  , where cards will be returned if they match everything in   or anything in  . If combined with  , campaign_only will be compared as an AND against the sum final query.


 * Optional. If 0, cards that are only available in campaign will not be returned. If 1, only cards that are available in campaign will be returned. If left blank or not defined, both will appear in the list.

Examples
Cards that are in Winter Pact and are Dwarves 

Cards that are Knights and of Common rarity 

Cards that are Spells and of Epic rarity 

All cards that are only available in campaign 

Cards that are Pirates or Undead 

Cards that are in Winter Pact or are Satyrs, and are campaign-only 

Cards that are in Winter Pact, are a Hero, are a Dwarf, are of Legendary rarity, and are not campaign-only... or are Knights 

Cards that are in Ironclad Union and are Frostlings (none) 

Helper templates

 * Template:Random card/intro
 * Template:Random card/delimiter
 * Template:Random card/outro