Template:Tl: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Correction of broken code.)
(Update to latest source from Wikipedia)
 
Line 1: Line 1:
{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude>
&#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:22, 25 April 2015

{{[[Template:{{{1}}}|{{{1}}}]]}}

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

{{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 {{tl|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.