Template:T1

From Wikimedia Commons, the free media repository
Jump to: navigation, search

{{T1}}

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:T/doc.

T1 links to a Template. It creates a formatted link to a template and surrounds it with two brackets making the inner bracket a part of the link.

Usage

{{T1 |1= }}

Template parameters

Parameter Description Default Status
1 template name (any namespace is ignored) T1 optional
2 display name (displayed as specified) parameter 1 optional
3 interwiki language code (can also be specified with lang=) empty optional
incl
i
numeric value,
  • 0: none of the brackets are part of the link
  • 1: the inner brackets are part of the link
  • 2: both brackets are part of the link
  • 4: like i=0 but with the name typewritten
  • 5: like i=1 but with the name typewritten
  • 6: like i=2 but with the name typewritten
  • 8: without surrounding brackets
  • 9: like i=8 but with the name typewritten
1 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=&#124;1=&#124;2=&#124;code=y"gives "|1=|2=|code=y"
For a better appearing and easier to format explanatory, use {{Tle}}
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

Localization

This template is not intended to be localized.


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 {{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}} {{T1}}
T0 {{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} T1
T1 {{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|1}}}}}}|code={{{code|}}}}} {{T1}}
T2 {{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} {{T1}}
Tl <tt>{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}</tt> {{T1}}
Tl {{#tag:tt|{{T1|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}}}} {{T1}}

(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

with code=y


Template links

Code Result Notes lock

{{t|example}}

{{Example}} makes brackets part of the link; see docu Lock-r.svg

{{t0|example}}

Example just link, without the brackets; see docu Lock-g.svg

{{t1|example}}

{{Example}} inner brackets are part of the link; see docu Lock-g.svg
{{tl|example}} {{example}} makes brackets around the link; see docu Lock-r.svg

{{tls|example}}

{{subst:example}} no parameters, adds "subst:" Lock-r.svg

{{tlx|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5|7|8|...}} up to 8 parameters Lock-r.svg

{{tlxs|example|1|2|3|4|5||7|8|9}}

{{subst:example|1|2|3|4|5||7|8|...}} up to 8 parameters, adds "subst:"; see docu Lock-g.svg

{{tlf|example|1|2|3|...up to 8}}

{{example|1|2|3|...up to 8}} up to 8 parameters, no link; see docu Lock-r.svg

{{tlc|example|1|2|3|4|||7|up to 8|9}}

{{example|1|2|3|4|||7|up to 8}} up to 8 parameters, no link, <code> style Lock-g.svg

{{tld|example|1|2||3||}}

{{example|1||2|3||}} up to 8 parameters, <code> style; see docu Lock-g.svg

{{tlr|User:Example}}

{{User:Example}} like {{tl}} but for any namespace Lock-g.svg

{{tle|p1=1|v1|p2=2|v2|p3=3|v3}}

{{ Tle1 = v12 = v23 = v3 }} decribes parameters and their values Lock-g.svg

Alternative forms

Note: These ignore empty parameters.
Code Result Notes lock

{{tlp|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5|7|8}} up to 8 parameters; ignores empty parms Lock-r.svg

{{tl2|example|p1|p2}}

{{example|p1|p2}} up to 2 parameters, <code> style; see docu Lock-g.svg

{{tlsp|example|1|2|3|4|5}}

{{subst:example|1|2|3|etc.}} up to 3 parameters, adds linked "subst:" Lock-g.svg

{{tlsx|example||2|3||6|7|8}}

{{subst:example|2|3|6|...}} up to 5 parameters, adds linked "subst:", teletype style Lock-g.svg