Template:Tlg/doc
This is a documentation subpage for Template:Tlg. It contains usage information, categories and other content that is not part of the original Template page. |
Uses Lua: |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Template link general
Template link general
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link Brackets? | brace | Whether to include both brackets as part of the linked template name.
| Boolean | optional |
Link Inner Brackets? | braceinside | Whether to include the inner brackets as part of the linked template name.
| Boolean | optional |
Bold? | bold | Whether to add β<span style="font-weight:bolder">β around the linked template name.
| Boolean | optional |
Code? | code | Whether to add β<code>β.
| Boolean | optional |
Italic? | italic | Whether to add β<span style="font-style:italic">β around parameters.
| Boolean | optional |
Kbd? | kbd | Whether to add β<kbd>β.
| Boolean | optional |
Mono? | mono | Whether to add β<span style="font-family:monospace">β.
| Boolean | optional |
No Link? | nolink | Whether to not create a link to the template.
| Boolean | optional |
No Wrap? | nowrap | Whether to add β<span style="white-space:nowrap">β.
| Boolean | optional |
No Wrap Name? | nowrapname | Whether to add β<span style="white-space:nowrap">β around the linked template name.
| Boolean | optional |
Plain Code? | plaincode | Whether to add β<code style="background:transparent;border:none">β.
| Boolean | optional |
Subst? | subst | Whether to use βsubst:β.
| Boolean | optional |
Link Subst? | link subst | Whether the βsubst:β prefix should link to the help page on substitution.
| Boolean | optional |
Display Text | alttext | Displayed link text.
| Line | optional |
Template | 1 | Linked template name | Template | required |
Parameter 1 | 2 | First parameter value | Content | optional |
Parameter 2 | 3 | Second parameter value | Content | optional |
Parameter 3 | 4 | Third parameter value | Content | optional |
Parameter 4 | 5 | Fourth parameter value | Content | optional |
Parameter 5 | 6 | Fifth parameter value | Content | optional |
Parameter 6 | 7 | Sixth parameter value | Content | optional |
Parameter 7 | 8 | Seventh parameter value | Content | optional |
Parameter 8 | 9 | Eighth parameter value | Content | optional |
Parameter 9 | 10 | Ninth parameter value | Content | optional |
Parameter 10 | 11 | Tenth parameter value | Content | optional |
Edit parameter translations
See also
Text style β | {{tlg}} options[note 1] to achieve text style |
Link style | ||
---|---|---|---|---|
Linked | Unlinked | Linked with subst | ||
{{tlg}} options[note 1] to achieve link style |
N/A | DEFAULT | nolink=1
|
subst=1
|
normal | DEFAULT |
|
| |
code
|
code=1
|
|
|
|
monospace | mono=1 |
N/A | ||
plaincode
|
plaincode=1 | |||
kbd | kbd=1 |
- β 1.0 1.1 1.2
{{tlg}}
is the most general template, allowing any combination of text style and/or link style options. - β 2.0 2.1 2.2 Prevents wrapping of text by placing it inside
<span style="white-space:nowrap">...</span>
tags. - β Allows links to templates in any namespace.
- β 4.0 4.1 4.2 Displays monospaced font using
<span style="font-family:monospace">...</span>
. - β
{{tlg|plaincode=1}}
uses<code style="background:transparent;border:none">...</code>
. - β
{{tlg|kbd=1}}
uses<kbd>
tags.