Difference between revisions of "Template:Deck List Row"
Line 3: | Line 3: | ||
A row in [[Template:Deck_List]]. | A row in [[Template:Deck_List]]. | ||
− | The first parameter is the card name. | + | The first parameter is the card name. |
+ | * A missing card name causes the template to produce no output. | ||
+ | * A question mark for the card name is formatted as an unknown card. | ||
The second parameter is an optional comma-separated list of fields to display. | The second parameter is an optional comma-separated list of fields to display. | ||
Line 36: | Line 38: | ||
!Card name || Type<!-- | !Card name || Type<!-- | ||
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!-- | -->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!-- | ||
− | -->{{Deck List Row| | + | -->{{Deck List Row|?}} |
|} | |} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 54: | Line 56: | ||
!Card name || Type<!-- | !Card name || Type<!-- | ||
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!-- | -->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!-- | ||
− | -->{{Deck List Row| | + | -->{{Deck List Row|?}} |
|} | |} | ||
Line 78: | Line 80: | ||
{{!}}- | {{!}}- | ||
{{!}} {{{1|}}} | {{!}} {{{1|}}} | ||
− | {{!}} colspan="5" {{!}} ''Missing card data''}}</includeonly> | + | {{!}} colspan="5" {{!}} ''{{#ifeq:{{{1}}}|?|Unknown card|Missing card data}}''}}</includeonly> |
Revision as of 05:08, 16 March 2019
Usage
A row in Template:Deck_List.
The first parameter is the card name.
- A missing card name causes the template to produce no output.
- A question mark for the card name is formatted as an unknown card.
The second parameter is an optional comma-separated list of fields to display.
The possible fields are:
- type - The type of the card, along with P/T for creatures and shields for supports
- cost - The cost in mana of the card
- color - The color of the card
- rarity - The rarity of the card
- set - The set containing the card
- legacy - A legacy banner if the card is from a legacy set
Each field is in its own column except for Legacy, which is in the same column as Set.
Fields are always displayed in the order above. The default fields used if none are specified are all of the above.
Example
The following shorthand:
{| class="wikitable" !Card name || Type || Cost || Color || Rarity || Set<!-- -->{{Deck List Row|Zetalpa, Primal Dawn}}<!-- -->{{Deck List Row|Crush of Tentacles}}<!-- -->{{Deck List Row|Time of Ice}}<!-- -->{{Deck List Row|Storm the Vault}}<!-- -->{{Deck List Row|Storm the Vault//Vault of Catlacan}} |} {| class="wikitable" !Card name || Type<!-- -->{{Deck List Row|Zetalpa, Primal Dawn|type}}<!-- -->{{Deck List Row|?}} |}
Produces:
Card name | Type | Cost | Color | Rarity | Set |
---|---|---|---|---|---|
Zetalpa, Primal Dawn | (4/8) | 19 | RIX | ||
Crush of Tentacles | 21 | OGW | |||
Time of Ice | (2) | 18 | DOM | ||
Storm the Vault | (4) | 11 | RIX | ||
Storm the Vault//Vault of Catlacan | (4) | 11 | RIX |
Card name | Type | ||||
---|---|---|---|---|---|
Zetalpa, Primal Dawn | (4/8) | ||||
? | Unknown card |