Template:T0/doc: Difference between revisions
Template page
More actions
1st doc |
m format |
||
| Line 2: | Line 2: | ||
|1=1 | |1=1 | ||
|1d=template name | |1d=template name | ||
|1def= | |1def={{T0|t1}} | ||
|1stat= | |1stat= | ||
|2=2 | |2=2 | ||
|2d=display name | |2d=display name | ||
|2def=parameter #1 | |2def=parameter #1 (uc1{{exp|st}}) | ||
|2stat= | |2stat= | ||
|3=3 | |3=3 | ||
| Line 18: | Line 18: | ||
|name=T0 | |name=T0 | ||
|desc='''T0''' links to a '''T'''emplate. It creates a <!--simple pipe-trick won't work!--> link to | |desc='''T0''' links to a '''T'''emplate. It creates a <!--simple pipe-trick won't work!--> link to the template, ''without'' surrounding<code>{{</code>...<code>}}</code> brackets. | ||
|namespace= | |namespace= | ||
| Line 34: | Line 34: | ||
|relieson= | |relieson= | ||
}} | }} | ||
Compared with other one-letter link template names, e.g. {{Tl|C}}, {{Tl|F}}, {{Tl|U}}, {{Tl|W}}, it would be more logical to call this template {{Tl|T}}, but this name is not any more available. | |||
And it is ''not advised'' to expand the heavily used template {{Tl|T}} for an additional variation without the brackets. | |||
__NOTOC__ | __NOTOC__ | ||
== Examples == | == Examples == | ||
* {{tlf|T0|information}} → {{T0|information}} | * {{tlf|T0|information}} → {{T0|information}} | ||
*<nowiki>{{T0}}</nowiki> → {{T0}} | *<nowiki>{{T0}}</nowiki> → {{T0}} (default) | ||
*<nowiki>{{T0|coltit}}</nowiki> → {{T0|coltit}} | *<nowiki>{{T0|coltit}}</nowiki> → {{T0|coltit}} | ||
*<nowiki>{{T0|Coltit|coltit}}</nowiki> → {{T0|Coltit|coltit}} | *<nowiki>{{T0|Coltit|coltit}}</nowiki> → {{T0|Coltit|coltit}} | ||
| Line 48: | Line 51: | ||
*<nowiki>{{T0|Coltit|coltit|code=y}}</nowiki> → {{T0|Coltit|coltit|code=y}} | *<nowiki>{{T0|Coltit|coltit|code=y}}</nowiki> → {{T0|Coltit|coltit|code=y}} | ||
*<nowiki>{{T0|Coltit|color titling|en|code=y}}</nowiki> → {{T0|Coltit|color titling|en|code=y}} | *<nowiki>{{T0|Coltit|color titling|en|code=y}}</nowiki> → {{T0|Coltit|color titling|en|code=y}} | ||
*<nowiki>{{T0|Coltit| | *<nowiki>{{T0|Coltit|lang=de|code=y}}</nowiki> → {{T0|Coltit|lang=de|code=y}} | ||
Revision as of 12:39, 10 February 2014
T0 links to a Template. It creates a link to the template, without surrounding{{...}} brackets.
Usage
{{T0 |1= |2= |3= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name | T1 | optional | |
2 | display name | parameter #1 (uc1st) | optional | |
3 | interwiki language code (can also be specified with lang=) | empty | optional | |
code | any value, for a sourrounding <code> tag (like {{Tl2}}) | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
Compared with other one-letter link template names, e.g. {{C}}, {{F}}, {{U}}, {{W}}, it would be more logical to call this template {{T}}, but this name is not any more available. And it is not advised to expand the heavily used template {{T}} for an additional variation without the brackets.
Examples
- {{T0|information}} → Information
- {{T0}} → T0/doc (default)
- {{T0|coltit}} → Coltit
- {{T0|Coltit|coltit}} → coltit
- {{T0|Coltit|test|en}} → test
- {{T0|Coltit|3=de}} → Coltit
with code=y
- {{T0|U|user|code=y →
user - {{T0|coltit|code=y}} →
Coltit - {{T0|Coltit|coltit|code=y}} →
coltit - {{T0|Coltit|color titling|en|code=y}} →
color titling - {{T0|Coltit|lang=de|code=y}} →
Coltit
{{Commons:Link templates/Template links}}