Template:Template link expanded: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><code {{#ifeq: {{lc: | <includeonly><code {{#ifeq: {{lc:{{{2|}}}}}|plaincode|style{{=}}"border: none; background: transparent; color: {{{color|{{{colour|inherit}}}}}}; padding: 0px 0px 0px 0px;"|}}><nowiki>{{</nowiki>{{#ifeq: {{lc:{{{2|}}}}}|nolink||{{!((}}{{#switch: {{{1|}}} | ||
| ! = mw:Help:Magic words#Escaped characters | |||
| {{=}} = mw:Help:Magic words#Escaped characters | |||
| #default = Template:{{trim|{{{1|}}}}}}}{{!}} | |||
}}{{trim|{{{1|}}}}}{{#ifeq: {{lc:{{{2|}}}}}|nolink||{{))!}}}}<nowiki>}}</nowiki></code></includeonly><noinclude> | |||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 10:53, 18 March 2025
This template provides a link to a template with a given name, but in code instead of as plain text. As a second unnamed parameter, plaincode can be passed in to remove the styling around the resulting text, while nolink will prevent linking to the template in question when it is not necessary.
Note: You can use {{tlx}} as a shortcut.
| The above documentation is transcluded from Template:Template link expanded/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |