Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
Line 24: 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}}}}}}<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 icon lineup|{{Card data: {{{1}}}|3}}}}&nbsp; {{Rarity_expand|{{Card data: {{{1}}}|3}}}}}}
 
| data2  = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity icon lineup|{{Card data: {{{1}}}|3}}}}&nbsp; {{Rarity_expand|{{Card data: {{{1}}}|3}}}}}}

Revision as of 00:05, 2 March 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|Gishath, Sun's Avatar}}
{{Infobox card|Aether Hub}}
Gishath, Sun's Avatar
Set Ixalan Ixalan
Legacy Legacy format Legacy
Rarity CommonUncommonRare|Mythic|Masterpiece  Mythic
Color(s) WhiteRedGreen  White, Red, Green
Cost 26 mana
Type Creatures Creature
Sub-type(s) Dinosaur, Avatar
Power 10
Toughness 10
Abilities Berserker Berserker
Haste Haste
Trample Trample
Vigilance Vigilance
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: