Template:Tl

From Angelina Jordan Wiki

Documentation

This template is used to form 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. If no input is given to the template, it uses its own name, "tl" (see examples below).

This template styles the template call as code, {{like this}}. To display the template call as plain text, {{like this}}, use Template:Tlnc.

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

This template is used on a great many pages. Making any changes to it will cause lots of jobs to be added to the processing queue.

Usage

  • {{tl|template name}}
  • {{tl|template name|parameter}}
  • {{tl|template name|parameter1|parameter2||add=|sp=}}

Up to 19 parameters can be shown. If you need more for some reason, you can use add.

Examples

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

Empty parameters

  • {{tl|}}{{[[Template:|]]}}
  • {{tl|tl|}} => {{tl}}

The first one here is an error. The first positional parameter, if present, must be the name of the template being linked to. Here it is present but empty, which causes the resulting wikilink to not be recognized as such.

The second one, while not an error, is probably not what you meant either. Maybe you meant this?

  • {{tl|tl|{{noop}}}} => {{tl|}}

(The {{noop}} template is a "placeholder" that generates no visible output. Here it is passed as the second positional parameter)

See also

  • {{tlnc}} – same as this template, but renders the template link as plain text (not code)
  • {{tc}} – similar to this template, but doesn't link the template name