@DeletedUser41170185 (talk | contribs) m (hmm) |
@DeletedUser41170185 (talk | contribs) (No more #ifexist. Might work better on pages with many occurrences) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1}}}}} |
<includeonly>{{#switch:{{lc:{{{1}}}}} |
||
− | | #default = <span style="white-space:nowrap">[[ |
+ | | #default = <span style="white-space:nowrap">[[File:{{#if:{{#vardefineecho:teamicon|{{#show:{{{1}}}|?icon#}}}}|{{#var:teamicon}}|Team icon Default.png}}|{{{2|20}}}px|link={{{1}}}]] {{#if:{{#vardefineecho:teamname|{{#show:{{{1}}}|?name#}}}}|[[{{{1}}}|{{#var:teamname}}]]|{{{1}}}}}</span> |
| tbd = {{Tooltip|TBD|To be decided}} |
| tbd = {{Tooltip|TBD|To be decided}} |
||
| tba = {{Tooltip|TBA|To be announced}} |
| tba = {{Tooltip|TBA|To be announced}} |
Revision as of 15:22, 15 October 2017
Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px.
Usage:
{{Team|<name>|<size>}}
[[File:{{#show:Natus Vincere|?icon#}}|20px|link=Natus Vincere]] {{#show:Natus Vincere|?name#}}
{{Team|TBD}}
TBD
{{Team|TBA}}
TBA
It will change automatically if that team doesn't exist:
{{Team|QWERTY12345}}
[[File:{{#show:QWERTY12345|?icon#}}|20px|link=QWERTY12345]] {{#show:QWERTY12345|?name#}}
TemplateData
Generate a link to the teams page with a small icon next to it.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Team | 1 | The teams name.
| String | required |
Size | 2 | The icons size.
| String | optional |
Reverse | reverse | Reverse the layout. Mainly for use in templates. | Boolean | optional |