Template:Tl: Difference between revisions

From YSTV Documentation Wiki
(Created page with "{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude> The '''template link''' template is a simple macro template used to display a template name as a li...")
 
m (fix example)
 
Line 3: Line 3:
The '''template link''' template is a simple [[w:Macro (computer science)|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:
The '''template link''' template is a simple [[w:Macro (computer science)|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:


::<code><nowiki>{{Tl|-}}</nowiki></code>
::<code><nowiki>{{tl|-}}</nowiki></code>
:generates
:generates
::{{Tl|-}}
::{{tl|-}}


</noinclude>
</noinclude>

Latest revision as of 14:17, 5 October 2013

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

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