Template:T/doc: Difference between revisions
More actions
No edit summary |
m Reverted edits by ~2026-33008-48 (talk) to last revision by 158.106.52.10 |
||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{#switch:{{BASEPAGENAME}} | ||
|NLD={{Redirects|NED}} | |NLD={{Redirects|NED}} | ||
|T={{Redirects|tnlb}} | |T={{Redirects|tnlb}} | ||
}} | }} | ||
{{#ifeq:{{PAGENAME}}|Tl|{{Created with/layout|text=For the '''Tagalog language''' template, see {{T|tgl}}|logo=Arrows-move.svg}}}}<!-- | {{#ifeq:{{PAGENAME}}|Tl|{{Created with/layout|text=For the '''Tagalog language''' template, see {{T|tgl}}|logo=Arrows-move.svg}}}}<!-- | ||
-->{{#switch:{{PAGENAME}}|T|Tl|T/main = {{ | -->{{#switch:{{PAGENAME}}|T|Tl|T/main = {{used in system}}}}<!-- | ||
-->{{#ifeq: {{PAGENAME}} | T/main | -->{{#ifeq: {{PAGENAME}} | T/main | ||
| Line 22: | Line 22: | ||
-->{{TemplateBox | -->{{TemplateBox | ||
|name = {{BASEPAGENAME}} | |name = {{BASEPAGENAME}} | ||
|desc = '''{{ | |desc = {{Nobold|The '''{{T2|{{BASEPAGENAME}}|T}}''' template creates a formatted link to a '''T'''emplate.}}<br> The {{BASEPAGENAME}} template creates a formatted link to a template{{#switch:{{BASEPAGENAME}} | ||
|T =  and surrounds it with <code>{{</code>...<code>}}</code> | |T =  and surrounds it with braces (<code>{{</code>...<code>}}</code>) included in the link label | ||
|T0 =  without surrounding | |T0 =  without surrounding braces | ||
|T1 =  and surrounds it with | |T1 =  and surrounds it with 2 brace pairs {{Nobold|(making the inner braces a part of the link but not the outer braces)}} | ||
|T2 =  and surrounds it with | |T2 =  and surrounds it with 2 brace pairs {{Nobold|which are not a part of the link label}} | ||
|Tl =   | |Tl =  with a monospace font and surrounds it with 2 brace pairs {{Nobold|which are excluded from the link label}} | ||
}}. | |||
|1 = 1 | |1 = 1 | ||
| Line 130: | Line 130: | ||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
[[Category:Typing-aid templates]] | |||
{{#ifeq:{{PAGENAME}}|T|[[Category:One-letter templates| ]]}} | {{#ifeq:{{PAGENAME}}|T|[[Category:One-letter templates| ]]}} | ||
</includeonly> | </includeonly> | ||
Latest revision as of 05:50, 3 June 2026
The {{T}} template creates a formatted link to a Template.
The T template creates a formatted link to a template and surrounds it with braces ({{...}}) included in the link label.
Usage
{{T |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | template name (any namespace is ignored) | T | optional | |
2 | display name (displayed as-it-is) | parameter 1 | optional | |
3lang | interwiki language code (ISO 639), if the template is in another Wikipedia can also be specified with lang= | empty | optional | |
4 | +/- to precede the template name with the namespace Template:
(when both signs are specified, "+" has precedence). | empty | optional | |
incli | i or incl is a one-digit formatting option:
| 2 | optional | |
code | any value, for a surrounding <code> tag (like {{Tl2}}).With code=tt also the surrounding brackets are in teletype style. | empty | optional | |
link | returns plain text instead of a link when set to link=no | empty | optional | |
case | for formatting of the namespace prefix:
| empty | optional | |
i18n | another language than {{int:lang}} for namespace translation (when case=i or case=n) | en | optional | |
parm | to display templates parameters (like {{Tlx}}) Usage e.g.
| empty | optional | |
full | expanded display: Template:{{Example}} (like {{Lts}}) request this expansion with either full=5 or 5=full. | 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.
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).
{{Commons:Link templates/T-doc-expansion}}
{{Commons:Link templates/Template links}}