Template:Tl: Difference between revisions

From KDE UserBase Wiki
(copied over from TechBase, standard Wikipedia approach)
 
m (use wikipedia intrawiki prefix (inconsistently, it isn't available on TechBase))
 
Line 3: Line 3:
(This is a template lifted from [http://en.wikipedia.org/wiki/Template:Tl Wikipedia].)
(This is a template lifted from [http://en.wikipedia.org/wiki/Template:Tl Wikipedia].)


The '''template link''' template is a simple [[w:Macro (computer science)|macro]] [[metawikipedia:Help:template|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 [[wikipedia:Macro (computer science)|macro]] [[metawikipedia:Help:template|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|Example}}</nowiki></code>
::<code><nowiki>{{Tl|Example}}</nowiki></code>
:generates
:generates

Latest revision as of 02:15, 2 December 2011

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

(This is a template lifted from Wikipedia.)

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