Template:Custom card table

This template shows a table listing cards according to the criteria specified to the parameters below.

Note: All parameters below are optional. If left blank, they will not affect what cards are shown.

{{Custom card table
|categoryname=the exact name of a category to get cards from, not including the Category prefix. Multiple names can be provided separated by commas, and cards are returned only if they are in all the given categories.
|category=name prefix of category to get cards from, should match that used for the category parameter on Card infobox. Multiple names can be provided separated by commas, and cards are returned only if they are in all the given categories.
|name=name of card(s) to show
|type=type of cards to show
|subtype=subtype of cards to show
|class=class of cards to show, using "Any" for neutral cards
|multiclass=multiclass of cards to show
|rarity=rarity of cards to show
|mana=mana cost of cards to show (a range can be specified using a minimum and maximum separated by ~)
|attack=attack value of cards to show (a range can be specified using a minimum and maximum separated by ~)
|health=health value of cards to show (a range can be specified using a minimum and maximum separated by ~)
|gold=True to show only cards with a gold version, False to show only cards that do not
|ability=show cards with this ability
|artist=show cards with this artist
|voiceactor=show cards with this voice actor
|tag=show cards with this tag
|hiddentag=show cards with this hiddentag
|collectible=True to show only collectible cards, False to show only uncollectible cards
|set=page name of a set of cards to show
|where=Overrides all other selection parameters above with an explicitly written Cargo query "where" clause.
}}

While this table is capable of listing cards of any type, separate templates exist for listing the main card types: {{Custom spell card table}}, {{Custom weapon card table}}, and {{Custom minion card table}}. These omit the columns that are unnecessary to those card types, and should be used instead of this template when specifically listing cards of those types.

{{!}}{{!}} can be used as a separator for multiple options in most of the fields for this template:

|class=Any{{!}}{{!}}Priest specifies priest cards or neutral cards

|rarity=Legendary{{!}}{{!}}Epic specifies either of the highest two rarities

While the parameters above offer a lot of flexibility, they don't offer the full possible range of options the where parameter of #cargo_query permits. In this case, the where parameter can be used instead. See Extension:Cargo/Querying_data for details on the where parameter, and both the Cards and _pageData tables. As the query joins these tables, fields from both are available for use in where. (Those familiar with SQL will find this familiar, since it is nearly identical to the WHERE clause in a SELECT statement.)

Tools

Content is available under CC BY-NC-SA 3.0 unless otherwise noted.Game content and materials are trademarks and copyrights of their respective publisher and its licensors. All rights reserved.
This site is a part of Fandom, Inc. and is not affiliated with the game publisher.