Template:Template link general/doc: Difference between revisions
m 1 revision imported: Initial Setup |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}}<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
|||
{{Uses TemplateStyles|Template:Mono/styles.css|Template:Nowrap/styles.css}} |
{{Uses TemplateStyles|Template:Mono/styles.css|Template:Nowrap/styles.css}} |
||
{{Lua|Module:Template link general}} |
{{Lua|Module:Template link general}} |
||
{{Template shortcut|Tlg}} |
|||
{{tsh|tlg}} |
|||
== TemplateData == |
== TemplateData == |
||
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Tlg |
{{#ifeq:{{FULLROOTPAGENAME}}|Template:Tlg|{{TemplateData header|Template link general}}|{{TemplateData header}}}} |
||
|{{TemplateData header|Template link general}} |
|||
|{{TemplateData header}} |
|||
}} |
|||
<!-- TODO: support filtering parameters in [[Module:TNT#doc]] for templates |
<!-- TODO: support filtering parameters in [[Module:TNT#doc]] for templates |
||
-- that set parameters of [[Module:Template link general]] in the invocation. --> |
-- that set parameters of [[Module:Template link general]] in the invocation. --> |
||
{{#invoke:TNT|doc| |
{{#invoke:TNT|doc|Template link general}} |
||
== See also == |
== See also == |
||
{{ |
{{Tl-nav}} |
||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other||<!-- Categories below this line; interwikis at Wikidata --> |
||
<!-- Categories below this line; interwikis at Wikidata --> |
|||
[[Category:Internal template-link templates{{#translation:}}]] |
[[Category:Internal template-link templates{{#translation:}}]] |
||
}}</includeonly> |
}}</includeonly> |
||
Latest revision as of 10:13, 16 September 2026
| This is a documentation subpage for Template:Template link general. It contains usage information, categories and other content that is not part of the original Template page. |
| This template uses TemplateStyles: |
| 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.