FANDOM


m
m (pff)
Line 1: Line 1:
<includeonly><onlyinclude>{{[[Template:{{{1}}}|{{{1}}}]]}}</onlyinclude></includeonly><noinclude>{{documentation}}[[Category:General Wiki Templates]][[Category:Internal Link Templates]]</noinclude>
+
{{[[Template:{{{1}}}|{{{1}}}]]}}&nbsp;<noinclude>{{documentation}}[[Category:General Wiki Templates]][[Category:Internal Link Templates]]</noinclude>

Revision as of 17:55, September 6, 2015

{{[[Template:{{{1}}}|{{{1}}}]]}} 
Template documentation (for the above template, sometimes hidden or invisible)

The template link template is a simple macro template 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. A short example is that the code:

{{Tl|Stub}}
generates
{{Stub}}

More complex variations are described below.

Related templates

{{Tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call.

Usage

{{Tl|Template name to display}}
 or
{{Tl|1==)}} -- use 1= where the template name contains an equals sign (as [[template:=)]] does).

Example

Code Result
{{Tl|X0}} {{X0}}
{{Tl|1==)}} {{=)}}

See also

  • {{Tlp}} – Template link, with up to eight parameters.
  • {{Tlx}} – Template link, up to three parameters and interwiki links, plus uses a non-proportional monospaced font.
  • {{Lts}} – See Lts discussion for more variants.
  • {{Tn}} – Same as tl, but shows the braces as part of the link.
  • {{Evd}} – Show live example
  • {{Tlc}}, {{Tld}} and {{Tlf}} – Template names without links.



Visit Template:TI/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.