Difference between revisions of "Template:Player/doc"

From StarCraft AI, the resource for custom StarCraft Brood War AIs
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 10:51, 19 June 2015

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