Template:Tl

From Wikipedia, the free encyclopedia
Jump to: navigation, search

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

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


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|Example}}
generates
{{Example}}

This template displays 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.

Template parameters
Parameter Description Type Default Status
template name 1 the template name without the namespace prefix “Template:”, which is added automatically string empty required

More complex variations are described below.

Example

Code Result
{{Tl|Void}} {{Void}}
{{Tl2|X1}} {{X1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}
{{Tl|1==)}} {{=)}}

See also

Template-linking templates

Templates by syntax

1 = {{tlg}} is the most general, allowing any combination of text style and/or link style options.
2 = Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.

Templates with example

code example effect note tc's
{{lts|Hatnote}} Template:Hatnote (edit talk links history) 14k
{{t links|Hatnote}} Hatnote (edit · talk · history · links · /subpages · /doc · /doc edit · /sbox · /sbox diff · /test · Module:hatnote) For intensive template editing
{{tfd links|Hatnote}}
Template:Hatnote (edit|talk|history|links|logs|delete)
Used in WP:TfD
{{tiw|Hatnote}} Template:hatnote (backlinks, edit) 300
{{tl|Hatnote}} {{hatnote}} 2.5M
{{tl2|Hatnote}} {{hatnote}} 2600
{{tla|Hatnote|some label}} {{some label}} To add a wikilabel 1000
{{tlb|Hatnote}} {{hatnote}} TfD 82
{{tlc|Hatnote}} {{hatnote}} 200k
{{tld|Hatnote}} {{hatnote}} 14k
{{tlf|Hatnote}} {{hatnote}} 8000
{{tlg|Hatnote}} {{hatnote}} 14k
{{tlp|Hatnote}} {{hatnote}} 194k
{{tls|Hatnote}} {{subst:hatnote}} 21k
{{tlsp|Hatnote}} {{subst:hatnote}} 4500
{{tlu|User:Ahunt/SSHFS}} {{User:Ahunt/SSHFS}} Any namespace 4600
{{tlx|Hatnote}} {{hatnote}} 850k
{{tlxb|Hatnote}} {{hatnote}} TfD 22
{{tlxi|Hatnote}} {{hatnote}} Italicises params. TfD 8
{{tlxs|Hatnote}} {{subst:hatnote}}
{{tn|Hatnote}} {{hatnote}} TfD 12k
{{tnull|Hatnote}} {{hatnote}} 4000
{{xpd|Hatnote}} "{{hatnote}}" gives " " [1] 64