Jump to content

Template:Template link expanded

From Wikidata

{{Template:Template link expanded}}

Documentation icon Template documentation

TemplateData

[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Template link expanded

Template link general

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Link Brackets?brace

Whether to include both brackets as part of the linked template name.

Default
0
Auto value
1
Booleanoptional
Link Inner Brackets?braceinside

Whether to include the inner brackets as part of the linked template name.

Default
0
Auto value
1
Booleanoptional
Bold?bold

Whether to add “<span style="font-weight:bolder">” around the linked template name.

Default
0
Auto value
1
Booleanoptional
Code?code

Whether to add “<code>”.

Default
0
Auto value
1
Booleanoptional
Italic?italic

Whether to add “<span style="font-style:italic">” around parameters.

Default
0
Auto value
1
Booleanoptional
Kbd?kbd

Whether to add “<kbd>”.

Default
0
Auto value
1
Booleanoptional
Mono?mono

Whether to add “<span style="font-family:monospace">”.

Default
0
Auto value
1
Booleanoptional
No Link?nolink

Whether to not create a link to the template.

Default
0
Auto value
1
Booleanoptional
No Wrap?nowrap

Whether to add “<span style="white-space:nowrap">”.

Default
0
Auto value
1
Booleanoptional
No Wrap Name?nowrapname

Whether to add “<span style="white-space:nowrap">” around the linked template name.

Default
0
Auto value
1
Booleanoptional
Plain Code?plaincode

Whether to add “<code style="background:transparent;border:none">”.

Default
0
Auto value
1
Booleanoptional
Subst?subst

Whether to use “subst:”.

Default
0
Auto value
1
Booleanoptional
Link Subst?link subst

Whether the “subst:” prefix should link to the help page on substitution.

Default
0
Auto value
1
Booleanoptional
Display Textalttext

Displayed link text.

Default
{{{1}}}
Lineoptional
Template1

Linked template name

Templaterequired
Parameter 12

First parameter value

Contentoptional
Parameter 23

Second parameter value

Contentoptional
Parameter 34

Third parameter value

Contentoptional
Parameter 45

Fourth parameter value

Contentoptional
Parameter 56

Fifth parameter value

Contentoptional
Parameter 67

Sixth parameter value

Contentoptional
Parameter 78

Seventh parameter value

Contentoptional
Parameter 89

Eighth parameter value

Contentoptional
Parameter 910

Ninth parameter value

Contentoptional
Parameter 1011

Tenth parameter value

Contentoptional
Edit parameter translations

See also

[edit]

General-purpose formatting

[edit]
Comparison of template-linking templates according to the styles of generated text and link produced
{{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
  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. 2.0 2.1 2.2 2.3 Prevents wrapping of text by placing it inside tags.
  3. 3.0 3.1 Allows links to templates in any namespace.
  4. Supports interwiki links to templates on Wikimedia sister projects.
  5. Displays monospaced font using <span style="font-family: monospace;">…</span>.
  6. {{Tlg|plaincode=yes}} uses <code style="background-color: transparent; border: none;">…</code>]].

Other formatting templates

[edit]
Templates producing specialised formatting effects for given templates, modules or parameters
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