Template:Template link expanded
{{Template:Template link expanded}}
| This template uses TemplateStyles: |
| Uses Lua: |
TemplateData
[edit]Template link expanded
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
[edit]General-purpose formatting
[edit]| {{Tlg}} options[1] to achieve text style |
{{Tlg}} options to achieve link style[1] | |||||
|---|---|---|---|---|---|---|
| Linked DEFAULT
|
Unlinked nolink=yes
|
Linked with subst: subst=yes
|
Unlinked with subst: nolink=yes+subst=yes
|
Linked inc. inner braces braceinside=yes
|
Linked with custom text alttext=Foo
| |
| Normal DEFAULT
|
{{Tl}} {{Tlg}}[1] {{Tlp|1|2|…}}[2] {{Tlu}}[3] |
{{Tlf}} | {{subst:Tls}} {{subst:Tlsp}} {{subst:Tlsu}}[3] |
N/A | {{Tn}} | {{Tla}} (e.g., {{Foo}}) |
| Code code=yes
|
{{Tl2}}[4]{{Tlx}}{{T… l… expanded}}
|
{{Tlc}}{{Tnull}}[link]
|
{{subst:Tlxs}}
|
{{subst:Tlsc}}
|
N/A | |
| Monospace (<kbd>) kbd=yes[5] or plaincode=yes[6]
|
N/A | |||||
| ||||||
Other formatting templates
[edit]| Code example | Effect | Notes |
|---|---|---|
{{Hatnote|Some text}}
|
Some text
|
Used to create notes that appear at the tops of pages or sit just under section headers |
{{Module link|Age|age_generic}}
|
{{#invoke:Age|age_generic}} | Counterpart to {{Tl}} for linking to Lua modules |
{{Para|title|book_title}}
|
|title=book_title
|
Formats template parameters for display, with or without values |
{{Tag|ref}}
|
<ref>…</ref> | Formats HTML tags; can add content, choose opening, closing, paired or self-closing |
{{Parameter|foo}}
|
foo | Formats code so that it can be easily distinguished from running text |
{{Magic word|uc:}}
|
{{uc:}} | Magic word links |
{{Lts|Q}}
|
Template:Q (edit talk links history)
|
Links to template plus others to edit, Talk page, WhatLinksHere and history |
{{Tml3|Q|bracket=square}}
|
[[Q]] |
Offers choice of wrapping characters for template link: curly braces, square brackets or none |
{{Lte|Q}}
|
{{Q}}
|
|
{{T|Q}}
|
Q |
| The above documentation is transcluded from Template:Tlg/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Subpages of this template. |