Difference between revisions of "Template:Infobox card"
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
This shorthand: | This shorthand: | ||
<pre> | <pre> | ||
− | {{Infobox card| | + | {{Infobox card|Gishath, Sun's Avatar}} |
{{Infobox card|Aether Hub}} | {{Infobox card|Aether Hub}} | ||
+ | {{Infobox card|Beanstalk Giant//Fertile Footsteps}} | ||
</pre> | </pre> | ||
− | {{Infobox card| | + | {{Infobox card|Gishath, Sun's Avatar}} |
{{Infobox card|Aether Hub}} | {{Infobox card|Aether Hub}} | ||
+ | {{Infobox card|Beanstalk Giant//Fertile Footsteps}} | ||
Produces: | Produces: | ||
Line 24: | Line 26: | ||
| 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}}}} {{Rarity_expand|{{Card data: {{{1}}}|3}}}}}} | | data2 = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity icon lineup|{{Card data: {{{1}}}|3}}}} {{Rarity_expand|{{Card data: {{{1}}}|3}}}}}} | ||
Line 30: | Line 32: | ||
| data3 = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}} {{Colors expand|{{Card data: {{{1}}}|4}}}}}} | | data3 = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}} {{Colors expand|{{Card data: {{{1}}}|4}}}}}} | ||
| label4 = {{#if:{{Card data: {{{1}}}|5}}|Cost}} | | label4 = {{#if:{{Card data: {{{1}}}|5}}|Cost}} | ||
− | | data4 = {{#if:{{Card data: {{{1}}}|5}}|{{Card data: {{{1}}}|5}} mana}} | + | | data4 = {{#if:{{Card data: {{{1}}}|5}}|{{#explode:{{Card data: {{{1}}}|5}}|,|0}} mana<!-- |
+ | -->{{#if:{{#pos:{{Card data: {{{1}}}|5}}|,}}|<br>{{#explode:{{Card data: {{{1}}}|5}}|,|1}} mana [[File:PW-transform-icon.png|x16px|Flip side]] }} }} | ||
| label5 = {{#if:{{Card data: {{{1}}}|6}}|Type}} | | label5 = {{#if:{{Card data: {{{1}}}|6}}|Type}} | ||
− | | data5 = {{#if:{{Card data: {{{1}}}|6}}| {{{{Card data: {{{1}}}|6}}s}} {{Card data: {{{1}}}|6}}}} | + | | data5 = {{#if:{{Card data: {{{1}}}|6}}| {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}} {{#explode:{{Card data: {{{1}}}|6}}|,|0}}<!-- |
+ | -->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|<br>{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}} {{#explode:{{Card data: {{{1}}}|6}}|,|1}} [[File:PW-transform-icon.png|x16px|Flip side]] }} }} | ||
| label6 = {{#if:{{Card data: {{{1}}}|7}}|Sub-type(s)}} | | label6 = {{#if:{{Card data: {{{1}}}|7}}|Sub-type(s)}} | ||
| data6 = {{#if:{{Card data: {{{1}}}|7}}| {{#replace:{{Card data: {{{1}}}|7}}|,|, }}}} | | data6 = {{#if:{{Card data: {{{1}}}|7}}| {{#replace:{{Card data: {{{1}}}|7}}|,|, }}}} |
Latest revision as of 03:00, 23 February 2020
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}} {{Infobox card|Beanstalk Giant//Fertile Footsteps}}
Gishath, Sun's Avatar | |
---|---|
Set |
Ixalan Legacy format |
Rarity | || Mythic |
Color(s) | White, Red, Green |
Cost | 26 mana |
Type | Creature |
Sub-type(s) | Dinosaur, Avatar |
Power | 10 |
Toughness | 10 |
Abilities |
Berserker Haste Trample Vigilance |
Cards |
Aether Hub | |
---|---|
Set |
Kaladesh Legacy format |
Rarity | || Uncommon |
Color(s) | Colorless |
Cost | 6 mana |
Type | Support |
Shields | 3 |
Abilities |
Activate Energize Overload |
Cards |
Beanstalk Giant//Fertile Footsteps | |
---|---|
Set |
Throne of Eldraine Legacy format |
Rarity | || Mythic |
Color(s) | Green |
Cost |
12 mana 11 mana |
Type |
Creature Spell |
Sub-type(s) | Giant |
Power | 1 |
Toughness | 1 |
Cards |
Produces: