@DeletedUser41170185 (talk | contribs) mNo edit summary |
@DeletedUser41170185 (talk | contribs) (Removed the deprecated reverse option) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:name|{{#ifexist:{{{1}}}|[[{{{1}}}|{{#show:{{{1}}}|?name#}}]]|{{{1}}}}}}}{{#vardefine:image|{{#ifexist:File:Team icon {{{1}}}.png|File:Team icon {{{1}}}.png|{{#ifexist:File:{{#show:{{{1}}}|?image#}}|File:{{#show:{{{1}}}|?image#}}|File:Team icon Default.png}}}}}}<!-- |
<includeonly>{{#vardefine:name|{{#ifexist:{{{1}}}|[[{{{1}}}|{{#show:{{{1}}}|?name#}}]]|{{{1}}}}}}}{{#vardefine:image|{{#ifexist:File:Team icon {{{1}}}.png|File:Team icon {{{1}}}.png|{{#ifexist:File:{{#show:{{{1}}}|?image#}}|File:{{#show:{{{1}}}|?image#}}|File:Team icon Default.png}}}}}}<!-- |
||
− | -->{{# |
+ | -->{{#switch: {{lc:{{{1}}}}} |
− | {{#switch: {{lc:{{{1}}}}} |
||
− | | #default = <span style="white-space:nowrap">{{#var:name}} [[{{#var:image}}|{{{2|20}}}px|link={{{1}}}|{{#var:name}}]]</span> |
||
− | | tbd = {{Tooltip|TBD|To be decided}} |
||
− | | tba = {{Tooltip|TBA|To be announced}} |
||
− | }}| |
||
− | {{#switch: {{lc:{{{1}}}}} |
||
| #default = <span style="white-space:nowrap">[[{{#var:image}}|{{{2|20}}}px|link={{{1}}}|{{#var:name}}]] {{#var:name}}</span> |
| #default = <span style="white-space:nowrap">[[{{#var:image}}|{{{2|20}}}px|link={{{1}}}|{{#var:name}}]] {{#var:name}}</span> |
||
| tbd = {{Tooltip|TBD|To be decided}} |
| tbd = {{Tooltip|TBD|To be decided}} |
||
Line 13: | Line 7: | ||
| grp. s.|grp.s|grp = {{Tooltip|Grp. S.|Group Stage (W/D/L)}} |
| grp. s.|grp.s|grp = {{Tooltip|Grp. S.|Group Stage (W/D/L)}} |
||
| league|league play = {{Tooltip|League Play|League Play (W/D/L)}} |
| league|league play = {{Tooltip|League Play|League Play (W/D/L)}} |
||
− | + | }}</includeonly><noinclude>{{Doc begin}} |
|
Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px. |
Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px. |
||
<br /> |
<br /> |
||
Line 35: | Line 29: | ||
<br /> |
<br /> |
||
{{Team|QWERTY12345}} |
{{Team|QWERTY12345}} |
||
− | <br /> |
||
− | The icon can also be displayed on the right side by adding <code>reverse=Yes</code> |
||
− | <br /> |
||
− | <code><nowiki>{{Team|<name>|reverse=yes}}</nowiki></code> |
||
− | <br /> |
||
− | {{Team|Na'Vi|reverse=Yes}} |
||
[[Category:Team Templates|{{PAGENAME}}]] |
[[Category:Team Templates|{{PAGENAME}}]] |
Revision as of 21:49, 14 October 2017
Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px.
Usage:
Template:Tlx
{{#show:Natus Vincere|?name#}}
Template:Tlx
TBD
Template:Tlx
TBA
It will change automatically if that team doesn't exist:
Template:Tlx
QWERTY12345