Template:Player/doc

From QWiki
< Template:Player
Revision as of 15:03, 9 January 2017 by Bps (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

Template:Flag/usa Nony
Netherlands Ret
Sweden Ihasnowikipage