Difference between revisions of "Template:Player/doc"
From QWiki
m (Rework of doc including new abbr) |
m (Further polishing the turd) |
||
Line 1: | Line 1: | ||
Used for players and teams. | Used for players and teams. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
This code: | This code: | ||
Line 37: | Line 14: | ||
:{{player|Team Brazil|flag=br|link=abbr|abbr=GT, mur & lit}} <small>''- no link but abbreviation (abbr)''</small> | :{{player|Team Brazil|flag=br|link=abbr|abbr=GT, mur & lit}} <small>''- no link but abbreviation (abbr)''</small> | ||
:{{player|Ihasnowikipage|flag=us|link=false}} <small>''- link=false''</small> | :{{player|Ihasnowikipage|flag=us|link=false}} <small>''- link=false''</small> | ||
+ | ==Usage== | ||
+ | ;| | ||
+ | :Name of the player. | ||
+ | ;|flag= | ||
+ | :Country flag using two letter ISO code. Leave empty for {{Flag/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 {{abbr|dashed underline|Just like this}}, hover to read content. Requires <code>|abbr=</code> to be none-empty. | ||
+ | ;|abbr= | ||
+ | :Abbreviation text that will display on hover, could be an array of players that a team consist of. Requires <code>|link=abbr</code> to be set. |
Latest revision as of 15:14, 10 November 2020
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:
- Hib - default (name as link)
- TBD - empty player with abbr To Be Decided.
- Kylo Ren - custom link
- Team Brazil - no link but abbreviation (abbr)
- Ihasnowikipage - link=false
Usage
- |
- Name of the player.
- |flag=
- Country flag using two letter ISO code. Leave empty for .
- |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.