Difference between revisions of "Template:Infobox card"
Line 11: | Line 11: | ||
{{Infobox card|Zetalpa, Primal Dawn}} | {{Infobox card|Zetalpa, Primal Dawn}} | ||
+ | |||
+ | {{Infobox card|Prism Ring}} | ||
+ | {{Infobox card|Behold the Beyond}} | ||
+ | {{Infobox card|Wharf Infiltrator}} | ||
+ | |||
+ | |||
Produces: | Produces: | ||
Line 19: | Line 25: | ||
| headerstyle = {{Infobox sec|header}} | | headerstyle = {{Infobox sec|header}} | ||
| labelstyle = {{Infobox sec|label|width=30%}} | | labelstyle = {{Infobox sec|label|width=30%}} | ||
− | | above = | + | | above = {{Card data: {{{1}}}|1}} |
− | | label1 = {{#if | + | | label1 = {{#if:{{Card data: {{{1}}}|2}}|Set}} |
− | | data1 = {{#if | + | | data1 = {{#if:{{Card data: {{{1}}}|2}}|{{SetSymbol|{{Card data: {{{1}}}|2}}}} {{Set_expand|{{Card data: {{{1}}}|2}}}}}} |
− | | label2 = {{#if | + | | label2 = {{#if:{{Card data: {{{1}}}|3}}|Rarity}} |
− | | data2 = {{#if | + | | data2 = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity|{{Card data: {{{1}}}|3}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}} |
− | | label3 = {{#if | + | | label3 = {{#if:{{Card data: {{{1}}}|4}}|Color(s)}} |
− | | data3 = {{#if | + | | data3 = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}} {{Colors expand|{{Card data: {{{1}}}|4}}}}}} |
− | | label4 = {{#if | + | | label4 = {{#if:{{Card data: {{{1}}}|5}}|Cost}} |
− | | data4 = {{#if | + | | data4 = {{#if:{{Card data: {{{1}}}|5}}|{{Card data: {{{1}}}|5}} mana}} |
− | | label5 = {{#if | + | | label5 = {{#if:{{Card data: {{{1}}}|6}}|Type}} |
− | | data5 = {{#if | + | | data5 = {{#if:{{Card data: {{{1}}}|6}}| {{{{Card data: {{{1}}}|6}}s}} {{Card data: {{{1}}}|6}}}} |
− | | label6 = {{#if | + | | label6 = {{#if:{{Card data: {{{1}}}|7}}|Sub-type(s)}} |
− | | data6 = {{#if | + | | data6 = {{#if:{{Card data: {{{1}}}|7}}| {{#replace:{{Card data: {{{1}}}|7}}|,|, }}}} |
− | | label7 = {{#if | + | | label7 = {{#if:{{Card data: {{{1}}}|8}}|Power}} |
− | | data7 = {{#if | + | | data7 = {{#if:{{Card data: {{{1}}}|8}}|{{#explode:{{Card data: {{{1}}}|8}}|/|0}}}} |
− | | label8 = {{#if | + | | label8 = {{#if:{{Card data: {{{1}}}|8}}|Toughness}} |
− | | data8 = {{#if | + | | data8 = {{#if:{{Card data: {{{1}}}|8}}|{{#explode:{{Card data: {{{1}}}|8}}|/|1}}}} |
− | | label9 = {{#if | + | | label9 = {{#if:{{Card data: {{{1}}}|9}}|Shields}} |
− | | data9 = {{#if | + | | data9 = {{#if:{{Card data: {{{1}}}|9}}|{{Card data: {{{1}}}|9}}}} |
− | | label10 = {{#if | + | | label10 = {{#if:{{Card data: {{{1}}}|10}}|Abilities}} |
− | | data10 = {{#if | + | | data10 = {{#if:{{Card data: {{{1}}}|10}}|{{Abilities list formatted|{{Card data: {{{1}}}|10}}}}}} |
| belowstyle = background:#ddf; | | belowstyle = background:#ddf; | ||
| below = [[Cards]] | | below = [[Cards]] | ||
}}</includeonly> | }}</includeonly> |
Revision as of 06:01, 16 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 Legacy format |
Rarity | || Mythic |
Color(s) | White |
Cost | 19 mana |
Type | Creature |
Sub-type(s) | Dinosaur, Elder |
Power | 4 |
Toughness | 8 |
Abilities |
Double Strike Flying Trample Vigilance Activate |
Cards |
Prism Ring | |
---|---|
Set |
Origins Standard format |
Rarity | || Common |
Color(s) | Colorless |
Cost | 6 mana |
Type | Support |
Shields | 4 |
Cards |
Behold the Beyond | |
---|---|
Set |
Shadows over Innistrad Legacy format |
Rarity | || Mythic |
Color(s) | Black |
Cost | 15 mana |
Type | Spell |
Abilities |
Discard |
Cards |
Wharf Infiltrator | |
---|---|
Set |
Eldritch Moon Legacy format |
Rarity | || Rare |
Color(s) | Blue |
Cost | 13 mana |
Type | Creature |
Sub-type(s) | Horror, Human |
Power | 5 |
Toughness | 5 |
Abilities |
Unblockable Discard |
Cards |
Produces: