Jump to content

Template:Tla

From Wikidata

{{[[Template:|]]}}

Documentation icon Template documentation[view · edit · history · purge ]

Usage

[edit]

This template works exactly like {{Tl}} with the addition of optionally displaying alternative label text.

When the second parameter is omitted, the original template name is displayed (i.e. {{tla}} reverts to {{tl}}):

  • {{tla|quote}} → {{quote}}

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