Difference between revisions of "Template:PW"

From mtgpq wiki
Jump to: navigation, search
(Created page with "<noinclude>Shorthand for creating entries for {{tl|Planeswalker}}. Parameters are as follows: * <code><nowiki>{{{1}}}</nowiki></code>: Name of the planeswalker's article, whi...")
 
 
(9 intermediate revisions by 2 users 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|{{Symbol|W}}}}
 
|U|{{Symbol|U}}}}
 
|B|{{Symbol|B}}}}
 
|R|{{Symbol|R}}}}
 
|G|{{Symbol|G}}}}
 
|C|{{Symbol|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)