Difference between revisions of "Template:Player/doc"

From QWiki
(Created page with "This template allows for adding race icons and flags in a simple manner. If you do not wish to have a link use the {{tl|Playersp}} template instead. ==Usage== The variables...")
 
m
Line 20: Line 20:
  
 
Returns this:
 
Returns this:
:{{player|Nony|race=P|flag=USA}}
+
:{{player|Nony|flag=us}}
:{{player|Ret|hs=race|race=Z|flag=Netherlands}}
+
:{{player|Ret|flag=nl}}
:{{player|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}
+
:{{player|Ihasnowikipage|flag=se}}

Revision as of 18:32, 14 April 2017

This template allows for adding race icons and flags in a simple manner. If you do not wish to have a link use the {{Playersp}} template instead.

Usage

The variables are:

|
the name of the player
|flag=
name country of which the player comes from and this returns with the flag of said country in front of the name
|race=
fill in the race of the player as initial or name this returns the corresponding race icon in front of the name.
|hs=
Set this to "name", "race" or "flag" to make the player sortable by the values that were set for the corresponding variable, if anything else is entered that will be used for the hidden sort field.

Example

This code:

{{player|Nony|race=P|flag=USA}}
{{player|Ret|hs=race|race=Z|flag=Netherlands}}
{{player|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}

Returns this:

United States Nony
Netherlands Ret
Sweden Ihasnowikipage