Difference between revisions of "Template:Infobox PW"

From mtgpq wiki
Jump to: navigation, search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Template usage==
 
==Template usage==
 +
Generates an infobox for a Planeswalker using the Planeswalker's data template.
 +
 
<nowiki>{{{image}}}</nowiki> and <nowiki>{{{aliases}}}</nowiki> - as well as all the lore fields - are hidden, if not specified . You can simply copy/paste the template below and fill in data (or remove lines) where necessary.
 
<nowiki>{{{image}}}</nowiki> and <nowiki>{{{aliases}}}</nowiki> - as well as all the lore fields - are hidden, if not specified . You can simply copy/paste the template below and fill in data (or remove lines) where necessary.
  
Line 19: Line 21:
 
| headerstyle  = {{Infobox sec|header}}
 
| headerstyle  = {{Infobox sec|header}}
 
| labelstyle  = {{Infobox sec|label|width=31%}}
 
| labelstyle  = {{Infobox sec|label|width=31%}}
 +
| subheader = {{Portal icons|noicon=1}}
 
| above  = {{PW data: {{{1}}}|1}}
 
| above  = {{PW data: {{{1}}}|1}}
 
| image  = {{#if:{{PW data: {{{1}}}|3}}|[[File:{{PW data: {{{1}}}|3}}|250px]]}}
 
| image  = {{#if:{{PW data: {{{1}}}|3}}|[[File:{{PW data: {{{1}}}|3}}|250px]]}}
Line 27: Line 30:
 
| label3  = {{#if:{{PW data: {{{1}}}|4}}|Transformed}}
 
| label3  = {{#if:{{PW data: {{{1}}}|4}}|Transformed}}
 
| data3  = {{#if:{{PW data: {{{1}}}|4}}|{{PW data: {{{1}}}|4}}}}<!--
 
| data3  = {{#if:{{PW data: {{{1}}}|4}}|{{PW data: {{{1}}}|4}}}}<!--
-->{{#if:{{PW data: {{{1}}}|5}}|[[File:PW-transform-icon.png|x18px|Transforms]][[File:{{PW data: {{{1}}}|5}}|62px]]}}
+
-->{{#if:{{PW data: {{{1}}}|5}}|<br>[[File:PW-transform-icon.png|x18px|Transforms]][[File:{{PW data: {{{1}}}|5}}|62px]]}}
 
| label4  = Affinities
 
| label4  = Affinities
 
| data4  = {{Color Icons|{{PW data: {{{1}}}|7}}}}
 
| data4  = {{Color Icons|{{PW data: {{{1}}}|7}}}}
 
| label5  = Origin set
 
| label5  = Origin set
| data5  = {{SetSymbol|{{PW data: {{{1}}}|6}}}} {{Set expand|{{PW data: {{{1}}}|6}}}}
+
| data5  = {{SetSymbol|{{PW data: {{{1}}}|6}}}} [[{{Set expand|{{PW data: {{{1}}}|6}}}}]]
| header6 = Stats (max level)
+
| label6  = Cost
| label7 = Health
+
| data6  = {{#ifeq:{{{1}}}|Nissa, Sage Animist|-|{{Crystals|{{#ifeq:{{PW data: {{{1}}}|6}}|ORI|50|{{#ifeq:{{PW data: {{{1}}}|7}}|C|850|{{#ifeq:{{#len:{{PW data: {{{1}}}|7}}|1}}|1|295|{{#ifeq:{{#len:{{PW data: {{{1}}}|7}}|1}}|2|650|850}}}}}}}}}}}}
| data7   = {{PW data: {{{1}}}|10}}
+
| header7 = Stats (max level)
| label8 = Deck limits
+
| label8 = Health
| data8   = {{Creatures|{{#explode: {{PW data: {{{1}}}|9}}|,|0}}}}&nbsp; '''·''' &nbsp;<!--
+
| data8   = {{PW data: {{{1}}}|10}}
 +
| label9 = Deck limits
 +
| data9   = {{Creatures|{{#explode: {{PW data: {{{1}}}|9}}|,|0}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{1}}}|9}}|,|1}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Spells|{{#explode: {{PW data: {{{1}}}|9}}|,|1}}}}&nbsp; '''·''' &nbsp;<!--
 
-->{{Supports|{{#explode: {{PW data: {{{1}}}|9}}|,|2}}}}
 
-->{{Supports|{{#explode: {{PW data: {{{1}}}|9}}|,|2}}}}
| label9  = Mana bonuses
+
| label10 = Mana bonuses
| data9  = <small><!--
+
| data10  = <small><!--
-->[[File:icon_W.png|x13px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|W}}|'''{{#explode: {{PW data: {{{1}}}|8}}|,|0}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
+
-->[[File:icon_W.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|8}}|,|0}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|W}}
-->[[File:icon_U.png|x13px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|U}}|'''{{#explode: {{PW data: {{{1}}}|8}}|,|1}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
+
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|0}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
-->[[File:icon_B.png|x13px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|B}}|'''{{#explode: {{PW data: {{{1}}}|8}}|,|2}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|2}}}}&nbsp;'''·'''&nbsp;<!--
+
-->[[File:icon_U.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|8}}|,|1}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|U}}
-->[[File:icon_R.png|x13px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|R}}|'''{{#explode: {{PW data: {{{1}}}|8}}|,|3}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|3}}}}&nbsp;'''·'''&nbsp;<!--
+
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|1}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
-->[[File:icon_G.png|x13px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|G}}|'''{{#explode: {{PW data: {{{1}}}|8}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|4}}<!--
+
-->[[File:icon_B.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|8}}|,|2}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|B}}
 +
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|2}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|2}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_R.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|8}}|,|3}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|R}}
 +
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|3}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|3}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_G.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|8}}|,|4}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|G}}
 +
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|4}}}}<!--
 +
--></small>
 +
| label11 = {{#if:{{#pos:{{PW data: {{{1}}}|17}}|,}}|Mana (flipped)}}
 +
| data11  ={{#if:{{#pos:{{PW data: {{{1}}}|17}}|,}}|<small><!--
 +
-->[[File:icon_W.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|0}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|W}}
 +
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|0}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_U.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|1}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|U}}
 +
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|1}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_B.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|2}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|B}}
 +
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|2}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|2}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_R.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|3}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|R}}
 +
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|3}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|3}}}}&nbsp;'''·'''&nbsp;<!--
 +
-->[[File:icon_G.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|4}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|G}}
 +
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|4}}}}<!--
 
--></small>}}
 
--></small>}}
| label10 = Leveling cost
+
| label12 = Leveling cost
| data10 = {{Runes|{{#ifeq:{{PW data: {{{1}}}|7}}|C|323,750|{{#ifeq:{{#len:{{PW data: {{{1}}}|7}}|1}}|1|79,920|{{#ifeq:{{#len:{{PW data: {{{1}}}|7}}|1}}|2|160,720|323,750}}}}}}}}
+
| data12 = {{Runes|{{PWLevel60Cost|{{{1}}}}}}}
| header11= {{#if:{{PW data: {{{1}}}|11}}{{PW data: {{{1}}}|12}}{{PW data: {{{1}}}|13}}{{PW data: {{{1}}}|14}}{{PW data: {{{1}}}|15}}{{PW data: {{{1}}}|16}}|Lore}}
+
| header13= {{#if:{{PW data: {{{1}}}|11}}{{PW data: {{{1}}}|12}}{{PW data: {{{1}}}|13}}{{PW data: {{{1}}}|14}}{{PW data: {{{1}}}|15}}{{PW data: {{{1}}}|16}}|Lore}}
| label12 = {{#if:{{PW data: {{{1}}}|11}}|Race}}
+
| label14 = {{#if:{{PW data: {{{1}}}|11}}|Race}}
| data12 = {{#if:{{PW data: {{{1}}}|11}}|{{PW data: {{{1}}}|11}}}}
+
| data14 = {{#if:{{PW data: {{{1}}}|11}}|{{PW data: {{{1}}}|11}}}}
| label13 = {{#if:{{PW data: {{{1}}}|12}}|Birthplace}}
+
| label15 = {{#if:{{PW data: {{{1}}}|12}}|Birthplace}}
| data13 = {{#if:{{PW data: {{{1}}}|12}}|{{PW data: {{{1}}}|12}}}}
+
| data15 = {{#if:{{PW data: {{{1}}}|12}}|{{PW data: {{{1}}}|12}}}}
| label14 = {{#if:{{PW data: {{{1}}}|13}}|Allies}}
+
| label16 = {{#if:{{PW data: {{{1}}}|13}}|Allies}}
| data14 = {{#if:{{PW data: {{{1}}}|13}}|{{PW data: {{{1}}}|13}}}}
+
| data16 = {{#if:{{PW data: {{{1}}}|13}}|{{PW data: {{{1}}}|13}}}}
| label15 = {{#if:{{PW data: {{{1}}}|14}}|Enemies}}
+
| label17 = {{#if:{{PW data: {{{1}}}|14}}|Enemies}}
| data15 = {{#if:{{PW data: {{{1}}}|14}}|{{PW data: {{{1}}}|14}}}}
+
| data17 = {{#if:{{PW data: {{{1}}}|14}}|{{PW data: {{{1}}}|14}}}}
| label16 = {{#if:{{PW data: {{{1}}}|15}}|Abilities}}
+
| label18 = {{#if:{{PW data: {{{1}}}|15}}|Abilities}}
| data16 = {{#if:{{PW data: {{{1}}}|15}}|{{PW data: {{{1}}}|15}}}}
+
| data18 = {{#if:{{PW data: {{{1}}}|15}}|{{PW data: {{{1}}}|15}}}}
| label17 = {{#if:{{PW data: {{{1}}}|16}}|Planes}}
+
| label19 = {{#if:{{PW data: {{{1}}}|16}}|Planes}}
| data17 = {{#if:{{PW data: {{{1}}}|16}}|{{PW data: {{{1}}}|16}}}}
+
| data19 = {{#if:{{PW data: {{{1}}}|16}}|{{PW data: {{{1}}}|16}}}}
 
|belowstyle = background:#ddf;
 
|belowstyle = background:#ddf;
 
|below      =''' [[Planeswalkers]]''' &nbsp; <small>([[Template:Infobox PW|Infobox]] '''·''' [[Template:PW data: {{{1}}}|Data]])</small>
 
|below      =''' [[Planeswalkers]]''' &nbsp; <small>([[Template:Infobox PW|Infobox]] '''·''' [[Template:PW data: {{{1}}}|Data]])</small>
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 10:45, 26 January 2020

Template usage

Generates an infobox for a Planeswalker using the Planeswalker's data template.

{{{image}}} and {{{aliases}}} - as well as all the lore fields - are hidden, if not specified . You can simply copy/paste the template below and fill in data (or remove lines) where necessary.

Example

Ajani Vengeant
EventsStoryPlaneswalkersCardsGuides
Ajani.png
Full Name Ajani Vengeant
Aliases AJ1
Affinities WhiteRed
Origin set Oath of the Gatewatch Oath of the Gatewatch
Cost 650 Mana Crystals
Stats (max level)
Health 119
Deck limits Creatures 9  ·  Spells 6  ·  Supports 5
Mana bonuses Icon W.png+3 · Icon U.png +1 · Icon B.png 0 · Icon R.png+2 · Icon G.png +2
Leveling cost 160,720 Mana Runes
Planeswalkers   (Infobox · Data)

The following shorthand:

{{Infobox PW|Ajani Vengeant}}

Produces: