Difference between revisions of "Template:Player"
From QWiki
m |
m |
||
Line 16: | Line 16: | ||
|true=[[{{{1}}}]] | |true=[[{{{1}}}]] | ||
|[[{{{link}}}|{{{1}}}]] | |[[{{{link}}}|{{{1}}}]] | ||
− | |{{#if:{{{1|TBD}}}|[[{{{1|TBD}}}]]|{{abbr|TBD|To Be Decided | + | |{{#if:{{{1|TBD}}}|[[{{{1|TBD}}}]]|{{abbr|TBD|To Be Decided}}}}</span><!-- |
</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> | </includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude> |
Revision as of 11:19, 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:
{{#switch: {{{link}}} |false=Hib |true=Hib |[[{{{link}}}|Hib]] |Hib - default (name as link)
- {{#if:|
{{#switch: {{{link}}} |false= |true=[[]] |[[{{{link}}}|]] |TBD - empty player with abbr To Be Decided.
{{#switch: shaka |false=Kylo Ren |true=Kylo Ren |Kylo Ren |Kylo Ren - custom link
{{#switch: abbr |false=Team Brazil |true=Team Brazil |Team Brazil |Team Brazil - no link but abbreviation (abbr)
{{#switch: false |false=Ihasnowikipage |true=Ihasnowikipage |Ihasnowikipage |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.