Difference between revisions of "Template:Player/doc"
From QWiki
m (→Example) |
m (→Example) |
||
Line 22: | Line 22: | ||
==Example== | ==Example== | ||
This code: | This code: | ||
− | <nowiki>{{player| | + | <nowiki>{{player|SoD|flag=se}}</nowiki> |
− | <nowiki>{{player| | + | <nowiki>{{player|Hib|flag=fi}}</nowiki> |
− | <nowiki>{{player|Ihasnowikipage| | + | <nowiki>{{player|Ihasnowikipage|flag=us|link=false}}</nowiki> |
Returns this: | Returns this: | ||
− | :{{player| | + | :{{player|SoD|flag=se}} |
− | :{{player| | + | :{{player|Hib|flag=fi}} |
− | :{{player|Ihasnowikipage|flag= | + | :{{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: