Template:T/doc: Difference between revisions
More actions
Add __FORCETOC__ |
mNo edit summary |
||
| Line 57: | Line 57: | ||
* 2: both brackets are part of the link<!-- ,  like {{T|T}} --> | * 2: both brackets are part of the link<!-- ,  like {{T|T}} --> | ||
* 3: like <code>i=2</code>, with monospace font | * 3: like <code>i=2</code>, with monospace font | ||
* 4: like <code>i=0</code> but with the name in teletype style | * 4: like <code>i=0</code> but with the name in teletype style <!-- keyboard style --> | ||
* 5: like <code>i=1</code> but with the name in teletype style | * 5: like <code>i=1</code> but with the name in teletype style | ||
* 6: like <code>i=2</code> but with the name in teletype style | * 6: like <code>i=2</code> but with the name in teletype style | ||
* 8: without surrounding brackets | * 8: without surrounding brackets | ||
* 9: like <code>i=8</code> but with the name in teletype style | * 9: like <code>i=8</code> but with the name in teletype style ''large'' (font-size:128%) | ||
|5def = {{#switch:{{BASEPAGENAME}}|T2=0|T1=1|T=2||Tl=3|T0=8|#default=?}} | |5def = {{#switch:{{BASEPAGENAME}}|T2=0|T1=1|T=2||Tl=3|T0=8|#default=?}} | ||
|5stat = optional- | |5stat = optional- | ||
Revision as of 10:42, 6 March 2022
T links to a Template. T creates a formatted link to a template and surrounds it with {{...}} making the brackets a part of the link.
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 numeric value,
| 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}}