Difference between revisions of "Template:Card stats inline"
(Created page with "<noinclude> ==Usage== Produces a visual display of card stats in inline text. The first parameter is the card name. The second parameter is a comma-separated list of fields...") |
|||
Line 25: | Line 25: | ||
</noinclude><includeonly>{{#ifexpr: {{#len:{{Card data: {{{1}}}|2}}}} = 3|<!-- | </noinclude><includeonly>{{#ifexpr: {{#len:{{Card data: {{{1}}}|2}}}} = 3|<!-- | ||
− | -->{{Card data: {{{1}}}|5}}}}<!-- Cost | + | -->{{#if:{{#pos:{{{2}}}|cost}}|{{Card data: {{{1}}}|5}}}}}}<!-- Cost |
-->{{#if:{{#pos:{{{2}}}|type}}|<!-- | -->{{#if:{{#pos:{{{2}}}|type}}|<!-- | ||
--> '''·''' {{{{Card data: {{{1}}}|6}}s}}<!-- Type | --> '''·''' {{{{Card data: {{{1}}}|6}}s}}<!-- Type |
Revision as of 04:33, 14 December 2019
Usage
Produces a visual display of card stats in inline text.
The first parameter is the card name.
The second parameter is a comma-separated list of fields indicate the card information to display. The possible display fields are:
- cost - The cost in mana of the card
- type - The type of the card, along with P/T for creatures and shields for supports
- 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
Example
The following shorthand:
{{Card stats inline|Zetalpa, Primal Dawn|cost,type,color,rarity,set,legacy}}
Produces: