Difference between revisions of "Template:Player2/doc"

From QWiki
(Created page with "This template is similar to the {{tl|Player}} template, however the race and flag icons are displayed on the right side of the player name. This is useful for player columns w...")
 
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
This code:
 
This code:
  
  <nowiki>{{player2|NonY|race=P|flag=USA}}
+
  <nowiki>{{player2|NonY|race=|flag=us}}
{{player2|Ret|hs=race|race=Z|flag=Netherlands}}
+
{{player2|Ret|hs=race|race=|flag=nl}}
{{player2|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}</nowiki>
+
{{player2|Ihasnowikipage|hs=race|race=|flag=se}}</nowiki>
  
 
Returns this:
 
Returns this:
  
:{{player2|NonY|race=P|flag=USA}}
+
:{{player2|NonY|race=|flag=us}}
:{{player2|Ret|hs=race|race=Z|flag=Netherlands}}
+
:{{player2|Ret|hs=race|race=|flag=nl}}
:{{player2|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}
+
:{{player2|Ihasnowikipage|hs=race|race=|flag=se}}
 +
 
 +
Adapted from [http://wiki.teamliquid.net/starcraft2/Template:Player2 Liquipedia]

Latest revision as of 20:24, 12 January 2017

This template is similar to the {{Player}} template, however the race and flag icons are displayed on the right side of the player name. This is useful for player columns which are aligned to the right.

Usage

Variables and usage like the {{Player}} template.

Example

This code:

{{player2|NonY|race=|flag=us}}
{{player2|Ret|hs=race|race=|flag=nl}}
{{player2|Ihasnowikipage|hs=race|race=|flag=se}}

Returns this:

NonY United States
Ret Netherlands
Ihasnowikipage Sweden

Adapted from Liquipedia