Template:Tl: Difference between revisions

From My Wiki
Jump to navigation Jump to search
imported>Tlosk
Created page with "<includeonly><tt>[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]</tt></includeonly><noinclude> {{Related|Wiki Templates|{{mtl|mtl}}}} == Syntax == <pre> {{tl|template name}} </pre> == Usage == Tl stands for template link and 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. See {{tl|mtl}} for a nonlink version of this templat..."
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><tt>[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]</tt></includeonly><noinclude>
<includeonly><tt>[[Template:{{{1}}}|<nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>]]</tt></includeonly><noinclude>
{{Related|Wiki Templates}}
{{Related|Wiki Templates|{{mtl|mtl}}}}
== Syntax ==
== Syntax ==
<pre>
<pre>
Line 7: Line 7:


== Usage ==
== Usage ==
Tl stands for template link and 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.  
Tl stands for template link and 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. See {{tl|mtl}} for a nonlink version of this template that can be used as a parameter that will be turned into a link.


For example:
For example:
Line 19: Line 19:
{{tl|Related}}
{{tl|Related}}


[[Category:Wiki Template]]
</noinclude>
</noinclude>

Latest revision as of 16:06, 17 January 2024

Related topics: Wiki Templates, {{mtl}}

Syntax

{{tl|template name}}

Usage

Tl stands for template link and 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. See {{mtl}} for a nonlink version of this template that can be used as a parameter that will be turned into a link.

For example:

{{tl|Related}}

displays as:

{{Related}}