Difference between revisions of "Template:Player"
(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 09: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.
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: