Template:Player

Revision as of 10:50, 19 June 2015 by Warwolf30 (talk | contribs) (Created page with "<includeonly><!-- Starting with checking if the hidden sort variable is set if so it'll go into a switch to output the right variable as hidden. -->{{#if:{{{hs|}}}|{{HiddenSor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(view - edit) Documentation

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 (or bot)
|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}}
{{player|Ret|hs=race|race=Z}}
{{player|Ihasnowikipage|hs=race|race=Z}}

Returns this:

Picon small.png Nony
ZZicon small.png Ret
ZZicon small.png Ihasnowikipage