Template:T/doc: Difference between revisions
More actions
m +expl |
m correction |
||
| Line 79: | Line 79: | ||
{| class="collabsible collapse" | {| class="collabsible collapse" | ||
|- | |- | ||
| style="text-align:center" | T || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl| | | style="text-align:center" | T || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}} | ||
|- | |- | ||
| T0 || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''8'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} | | T0 || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''8'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} | ||
| Line 87: | Line 87: | ||
| T2 || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''0'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} | | T2 || <nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''0'''<nowiki>}}}}}}|code={{{code|}}}}}</nowiki> || style="text-align:center" | {{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} | ||
|- | |- | ||
| Tl || <nowiki><tt>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}</tt></nowiki> || style="text-align:center" | <tt>{{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|}}}}}}|code={{{code|}}}}}</tt> | | Tl || <nowiki><tt>{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}</tt></nowiki> || style="text-align:center" | <tt>{{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}</tt> | ||
|- | |- | ||
| Tl ||<nowiki>{{#tag:tt|{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}}}</nowiki> || style="text-align:center" | {{#tag:tt|{{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|}}}}}}|code={{{code|}}}}}}} | | Tl ||<nowiki>{{#tag:tt|{{</nowiki>{{BASEPAGENAME}}<nowiki>|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|</nowiki>'''2'''<nowiki>}}}}}}|code={{{code|}}}}}}}</nowiki> || style="text-align:center" | {{#tag:tt|{{{{BASEPAGENAME}}|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}}} | ||
|} | |} | ||
<small>(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)</small><br> | <small>(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)</small><br> | ||
Revision as of 08:40, 5 August 2016
T links to a Template. It creates a formatted link to a template and surrounds it with {{...}} making the brackets a part of the link.
Usage
{{T |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name (any namespace is ignored) | T | optional | |
2 | display name (displayed as specified) | parameter 1 | optional | |
3 | interwiki language code (can also be specified with lang=) | empty | optional | |
incli | numeric value,
| 2 | optional | |
code | any value, for a sourrounding <code> tag (like {{Tl2}})With code=tt also the surrounding brackets are typewritten | 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: all namespaces
The template is intended to be used by the following user groups: all users
Note: The templates T, T0, T1, T2, Tl contain the same code with the only difference of the default value for the parameter incl=.
| Template | i |
appearance |
|---|---|---|
| T | 2 | {{T}} |
| T0 | 8 | T0 |
| T1 | 1 | {{T1}} |
| T2 | 0 | {{T2}} |
| Tl | 2 | {{Tl}} |
This means that each of them can be converted into each one of the others by just replacing that parameter:
| T | {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}} | {{T/doc}} |
| T0 | {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} | T/doc |
| T1 | {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|1}}}}}}|code={{{code|}}}}} | {{T/doc}} |
| T2 | {{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} | {{T/doc}} |
| Tl | <tt>{{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}</tt> | {{T/doc}} |
| Tl | {{#tag:tt|{{T|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}}} | {{T/doc}} |
(Because the templates T and Tl are both editprotected currently only T0 and T1 are maintained; the examples below may not work well with other templates.)
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|incl=4}} → {{Coltit}}
- {{T|Coltit|incl=5}} → {{Coltit}}
- {{T|Coltit|incl=6}} → {{Coltit}}
- {{T|Coltit|incl=8}} → Coltit
- {{T|Coltit|incl=9}} → 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}}