Difference between revisions of "Template:PW"

From mtgpq wiki
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Shorthand for creating entries for {{tl|Planeswalker}}.
+
<noinclude>
  
Parameters are as follows:
+
==Usage==
* <code><nowiki>{{{1}}}</nowiki></code>: Name of the planeswalker's article, which should also be their full name.
+
Generates an entry for the Planeswalker navbox, [[Template:Planeswalker]].
* <code><nowiki>{{{2}}}</nowiki></code>: A list of letters identifying that planeswalker's colors.
+
 
** Standard WUBRG for the color pie, plus C for colorless.
+
The only parameter is the full Planeswalker name.
  
 
== Example ==
 
== Example ==
 
This shorthand:
 
This shorthand:
  
<code><nowiki>{{PW|Nicol Bolas|UBR}}</nowiki></code>
+
<code><nowiki>
 +
{{PW|Nicol Bolas, God-Pharaoh}}
 +
</nowiki></code>
  
 
Produces:
 
Produces:
: {{PW|Nicol Bolas, the Arisen|UBR}}
+
{{PW|Nicol Bolas, God-Pharaoh}}
  
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
</noinclude><includeonly>
+
</noinclude><includeonly>{{nowrap | [[{{{1}}}]] ({{Color Icons|{{PW data: {{{1}}}|7}}}})}}</includeonly>
{{nowrap|[[{{{1}}}]] ({{replace|{{replace|{{replace|{{replace|{{replace|{{replace|
 
{{{2}}}
 
|W|{{W}}}}
 
|U|{{U}}}}
 
|B|{{B}}}}
 
|R|{{R}}}}
 
|G|{{G}}}}
 
|C|{{C}}}})
 
}}</includeonly>
 

Latest revision as of 01:27, 10 March 2019


Usage

Generates an entry for the Planeswalker navbox, Template:Planeswalker.

The only parameter is the full Planeswalker name.

Example

This shorthand:

{{PW|Nicol Bolas, God-Pharaoh}}

Produces: Nicol Bolas, God-Pharaoh (BlueBlackRed)