Difference between revisions of "Template:Player/doc"

From QWiki
Line 22: Line 22:
 
==Example==
 
==Example==
 
This code:
 
This code:
  <nowiki>{{player|Nony|flag=us|link=false}}</nowiki>
+
  <nowiki>{{player|SoD|flag=se}}</nowiki>
  <nowiki>{{player|Ret|hs=race|race=Z|flag=Netherlands}}</nowiki>
+
  <nowiki>{{player|Hib|flag=fi}}</nowiki>
  <nowiki>{{player|Ihasnowikipage|hs=race|race=Z|flag=se}}</nowiki>
+
  <nowiki>{{player|Ihasnowikipage|flag=us|link=false}}</nowiki>
  
 
Returns this:
 
Returns this:
:{{player|Nony|flag=us|link=false}}
+
:{{player|SoD|flag=se}}
:{{player|Ret|flag=nl}}
+
:{{player|Hib|flag=fi}}
:{{player|Ihasnowikipage|flag=se}}
+
:{{player|Ihasnowikipage|flag=us|link=false}}

Revision as of 06:37, 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|SoD|flag=se}}
{{player|Hib|flag=fi}}
{{player|Ihasnowikipage|flag=us|link=false}}

Returns this:

Sweden SoD
Finland Hib
United States Ihasnowikipage