Template:Tlg: Difference between revisions
m Reverted edits by Ykssky Oppo (talk) to last version by ExE Boss |
m 1 revision imported: Initial setup |
||
(No difference)
|
Latest revision as of 18:40, 23 December 2024
{{Template:Tlg}}
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 |
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.