Difference between revisions of "Template:Player"

From QWiki
m
m
Line 4: Line 4:
 
     |race = {{{race|}}}
 
     |race = {{{race|}}}
 
     |name = {{{1|}}}
 
     |name = {{{1|}}}
 +
    |seed = {{{2|}}}
 
     |flag = {{{flag/}}}
 
     |flag = {{{flag/}}}
    |seed = {{{3|}}}
 
 
     |{{{hs}}}}}}}}}<!--
 
     |{{{hs}}}}}}}}}<!--
  
Line 14: Line 14:
 
-->{{#if:{{{race|}}}|{{RaceIconSmall|{{{race}}}}}&nbsp;}}<!--
 
-->{{#if:{{{race|}}}|{{RaceIconSmall|{{{race}}}}}&nbsp;}}<!--
  
-->{{#if:{{{3|TBD}}}|{{{3|{{{3}}}}}}|{{abbr|TBD|To Be Decided}}}}}}<!--
+
-->{{#if:{{{2|TBD}}}|{{{2|{{{2}}}}}}|{{abbr|TBD|To Be Decided}}}}}}<!--
  
  

Revision as of 07:02, 21 September 2018

Documentation (view - edit)

Used for players and teams.

Example

This code:

{{player|Hib|flag=fi}}
{{player|}}
{{player|Kylo Ren|flag=se|link=shaka}}
{{player|Team Brazil|flag=br|link=abbr|abbr=GT, mur & lit}}
{{player|Ihasnowikipage|flag=us|link=false}}

Returns this:

Finland {{{2}}}}}Hib - default (name as link)
{{{2}}}}}TBD - empty player with abbr To Be Decided.
Sweden {{{2}}}}}Kylo Ren - custom link
Brazil {{{2}}}}}Team Brazil - no link but abbreviation (abbr)
United States {{{2}}}}}Ihasnowikipage - link=false

Usage

|
Name of the player.
|flag=
Country flag using two letter ISO code. Leave empty for TBD.
|link=
Put a link to another page (not equal to the name), or:
false
Player's name is not linked.
abbr
Player's name gets a dashed underline, hover to read content. Requires |abbr= to be none-empty.
|abbr=
Abbreviation text that will display on hover, could be an array of players that a team consist of. Requires |link=abbr to be set.