Difference between revisions of "Template:Infobox PW series"

From mtgpq wiki
Jump to: navigation, search
Line 28: Line 28:
 
|Sarkhan Unbroken
 
|Sarkhan Unbroken
 
}}
 
}}
 +
 +
{{Infobox Bolas}}
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
Line 34: Line 36:
 
| abovestyle  = {{Infobox sec|above}}
 
| abovestyle  = {{Infobox sec|above}}
 
| headerstyle  = {{Infobox sec|header}}
 
| headerstyle  = {{Infobox sec|header}}
| labelstyle  = {{Infobox sec|label|width=36%}}
+
| labelstyle  = {{Infobox sec|label|width=30%}}
 
| above  = Planeswalker series
 
| above  = Planeswalker series
 
| data1  = '''{{Trim|{{{1}}}}}'''
 
| data1  = '''{{Trim|{{{1}}}}}'''
Line 40: Line 42:
 
-->{{#if:{{PW data: {{{2}}}|3}}|[[File:{{PW data: {{{2}}}|3}}|x20px|link={{{2}}}|{{{2}}}]]}}<!--
 
-->{{#if:{{PW data: {{{2}}}|3}}|[[File:{{PW data: {{{2}}}|3}}|x20px|link={{{2}}}|{{{2}}}]]}}<!--
 
-->&nbsp;{{PW data: {{{2}}}|2}}<!--
 
-->&nbsp;{{PW data: {{{2}}}|2}}<!--
-->&nbsp;{{Color Icons|{{PW data: {{{2}}}|7}}}}}}
+
-->&nbsp;{{Color Icons|{{PW data: {{{2}}}|7}}|{{#expr:(4 - {{#len:{{PW data: {{{2}}}|7}}}}) * 5 + 4}}|||&thinsp;}}}}
 
| data2  = {{#if:{{{2|}}}|{{SetSymbol|{{PW data: {{{2}}}|6}}}} [[{{Trim|{{{2}}}}}]]}}
 
| data2  = {{#if:{{{2|}}}|{{SetSymbol|{{PW data: {{{2}}}|6}}}} [[{{Trim|{{{2}}}}}]]}}
 
| label3  = {{#if:{{{3|}}}|<!--
 
| label3  = {{#if:{{{3|}}}|<!--
 
-->{{#if:{{PW data: {{{3}}}|3}}|[[File:{{PW data: {{{3}}}|3}}|x20px|link={{{3}}}|{{{3}}}]]}}<!--
 
-->{{#if:{{PW data: {{{3}}}|3}}|[[File:{{PW data: {{{3}}}|3}}|x20px|link={{{3}}}|{{{3}}}]]}}<!--
 
-->&nbsp;{{PW data: {{{3}}}|2}}<!--
 
-->&nbsp;{{PW data: {{{3}}}|2}}<!--
-->&nbsp;{{Color Icons|{{PW data: {{{3}}}|7}}}}}}
+
-->&nbsp;{{Color Icons|{{PW data: {{{3}}}|7}}|{{#expr:(4 - {{#len:{{PW data: {{{3}}}|7}}}}) * 5 + 4}}|||&thinsp;}}}}
 
| data3  = {{#if:{{{3|}}}|{{SetSymbol|{{PW data: {{{3}}}|6}}}} [[{{Trim|{{{3}}}}}]]}}
 
| data3  = {{#if:{{{3|}}}|{{SetSymbol|{{PW data: {{{3}}}|6}}}} [[{{Trim|{{{3}}}}}]]}}
 
| label4  = {{#if:{{{4|}}}|<!--
 
| label4  = {{#if:{{{4|}}}|<!--
 
-->{{#if:{{PW data: {{{4}}}|3}}|[[File:{{PW data: {{{4}}}|3}}|x20px|link={{{4}}}|{{{4}}}]]}}<!--
 
-->{{#if:{{PW data: {{{4}}}|3}}|[[File:{{PW data: {{{4}}}|3}}|x20px|link={{{4}}}|{{{4}}}]]}}<!--
 
-->&nbsp;{{PW data: {{{4}}}|2}}<!--
 
-->&nbsp;{{PW data: {{{4}}}|2}}<!--
-->&nbsp;{{Color Icons|{{PW data: {{{4}}}|7}}}}}}
+
-->&nbsp;{{Color Icons|{{PW data: {{{4}}}|7}}|{{#expr:(4 - {{#len:{{PW data: {{{4}}}|7}}}}) * 5 + 4}}|||&thinsp;}}}}
 
| data4  = {{#if:{{{4|}}}|{{SetSymbol|{{PW data: {{{4}}}|6}}}} [[{{Trim|{{{4}}}}}]]}}
 
| data4  = {{#if:{{{4|}}}|{{SetSymbol|{{PW data: {{{4}}}|6}}}} [[{{Trim|{{{4}}}}}]]}}
 
| label5  = {{#if:{{{5|}}}|<!--
 
| label5  = {{#if:{{{5|}}}|<!--
 
-->{{#if:{{PW data: {{{5}}}|3}}|[[File:{{PW data: {{{5}}}|3}}|x20px|link={{{5}}}|{{{5}}}]]}}<!--
 
-->{{#if:{{PW data: {{{5}}}|3}}|[[File:{{PW data: {{{5}}}|3}}|x20px|link={{{5}}}|{{{5}}}]]}}<!--
 
-->&nbsp;{{PW data: {{{5}}}|2}}<!--
 
-->&nbsp;{{PW data: {{{5}}}|2}}<!--
-->&nbsp;{{Color Icons|{{PW data: {{{5}}}|7}}}}}}
+
-->&nbsp;{{Color Icons|{{PW data: {{{5}}}|7}}|{{#expr:(4 - {{#len:{{PW data: {{{5}}}|7}}}}) * 5 + 4}}|||&thinsp;}}}}
 
| data5  = {{#if:{{{5|}}}|{{SetSymbol|{{PW data: {{{5}}}|6}}}} [[{{Trim|{{{5}}}}}]]}}
 
| data5  = {{#if:{{{5|}}}|{{SetSymbol|{{PW data: {{{5}}}|6}}}} [[{{Trim|{{{5}}}}}]]}}
 
| label6  = {{#if:{{{6|}}}|<!--
 
| label6  = {{#if:{{{6|}}}|<!--
 
-->{{#if:{{PW data: {{{6}}}|3}}|[[File:{{PW data: {{{6}}}|3}}|x20px|link={{{6}}}|{{{6}}}]]}}<!--
 
-->{{#if:{{PW data: {{{6}}}|3}}|[[File:{{PW data: {{{6}}}|3}}|x20px|link={{{6}}}|{{{6}}}]]}}<!--
 
-->&nbsp;{{PW data: {{{6}}}|2}}<!--
 
-->&nbsp;{{PW data: {{{6}}}|2}}<!--
-->&nbsp;{{Color Icons|{{PW data: {{{6}}}|7}}}}}}
+
-->&nbsp;{{Color Icons|{{PW data: {{{6}}}|7}}|{{#expr:(4 - {{#len:{{PW data: {{{6}}}|7}}}}) * 5 + 4}}|||&thinsp;}}}}
 
| data6  = {{#if:{{{6|}}}|{{SetSymbol|{{PW data: {{{6}}}|6}}}} [[{{Trim|{{{6}}}}}]]}}
 
| data6  = {{#if:{{{6|}}}|{{SetSymbol|{{PW data: {{{6}}}|6}}}} [[{{Trim|{{{6}}}}}]]}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 00:47, 8 June 2019

Template usage

An infobox which lists each playable Planeswalker representing the same character.

The first parameter is the Planeswalker character's name (not necessarily the name of a playable Planeswalker).

Each following parameter is the full name of a Planeswalker who represents that character.

All Planeswalkers in a Planeswalker series are assumed to have an alias.

Example

This shorthand:

{{Infobox PW series
|Sarkhan Vol (human)
|Sarkhan the Mad
|Sarkhan, Fireblood
|Sarkhan Unbroken
}}

Produces:

Planeswalker series
Sarkhan Vol (human)
Sarkhan the Mad S1 BlackRed Sarkhan the Mad
Sarkhan, Fireblood S2 Red Sarkhan, Fireblood
Sarkhan Unbroken S3 BlueRedGreen Sarkhan Unbroken
Planeswalker series
Nicol Bolas (elder dragon)
Nicol Bolas, God-Pharaoh B1 BlueBlackRed Nicol Bolas, God-Pharaoh
Nicol Bolas, the Ravager B2 BlueBlackRed Nicol Bolas, the Ravager Transforms
Nicol Bolas, Dragon-God B3 BlueBlackRed Nicol Bolas, Dragon-God