Difference between revisions of "Template:TH/doc"
From QWiki
m (Added info on flags) |
m (Added info on centering) |
||
Line 26: | Line 26: | ||
;|no-link= | ;|no-link= | ||
:If the team listed does not have a page on QWiki, set this variable to "true". | :If the team listed does not have a page on QWiki, set this variable to "true". | ||
+ | ;|center= | ||
+ | :If center is set to anything, the year/date will move closer to center. | ||
== Example == | == Example == | ||
Line 31: | Line 33: | ||
<pre>{{TH|2015 - '''Present'''|Felia|link=Felia020}} | <pre>{{TH|2015 - '''Present'''|Felia|link=Felia020}} | ||
{{TH|2012 – 2013|The Viper Squad|inactive}} | {{TH|2012 – 2013|The Viper Squad|inactive}} | ||
+ | {{TH|2003|Chopstick Ninjas|flag=dk|center=y}} | ||
{{TH|2011|Zetor}}</pre> | {{TH|2011|Zetor}}</pre> | ||
Returns these layouts. | Returns these layouts. | ||
{{TH|2015 - '''Present'''|Felia|link=Felia020}} | {{TH|2015 - '''Present'''|Felia|link=Felia020}} | ||
{{TH|2012 – 2013|The Viper Squad|inactive}} | {{TH|2012 – 2013|The Viper Squad|inactive}} | ||
+ | {{TH|2003|Chopstick Ninjas|flag=dk|center=y}} | ||
{{TH|2011|Zetor}} | {{TH|2011|Zetor}} | ||
<noinclude>[[Category:Template Documentation Pages]]</noinclude> | <noinclude>[[Category:Template Documentation Pages]]</noinclude> |
Latest revision as of 12:36, 20 March 2023
Usage
The variables are:
- |1=
- The first variable entered is the date, it will be italicized.
- |2=
- The second variable is the team name, it will be linked.
- |3=
- Third variable must be any of the values to the left in this list:
r
= Retired
|retired
= Retired
|teamless
= Teamless
|inactive
= (Inactive)
|analyst
= (Analyst)
|coach
= (Coach)
|stand-in
= (Stand-in)
|backup
= (Backup)
|substitute
= (Substitute)
|manager
= (Manager)
|trial
= (Trial)
|tryout
= (Tryout)
- |flag=
- Defaulting to none, use the 2 letter iso code for the country to show flag.
- |link=
- If the name of the team and the page name on QWiki differ, use this variable to set the page link.
- |no-link=
- If the team listed does not have a page on QWiki, set this variable to "true".
- |center=
- If center is set to anything, the year/date will move closer to center.
Example
{{TH|2015 - '''Present'''|Felia|link=Felia020}} {{TH|2012 – 2013|The Viper Squad|inactive}} {{TH|2003|Chopstick Ninjas|flag=dk|center=y}} {{TH|2011|Zetor}}
Returns these layouts.
2015 - Present
2012 – 2013
The Viper Squad (Inactive)
2003
2011