Difference between revisions of "Template:Player"

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

Latest revision as of 11:50, 19 June 2015

(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.


The variables are:

the name of the player (or bot)
fill in the race of the player as initial or name this returns the corresponding race icon in front of the name.
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.


This code:


Returns this:

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