Template:Tl

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

{{Tl}}

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

This documentation is transcluded from Template:Tl/doc.

For the Tagalog language template, see {{tgl}}

Tl stands for Template link. It creates a link to a template and surrounds it with {{...}}.

Usage

{{Tl |1= |2= |3= }}

Template parameters

Parameter Description Default Status
1 template name Tl 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}}
0 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

  • {{Tl}} → {{Tl}}
  • {{Tl|coltit}} → {{coltit}}
  • {{Tl|coltit|incl=0}} → {{coltit}}
  • {{Tl|coltit|incl=1}} → {{coltit}}
  • {{Tl|coltit|incl=2}} → {{coltit}}
  • {{Tl|Coltit|coltit}} → {{coltit}}
  • {{Tl|Coltit|test|en}} → {{test}}
  • {{Tl|Coltit|3=de}} → {{Coltit}}

with code=y

  • {{Tl|U|user|code=y|parm=&#124;1=&#124;2=&#124;parameter=}} → {{user|1=|2=|parameter=}}
  • {{Tl|coltit|code=y}} → {{coltit}}
  • {{Tl|Coltit|coltit|code=y|incl=1}} → {{coltit}}
  • {{Tl|Coltit|color titling|en|code=y}} → {{color titling}}
  • <tt>{{Tl|Coltit|3=de|code=y}}</tt> → {{Coltit}}

See also

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