Template:Tl/doc

From MozillaWiki
Jump to: navigation, search
Edit-copy green.svg
This is a documentation subpage for Template:Tl.
It contains usage information, categories and other content that is not part of the original template page.

{{tl}}, or the template link template, is used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.

Parameters

There is only 1 parameter, which is unnamed and required.

Synatx

The syntax for {{tl}} is:

  • {{tl|template name }}

Required parameter

1 (unnamed)

Template name

The 1st parameter is the name of the template to which you want to create a link.

Usage

{{tl|template name}}

Example

Case What you type What you see
Link to template admon/tip}} {{admon/tip}}

See also

  • {{tn}}: the same as {{tl}}, but also includes the inner pair of braces in the link, making it easier to click the link when presenting short template names.
  • {{tlc}}: produces a template presentation, with the template's name and it's parameters, and wraps the output in <code>-tags.
  • {{tlf}}: produces a template presentation, with the template's name and it's parameters, and wraps the output in <code>-tags.
  • {{tlp}}: produces a template link, with the template's name and it's parameters, and shows the output in plain text.