Template:T

From Wikimedia Commons, the free media repository
(Redirected from Template:M)
Jump to: navigation, search

{{T}}

Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:T/doc.

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 |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,
  • 0: both brackets are not a part of the link,  like {{Tl}}
  • 1: the inner brackets are part of the link  like {{T1}}
  • 2: both brackets are part of the link,  like {{T}}
2 optional
parm to display templates parameters   (like {{Tlx}})
e.g."parm=&#124;1=&#124;2=&#124;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

with code=y


Template links

Code Result Notes

{{t|example}}

{{example}} makes brackets part of the link; see docu

{{t1|example}}

{{example}} makes inner brackets part of the link; see docu
{{tl|example}} {{example}} makes brackets around the link; see docu

{{t0|example}}

Example just link, without the brackets; see docu

{{tls|example}}

{{subst:example}} no parameters, adds "subst:"

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

{{example|1|2|3|4|5|6|7|8|...}} up to 8 parameters (compare with {{tlp}})

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

{{subst:example|1|2|3|4|||7|8|...}} up to 8 parameters, adds "subst:"

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

{{example|1|2|3|...up to 8}} up to 8 parameters, no link

{{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

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

{{example|1||2|3||}} up to 8 parameters, <code> style

{{tlr|User:Example}}

{{User:Example}} like {{tl}} but for any namespace

Alternative forms

Note: These ignore empty parameters.
Code Result Notes

{{tlp|example|1|2|||||7|8|9}}

{{example|1|2|7|8}} up to 8 parameters (compare with {{tlx}})

{{tl2|example}}

{{example}} up to 2 parameters, teletype style

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

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

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

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