Open main menu

{{Tl}}

Documentationviewedithistorypurge
This documentation is transcluded from Template:T/doc.

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

T links to a Template. Tl creates a formatted link to a template in teletype style and surrounds it with two brackets which are not a part of the link.

Usage

{{Tl |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1template name (any namespace is ignored)Tloptional
2display name (displayed as-it-is)parameter 1optional
3
lang
interwiki language code (ISO 639), if the template is in another Wikipedia
can also be specified with lang=
emptyoptional
4+/- to precede the template name with the namespace Template:
  • + (plus sign) to make Template: a part of the link,
  • - (minus sign) to precede Template: as plain text.
The +/- parameter can as well be specified with parameter 2 or 3;
(when both signs are specified, "+" has precedence).
emptyoptional
incl
i
i or incl is a 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
  • 3: like i=2, with monospace font
  • 4: like i=0 but with the name in teletype style
  • 5: like i=1 but with the name in teletype style
  • 6: like i=2 but with the name in teletype style
  • 8: without surrounding brackets
  • 9: like i=8 but with the name in teletype style
3optional
codeany value, for a surrounding <code> tag  (like {{Tl2}}).
With code=tt also the surrounding brackets are in teletype style.
emptyoptional
linkreturns plain text instead of a link when set to link=noemptyoptional
casefor formatting of the namespace prefix:
  • case=l lowercase display "template" instead of "Template"
  • case=i internationalized display, in general a link
  • case=n internationalized display, without linking it
emptyoptional
i18nanother language than {{int:lang}} for namespace translation (when case=i or case=n)enoptional
parmto display templates parameters  (like {{Tlx}})

Usage e.g. parm=template name or parm=1=template name
or  parm=&#124;1=&#124;2=&#124;code=y" gives "|1=|2=|code=y".

Font Awesome 5 solid long-arrow-alt-right.svg For a better appearing and easier to format explanatory, use the meta template {{Tle}}.
emptyoptional
fullexpanded display: Template:{{Example}} (View • Edit • Discussion • Links • History)  (like {{Lts}})
request this expansion with either full=5 or 5=full.
emptyoptional

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.

The template does not generate any localizable text;
with + or - always the namespace in English: "Template" is displayed;
only in combination with case=i or case=n the namespace can be translated using the {{LangSwitch}} construct (according to i18n).

[edit subpage]

Note: The templates T, T0, T1, T2, Tl use the same main template 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 3 {{Tl}}
This means that each of them can be converted into each one of the others by just replacing that parameter:
T {{Tl|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|2}}}}}}|code={{{code|}}}}} {{Tl}} WWWWWWWWWWWW
T0 {{Tl|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|8}}}}}}|code={{{code|}}}}} Tl
T1 {{Tl|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|1}}}}}}|code={{{code|}}}}} {{Tl}}
T2 {{Tl|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|0}}}}}}|code={{{code|}}}}} {{Tl}}
Tl {{Tl|1={{{1|}}}|2={{{2|}}}|3={{{3|{{{lang|}}}}}}|i={{{i|{{{incl|3}}}}}}|code={{{code|}}}}}}} {{Tl}}


Examples

with code=y

The following examples are Lua supportet:

The parameter case (with the other parameters supporting it) intends to be rarely used, but when in a textual environment a special appearance is desired, with the namespace prefix in different formats, the following concealed tables shows the possibilities. All combinations are possible but not every one is useful.

Table: different displays for {{Tl}} with the namespace option 0
{{ Tlexample }} 0this is the standard {{Example}}
{{ Tlexample- }} Template:{{Example}}
{{ Tlexample-case = l }} template:{{Example}}
{{ Tlexample-case = i }} template:{{Example}}
{{ Tlexample-case = n }} template:{{Example}}
{{ TlExample+ }} Template:{{Example}}
{{ Tlexample+case = l }} template:{{Example}}
{{ Tlexample+case = i }} template:{{Example}}
{{ Tlexample+case = n }} template:{{Example}}
{{ TlExamplelink = n }} {{Example}}
{{ TlExample-link = n }} Template:{{Example}}
{{ Tlexample-link = ncase = l }} template:{{Example}}
{{ Tlexample-link = ncase = i }} template:{{Example}}
{{ Tlexample-link = ncase = n }} template:{{Example}}
{{ Tlexample+link = n }} Template:{{Example}}
{{ Tlexample+link = ncase = l }} template:{{Example}}
{{ Tlexample+link = ncase = i }} template:{{Example}}
{{ Tlexample+link = ncase = n }} template:{{Example}}
Large table with displays for {{Tl}} with the namespace option 0
link ns case i= i=0 i=1 i=2 i=3 i=4 i=5 i=6 i=8 i=9
0 0 0 Tl {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} Tl Tl
0 + 0 Template:Tl Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:Tl Template:Tl
0 + l template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
0 + i template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
0 + n template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
0 - 0 Template:Tl Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:Tl Template:Tl
0 - l template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
0 - i template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
0 - n template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no 0 0 Tl {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} {{Tl}} Tl Tl
no + 0 Template:Tl Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:Tl Template:Tl
no + l template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no + i template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no + n template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no - 0 Template:Tl Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:{{Tl}} Template:Tl Template:Tl
no - l template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no - i template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl
no - n template:Tl template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:{{Tl}} template:Tl template:Tl

[edit template links]

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

{{T2|example}}

{{Example}} brackets are not a 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
Templates showing parameters 0 Meta template {{Tle}} is easiest to parametrize.

{{Tle|T=v|p1=1|v1|p2=2|v2|p3=3|v3}}

{{ V1 = v12 = v23 = v3 }} decribes template parameters by names and values Lock-g.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
Alternative forms 0 These ignore empty parameters.

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