Difference between revisions of "Template:Infobox PW"

From mtgpq wiki
Jump to: navigation, search
 
Line 57: Line 57:
 
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|4}}}}<!--
 
|'''{{#explode: {{PW data: {{{1}}}|8}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|8}}|,|4}}}}<!--
 
--></small>
 
--></small>
| label11 = Leveling cost
+
| label11 = {{#if:{{#pos:{{PW data: {{{1}}}|17}}|,}}|Mana (flipped)}}
| data11 = {{Runes|{{PWLevel60Cost|{{{1}}}}}}}
+
| data11  ={{#if:{{#pos:{{PW data: {{{1}}}|17}}|,}}|<small><!--
| header12= {{#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}}
+
-->[[File:icon_W.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|0}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|W}}
| label13 = {{#if:{{PW data: {{{1}}}|11}}|Race}}
+
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|0}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|0}}}}&nbsp;'''·'''&nbsp;<!--
| data13 = {{#if:{{PW data: {{{1}}}|11}}|{{PW data: {{{1}}}|11}}}}
+
-->[[File:icon_U.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|1}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|U}}
| label14 = {{#if:{{PW data: {{{1}}}|12}}|Birthplace}}
+
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|1}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|1}}}}&nbsp;'''·'''&nbsp;<!--
| data14 = {{#if:{{PW data: {{{1}}}|12}}|{{PW data: {{{1}}}|12}}}}
+
-->[[File:icon_B.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|2}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|B}}
| label15 = {{#if:{{PW data: {{{1}}}|13}}|Allies}}
+
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|2}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|2}}}}&nbsp;'''·'''&nbsp;<!--
| data15 = {{#if:{{PW data: {{{1}}}|13}}|{{PW data: {{{1}}}|13}}}}
+
-->[[File:icon_R.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|3}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|R}}
| label16 = {{#if:{{PW data: {{{1}}}|14}}|Enemies}}
+
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|3}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|3}}}}&nbsp;'''·'''&nbsp;<!--
| data16 = {{#if:{{PW data: {{{1}}}|14}}|{{PW data: {{{1}}}|14}}}}
+
-->[[File:icon_G.png|x{{#expr:{{#explode: {{PW data: {{{1}}}|17}}|,|4}}+11}}px]]&thinsp;{{#if: {{#pos:{{PW data: {{{1}}}|7}}|G}}
| label17 = {{#if:{{PW data: {{{1}}}|15}}|Abilities}}
+
|'''{{#explode: {{PW data: {{{1}}}|17}}|,|4}}'''|{{#explode: {{PW data: {{{1}}}|17}}|,|4}}}}<!--
| data17 = {{#if:{{PW data: {{{1}}}|15}}|{{PW data: {{{1}}}|15}}}}
+
--></small>}}
| label18 = {{#if:{{PW data: {{{1}}}|16}}|Planes}}
+
| label12 = Leveling cost
| data18 = {{#if:{{PW data: {{{1}}}|16}}|{{PW data: {{{1}}}|16}}}}
+
| data12 = {{Runes|{{PWLevel60Cost|{{{1}}}}}}}
 +
| 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}}
 +
| label14 = {{#if:{{PW data: {{{1}}}|11}}|Race}}
 +
| data14 = {{#if:{{PW data: {{{1}}}|11}}|{{PW data: {{{1}}}|11}}}}
 +
| label15 = {{#if:{{PW data: {{{1}}}|12}}|Birthplace}}
 +
| data15 = {{#if:{{PW data: {{{1}}}|12}}|{{PW data: {{{1}}}|12}}}}
 +
| label16 = {{#if:{{PW data: {{{1}}}|13}}|Allies}}
 +
| data16 = {{#if:{{PW data: {{{1}}}|13}}|{{PW data: {{{1}}}|13}}}}
 +
| label17 = {{#if:{{PW data: {{{1}}}|14}}|Enemies}}
 +
| data17 = {{#if:{{PW data: {{{1}}}|14}}|{{PW data: {{{1}}}|14}}}}
 +
| label18 = {{#if:{{PW data: {{{1}}}|15}}|Abilities}}
 +
| data18 = {{#if:{{PW data: {{{1}}}|15}}|{{PW data: {{{1}}}|15}}}}
 +
| label19 = {{#if:{{PW data: {{{1}}}|16}}|Planes}}
 +
| 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: