Template:Player/doc

From QWiki
< Template:Player
Revision as of 14:09, 10 November 2020 by Bps (talk | contribs) (Rework of doc including new abbr)

Used for players and teams.

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. Leave empty for TBD.
|link=
There's three options:
link=true or empty
Links the player name to the QWiki 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=abbr
Player gets a dashed underline you can hover to read explanation. Requires |abbr= to be none-empty.
link=anything
Links the player's name to anything.
|abbr=
Abbreviation text that will display on hover, could be an array of players the team consist of. Requires |link=abbr to be set.


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 Hib - default (name as link)
TBD TBD - empty player with abbr To Be Decided.
Sweden Kylo Ren - custom link
Brazil Team Brazil - no link but abbreviation (abbr)
United States Ihasnowikipage - link=false