Template:T/doc: Difference between revisions
Template page
More actions
m diffused |
m corr |
||
| Line 24: | Line 24: | ||
|6def= | |6def= | ||
|6stat=optional- | |6stat=optional- | ||
|desc='''T''' links to a '''T'''emplate. It creates a simple pipe- | |desc='''T''' links to a '''T'''emplate. It creates a <!--simple pipe-trick won't work!--> link to a template and surrounds it with <code>{{</code>...<code>}}</code> making the brackets a part of the link. | ||
|namespace= | |namespace= | ||
|usergroup= | |usergroup= | ||
| Line 55: | Line 55: | ||
*<nowiki>{{T|Coltit|3=de|code=y}}</nowiki> → {{T|Coltit|3=de|code=y}} | *<nowiki>{{T|Coltit|3=de|code=y}}</nowiki> → {{T|Coltit|3=de|code=y}} | ||
{{Commons:Link templates/Template links}} | {{Commons:Link templates/Template links}} | ||
Revision as of 22:00, 24 July 2013
T links to a Template. It creates a link to a template and surrounds it with {{...}} making the brackets a part of the link.
Usage
{{T/doc |1= |2= |3= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name | T | optional | |
2 | display name | parameter 1 | 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 | |
excl | any value, for excluding the brackets (making them not a part of the link, like {{Tl}}) | empty | optional | |
parm | to display templates parameters (like {{Tlx}}) e.g." parm=|1=|2=|code=y"gives " |1=|2=|code=y" | 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
Examples
- {{T|information}} → {{Information}}
- {{T}} → {{T/doc}}
- {{T|coltit}} → {{Coltit}}
- {{T|Coltit|coltit}} → {{coltit}}
- {{T|Coltit|test|en}} → {{test}}
- {{T|Coltit|3=de}} → {{Coltit}}
with code=y
- {{T|U|user|code=y|parm=|1=|2=|parameter=}} → {{
user|1=|2=|parameter=}} - {{T|coltit|code=y}} → {{
Coltit}} - {{T|Coltit|coltit|code=y|excl=y}} → {{
coltit}} - {{T|Coltit|color titling|en|code=y}} → {{
color titling}} - {{T|Coltit|3=de|code=y}} → {{
Coltit}}
{{Commons:Link templates/Template links}}