Difference between revisions of "Template:Player/doc"

From QWiki
m
m
Line 10: Line 10:
 
;|race=  
 
;|race=  
 
:fill in the race of the player as initial or name this returns the corresponding race icon in front of the name.
 
:fill in the race of the player as initial or name this returns the corresponding race icon in front of the name.
;|hs=  
+
;|link=
: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.
+
: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]].
  
 
==Example==
 
==Example==
 
This code:
 
This code:
  <nowiki>{{player|Nony|race=P|flag=USA}}</nowiki>
+
  <nowiki>{{player|Nony|flag=us|link=false}}</nowiki>
 
  <nowiki>{{player|Ret|hs=race|race=Z|flag=Netherlands}}</nowiki>
 
  <nowiki>{{player|Ret|hs=race|race=Z|flag=Netherlands}}</nowiki>
  <nowiki>{{player|Ihasnowikipage|hs=race|race=Z|flag=Sweden}}</nowiki>
+
  <nowiki>{{player|Ihasnowikipage|hs=race|race=Z|flag=se}}</nowiki>
  
 
Returns this:
 
Returns this:

Revision as of 06:33, 24 April 2017

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

Example

This code:

{{player|Nony|flag=us|link=false}}
{{player|Ret|hs=race|race=Z|flag=Netherlands}}
{{player|Ihasnowikipage|hs=race|race=Z|flag=se}}

Returns this:

United States Nony
Netherlands Ret
Sweden Ihasnowikipage