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}}
+
{{Infobox card|Aether Hub}}
 
</pre>
 
</pre>
  
 
{{Infobox card|Zetalpa, Primal Dawn}}
 
{{Infobox card|Zetalpa, Primal Dawn}}
{{Infobox card|Gonti's Aether Heart}}
+
{{Infobox card|Aether Hub}}
  
 
Produces:
 
Produces:
Line 26: Line 26:
 
| 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>
 
| 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 icon lineup|{{Card data: {{{1}}}|3}}}}&nbsp; {{Rarity_expand|{{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}}}} &nbsp;{{Colors expand|{{Card data: {{{1}}}|4}}}}}}
 
| data3  = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}} &nbsp;{{Colors expand|{{Card data: {{{1}}}|4}}}}}}

Revision as of 01:10, 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|Aether Hub}}
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
Aether Hub
Set Kaladesh Kaladesh
Legacy Legacy format Legacy
Rarity Common|Uncommon|RareMythicMasterpiece  Uncommon
Color(s) Colorless  Colorless
Cost 6 mana
Type Supports Support
Shields 3
Abilities Activate
Energize
Overload
Cards

Produces: