Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
Line 24: Line 24:
 
| data1  = {{#if:{{Card data: {{{1}}}|2}}|{{SetSymbol|{{Card data: {{{1}}}|2}}}} {{Set_expand|{{Card data: {{{1}}}|2}}}}}}
 
| data1  = {{#if:{{Card data: {{{1}}}|2}}|{{SetSymbol|{{Card data: {{{1}}}|2}}}} {{Set_expand|{{Card data: {{{1}}}|2}}}}}}
 
| label2  = {{#if:{{Card data: {{{1}}}|3}}|Rarity}}
 
| label2  = {{#if:{{Card data: {{{1}}}|3}}|Rarity}}
| data2  = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity|{{Card data: {{{1}}}|3}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}
+
| data2  = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity|{{Card data: {{{1}}}|3}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}
 
| label3  = {{#if:{{Card data: {{{1}}}|4}}|Color(s)}}
 
| label3  = {{#if:{{Card data: {{{1}}}|4}}|Color(s)}}
 
| data3  = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}}  {{Colors expand|{{Card data: {{{1}}}|4}}}}}}
 
| data3  = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}}  {{Colors expand|{{Card data: {{{1}}}|4}}}}}}

Revision as of 13:27, 16 February 2019

Template usage

The only parameter is the card name. The card data is pulled from the associated card data template.

Example

This shorthand:

{{Infobox card|Zetalpa, Primal Dawn}}
Zetalpa, Primal Dawn
Set Rivals of Ixalan Rivals of Ixalan
Legacy Legacy format Legacy
Rarity CommonUncommonRare|Mythic|Masterpiece  Mythic
Color(s) White  White
Cost 19 mana
Type Creatures Creature
Sub-type(s) Dinosaur, Elder
Power 4
Toughness 8
Abilities Double Strike Double Strike
Flying Flying
Trample Trample
Vigilance Vigilance
Activate
Cards

Produces: