Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
Line 22: Line 22:
 
| label1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|Set}}
 
| label1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|Set}}
 
| data1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|{{SetSymbol|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}} {{Set_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}}}}
 
| data1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|{{SetSymbol|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}} {{Set_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}}}}
| label2 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}|Rarity}}
+
| label2 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}|Rarity}}
 
| 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}}}}  {{Colors expand|{{#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}}
| label5 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Type}}
+
| label5 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Type}}
 
| data5  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}| {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}} {{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}}}
 
| data5  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}| {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}} {{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}}}
| label6 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Power}}
+
| label6 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|6}}|Sub-type(s)}}
| data6   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|0}}}}
+
| data6  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|6}}| {{#replace:{{#explode:{{Card data|{{{1}}}}}|{{!}}|6}}|,|, }}}}
| label7 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Toughness}}
+
| label7  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Power}}
| data7   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|1}}}}
+
| data7   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|0}}}}
| label8 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|Shields}}
+
| label8  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Toughness}}
| data8   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}}}
+
| data8   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|1}}}}
| label9 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|Abilities}}
+
| label9  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|Shields}}
| data9  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|{{Abilities list formatted|{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}}}}}
+
| data9   = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}}}
 +
| label10 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|Abilities}}
 +
| data10  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|{{Abilities list formatted|{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}}}}}
 
| belowstyle = background:#ddf;
 
| belowstyle = background:#ddf;
 
| below      = [[Cards]]
 
| below      = [[Cards]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:18, 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}}
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: