Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
Line 8: Line 8:
 
<pre>
 
<pre>
 
{{Infobox card|Zetalpa, Primal Dawn}}
 
{{Infobox card|Zetalpa, Primal Dawn}}
 +
{{Infobox card|Gonti's Aether Heart}}
 
</pre>
 
</pre>
  
 
{{Infobox card|Zetalpa, Primal Dawn}}
 
{{Infobox card|Zetalpa, Primal Dawn}}
 +
{{Infobox card|Gonti's Aether Heart}}
  
 
Produces:
 
Produces:
Line 22: Line 24:
 
| above  = {{Card data: {{{1}}}|1}}
 
| above  = {{Card data: {{{1}}}|1}}
 
| label1  = {{#if:{{Card data: {{{1}}}|2}}|Set}}
 
| label1  = {{#if:{{Card data: {{{1}}}|2}}|Set}}
| 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}}}}}}<br><small>''{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}|[[Standard]] format|[[File:Legacy-bg.png|x14px|link=Legacy|Legacy]] [[Legacy]] format [[File:Legacy-bg.png|x14px|link=Legacy|Legacy]]}}''</small>
 
| 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}}}}}|{{!}}|3}}}}
 
| data2  = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity|{{Card data: {{{1}}}|3}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}

Revision as of 00:56, 17 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}}
{{Infobox card|Gonti's Aether Heart}}
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
Gonti's Aether Heart
Set Aether Revolt Aether Revolt
Legacy Legacy format Legacy
Rarity CommonUncommonRare|Mythic|Masterpiece  Mythic
Color(s) Colorless  Colorless
Cost 6 mana
Type Supports Support
Shields 3
Abilities Energize
Cards

Produces: