Difference between revisions of "Template:Infobox card"

From mtgpq wiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
This shorthand:
 
This shorthand:
 
<pre>
 
<pre>
{{Infobox card|Zetalpa, Primal Dawn}}
+
{{Infobox card|Gishath, Sun's Avatar}}
 +
{{Infobox card|Aether Hub}}
 +
{{Infobox card|Beanstalk Giant//Fertile Footsteps}}
 
</pre>
 
</pre>
  
{{Infobox card|Zetalpa, Primal Dawn}}
+
{{Infobox card|Gishath, Sun's Avatar}}
 +
{{Infobox card|Aether Hub}}
 +
{{Infobox card|Beanstalk Giant//Fertile Footsteps}}
 +
 
 
Produces:
 
Produces:
  
Line 19: Line 24:
 
| headerstyle  = {{Infobox sec|header}}
 
| headerstyle  = {{Infobox sec|header}}
 
| labelstyle  = {{Infobox sec|label|width=30%}}
 
| labelstyle  = {{Infobox sec|label|width=30%}}
| above  = {{#explode:{{Card data|{{{1}}}}}|{{!}}|0}}
+
| above  = {{Card data: {{{1}}}|1}}
| label1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|Set}}
+
| label1  = {{#if:{{Card data: {{{1}}}|2}}|Set}}
| data1  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}|{{SetSymbol|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}} {{Set_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}}}}
+
| 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:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}|Rarity}}
+
| label2 = {{#if:{{Card data: {{{1}}}|3}}|Rarity}}
| data2  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}| {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}}} {{Rarity_expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}
+
| data2  = {{#if:{{Card data: {{{1}}}|3}}| {{Rarity icon lineup|{{Card data: {{{1}}}|3}}}}&nbsp; {{Rarity_expand|{{Card data: {{{1}}}|3}}}}}}
| label3 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}|Color(s)}}
+
| label3 = {{#if:{{Card data: {{{1}}}|4}}|Color(s)}}
| data3  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}| {{Color Icons|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}} &nbsp;{{Colors expand|{{#explode:{{Card data|{{{1}}}}}|{{!}}|3}}}}}}
+
| data3  = {{#if:{{Card data: {{{1}}}|4}}| {{Color Icons|{{Card data: {{{1}}}|4}}}} &nbsp;{{Colors expand|{{Card data: {{{1}}}|4}}}}}}
| label4 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|Cost}}
+
| label4  = {{#if:{{Card data: {{{1}}}|5}}|Cost}}
| data4  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|4}} mana}}
+
| data4  = {{#if:{{Card data: {{{1}}}|5}}|{{#explode:{{Card data: {{{1}}}|5}}|,|0}} mana<!--
| label5 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Type}}
+
-->{{#if:{{#pos:{{Card data: {{{1}}}|5}}|,}}|<br>{{#explode:{{Card data: {{{1}}}|5}}|,|1}} mana [[File:PW-transform-icon.png|x16px|Flip side]] }} }}
| data5  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}| {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}} {{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}}}
+
| label5 = {{#if:{{Card data: {{{1}}}|6}}|Type}}
| label6 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Power}}
+
| data5  = {{#if:{{Card data: {{{1}}}|6}}| {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}} {{#explode:{{Card data: {{{1}}}|6}}|,|0}}<!--
| data6  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|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]] }} }}
| label7 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|Toughness}}
+
| label6  = {{#if:{{Card data: {{{1}}}|7}}|Sub-type(s)}}
| data7  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|{{#explode:{{#explode:{{Card data|{{{1}}}}}|{{!}}|7}}|/|1}}}}
+
| data6  = {{#if:{{Card data: {{{1}}}|7}}| {{#replace:{{Card data: {{{1}}}|7}}|,|,&nbsp;}}}}
| label8 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|Shields}}
+
| label7  = {{#if:{{Card data: {{{1}}}|8}}|Power}}
| data8  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}|{{#explode:{{Card data|{{{1}}}}}|{{!}}|8}}}}
+
| data7  = {{#if:{{Card data: {{{1}}}|8}}|{{#explode:{{Card data: {{{1}}}|8}}|/|0}}}}
| label9 = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|Abilities}}
+
| label8 = {{#if:{{Card data: {{{1}}}|8}}|Toughness}}
| data9  = {{#if:{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}|{{Abilities list formatted|{{#explode:{{Card data|{{{1}}}}}|{{!}}|9}}}}}}
+
| data8  = {{#if:{{Card data: {{{1}}}|8}}|{{#explode:{{Card data: {{{1}}}|8}}|/|1}}}}
 +
| label9 = {{#if:{{Card data: {{{1}}}|9}}|Shields}}
 +
| data9  = {{#if:{{Card data: {{{1}}}|9}}|{{Card data: {{{1}}}|9}}}}
 +
| label10 = {{#if:{{Card data: {{{1}}}|10}}|Abilities}}
 +
| 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>

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 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
Beanstalk Giant//Fertile Footsteps
Set Throne of Eldraine Throne of Eldraine
Legacy Legacy format Legacy
Rarity CommonUncommonRare|Mythic|Masterpiece  Mythic
Color(s) Green  Green
Cost 12 mana
11 mana Flip side
Type Creatures Creature
Spells Spell Flip side
Sub-type(s) Giant
Power 1
Toughness 1
Cards

Produces: