Template:T/doc: Difference between revisions
Template page
More actions
m corr |
m expansion |
||
| Line 16: | Line 16: | ||
|4def= | |4def= | ||
|4stat=optional- | |4stat=optional- | ||
|5= | |5=incl | ||
|5d= | |5d=numeric value, | ||
|5def= | *0: both brackets are not a part of the link,  like {{Tl|Tl}} | ||
|5stat=optional- | *1: the inner brackets are part of the link  like {{T1|T1}} | ||
|6=parm | *2: both brackets are part of the link,  like {{T|T}} | ||
|5def=2 | |||
|5stat=optional-|6=parm | |||
|6d=to display templates parameters   (like {{T|Tlx}}) <br> e.g."<code><nowiki>parm=&#124;1=&#124;2=&#124;code=y</nowiki></code>"<br>gives "<code><nowiki>|1=|2=|code=y</nowiki></code>" | |6d=to display templates parameters   (like {{T|Tlx}}) <br> e.g."<code><nowiki>parm=&#124;1=&#124;2=&#124;code=y</nowiki></code>"<br>gives "<code><nowiki>|1=|2=|code=y</nowiki></code>" | ||
|6def= | |6def= | ||
| Line 45: | Line 47: | ||
*<nowiki>{{T}}</nowiki> → {{T}} | *<nowiki>{{T}}</nowiki> → {{T}} | ||
*<nowiki>{{T|coltit}}</nowiki> → {{T|coltit}} | *<nowiki>{{T|coltit}}</nowiki> → {{T|coltit}} | ||
*<nowiki>{{T|Coltit|incl=0}}</nowiki> → {{T|Coltit|incl=0}} | |||
*<nowiki>{{T|Coltit|incl=1}}</nowiki> → {{T|Coltit|incl=1}} | |||
*<nowiki>{{T|Coltit|incl=2}}</nowiki> → {{T|Coltit|incl=2}} | |||
*<nowiki>{{T|Coltit|coltit}}</nowiki> → {{T|Coltit|coltit}} | *<nowiki>{{T|Coltit|coltit}}</nowiki> → {{T|Coltit|coltit}} | ||
*<nowiki>{{T|Coltit|test|en}}</nowiki> → {{T|Coltit|test|en}} | *<nowiki>{{T|Coltit|test|en}}</nowiki> → {{T|Coltit|test|en}} | ||
Revision as of 06:43, 25 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 | |
incl | numeric value, | 2 | 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|incl=0}} → {{Coltit}}
- {{T|Coltit|incl=1}} → {{Coltit}}
- {{T|Coltit|incl=2}} → {{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}}