Template:Tl

From Angelina Jordan Wiki
Revision as of 09:48, 25 October 2020 by Dcljr (talk | contribs) (allow for parameters)

{{[[Template:please specify the name of a template|]]}}

Documentation

This template is used to display a link to a template in a way that looks like a template call (i.e., inside of double curly-braces: {{}}). The template need not actually exist. This should only be used on talk pages or in template documentation (or help pages, user pages, etc.), not in articles. The template complains about missing input, as seen above (and such calls place the page in Category:Template calls needing input).

This template renders the template call in plain text ( {{like this}} ). To use code styling (Template:Tlc), use Template:Tlc.

The name of the template is based on the phrase "template link".

Usage

  • {{tl|template name}}
  • {{tl|template name|parameter}}
  • {{tl|template name|parameter1{{!}}parameter2…}}

The third form shows how to display more than one parameter. Any number of them can be separated by {{!}}'s.

Examples

  • {{tl|noop}} ⇒ {{noop}}
  • {{tl|missing template}} ⇒ {{missing template}}
  • {{tl|code|span}} ⇒ {{code|span}}
  • {{tl|abbr|NOK{{!}}Norwegian krone}} ⇒ {{abbr|NOK|Norwegian krone}}

See also

  • Template:Tlc — same as this template, but renders the output styled as code