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..." |
make tl not override default link color style |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude> | {{[[Template:{{{1}}}|{{#if:{{{2|}}}|<span style="color:{{{2}}}">{{{1}}}</span>|{{{1}}}}}]]}}<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}} | |||
* {{tl|Blue 4|#F7DE7B}} | |||
==Sources== | ==Sources== | ||
Latest revision as of 00:28, 23 March 2025
{{[[Template:{{{1}}}|{{{1}}}]]}}
Documentation[edit | hide | hide all]
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.