Template

Difference between revisions of "Player/doc"

From Shadow Era Wiki

(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 <code>link=false</code> variable. ==Usage== The variables ...")
 
Line 6: Line 6:
 
;|  
 
;|  
 
:the name of the player
 
: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.
 
 
;|link=
 
;|link=
 
:There's three options:
 
:There's three options:
Line 24: Line 20:
 
==Example==
 
==Example==
 
This code:
 
This code:
  <nowiki>{{player|Tyler|race=P|flag=USA}}</nowiki>
+
  <nowiki>{{player|Tyler|link=false}}</nowiki>
  <nowiki>{{player|Ret|hs=race|race=Z|flag=Netherlands}}</nowiki>
+
  <nowiki>{{player|Ret|hs=race|link=false}}</nowiki>
<nowiki>{{player|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}</nowiki>
+
  
 
Returns this:
 
Returns this:

Revision as of 09:50, 2 July 2014

This template allows for adding race icons and flags in a simple manner. If you do not wish to have a link use the link=false variable.

Usage

The variables are:

|
the name of the player
|link=
There's three options:
link=true
Links the players name to the Liquipedia page with that name.
Note: This is the default. link=true behaves the same as simply not specifying a link= parameter.
link=false
Player's name is not linked.
link=other
Links the player's name to other.
|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|Tyler|link=false}}
{{player|Ret|hs=race|link=false}}

Returns this:

Tyler
raceRet
raceIhasnowikipage