Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
Line 25: Line 25:
 
| data2  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}| {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}
 
| data2  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}| {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}
 
| label3 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}|Color(s)}}
 
| label3 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}|Color(s)}}
| data3  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}| {{Color Icons|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}}}
+
| data3  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}| {{Color Icons|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}  {{Colors expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}}}
 
| label4 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|Cost}}
 
| label4 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|Cost}}
 
| data4  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}} mana}}
 
| data4  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}} mana}}

Revision as of 03:58, 15 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}}

Produces:

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