Template:Tl: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude> __NOTOC__ ==Documentation== The '''template link''' template is a simple macro template used...") |
(add the ability to color the links) |
||
Line 1: | Line 1: | ||
{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude> | {{[[Template:{{{1}}}|<span style="color:{{{2|blue}}}">{{{1}}}</span>]]}}<noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
==Documentation== | ==Documentation== | ||
The '''template link''' template is a simple [[wikipedia: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. | The '''template link''' template is a simple [[wikipedia: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. | ||
== Examples == | |||
* {{tl|Blue 1}} | |||
* {{tl|Blue 2|red}} | |||
* {{tl|Blue 3|green}} | |||
==Sources== | ==Sources== |
Latest revision as of 21:19, 28 March 2024
{{[[Template:{{{1}}}|{{{1}}}]]}}
Documentation[edit]
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.