Dota 2 Wiki
No edit summary
mNo edit summary
 
(45 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
<includeonly>{{#invoke:Team ID|main}}</includeonly><noinclude>{{Doc}} [[Category:Link templates]][[ru:Шаблон:Team ID]][[zh:Template:Team ID]]</noinclude>
<includeonly>{{#switch: {{lc:{{{1|}}}}}
 
|#default = {{#ifeq:{{{1|}}}|||<span style="white-space:nowrap">{{#ifexist:File:Team icon {{{1}}}.png|[[File:Team icon {{{1}}}.png|{{{2|22x20}}}px|link={{{1}}}{{if lang}}]] [[{{{1}}}{{if lang}}|{{{1}}}]]|{{#ifexist:{{{1}}}|[[File:Team icon Default.png|{{{2|22x20}}}px]] [[{{{1}}}]]|[[File:Team icon Default.png|{{{2|22x20}}}px]] {{{1}}}}}}}</span>}}
 
|tbd = {{Tooltip|{{lang|en=TBD|pt-br=???}}|{{lang
 
| en = To be decided
 
| pt-br = A ser decidido
 
| zh-hans = 待定
 
}}}}
 
|tba = {{Tooltip|{{lang|en=TBA|pt-br=???}}|{{lang
 
| en = To be announced
 
| pt-br = A ser anunciado
 
| zh-hans = 待宣布
 
}}}}
 
|grp. s.
 
|grp.s
 
|grp = {{Tooltip|{{lang|en=Grp. S.|pt-br=Fase de grupos|zh-hans=小组赛}}|{{lang
 
| en = Group Stage (W/D/L)
 
| pt-br = Fase de grupos (V/E/D)
 
| zh-hans = 小组赛(胜/平/负)
 
}}}}
 
}}</includeonly><noinclude>{{Doc begin}}
 
Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px.
 
<br />
 
Usage:
 
<br />
 
{{Tlx|Team|<name>|<size>}}
 
<br />
 
{{Team|Natus Vincere}}
 
<br />
 
{{Tlx|Team|TBD}}
 
<br />
 
{{Team|TBD}}
 
<br />
 
{{Tlx|Team|TBA}}
 
<br />
 
{{Team|TBA}}
 
<br />
 
It will change automatically if that team doesn't exist:
 
<br />
 
{{Tlx|Team|QWERTY12345}}
 
<br />
 
{{Team|QWERTY12345}}
 
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 

Latest revision as of 05:29, 14 April 2018

Documentation for Template:Team ID [ Usage | View | Edit | Purge | Subpages ]

Lua logo
▶️ Swapsies!
This template uses Lua.
Its code can be found under Module:Team ID.


Use this template for displaying teams in articles together with their names. Image size is optional, defaults at 20px.
Usage:
{{Team|<name>|<size>}}
Natus Vincere Natus Vincere
{{Team|TBD}}
TBD
{{Team|TBA}}
TBD
It will change automatically if that team doesn't exist:
{{Team|QWERTY12345}}
QWERTY12345 QWERTY12345

TemplateData

Generate a link to the teams page with a small icon next to it.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Team1

The teams name.

Example
Team Liquid
Stringrequired
Size2

The icons size.

Default
20x20px
Stringoptional
Reversereverse

Reverse the layout. Mainly for use in templates.

Booleanoptional