Template:Template link expanded: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly><code {{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|plaincode|style{{=}}"border: none; background: transparent; padding: 0px 0px 0px 0px;"|}}><nowiki>{{</nowiki>{{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|nolink||{{!((}}}}Template:{{trim|{{{1}}}}}|{{trim|{{{1}}}}}{{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|nolink||{{))!}}}}<nowiki>}}</nowiki></code></includeonly><noinclude>
<includeonly><code {{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|plaincode|style{{=}}"border: none; background: transparent; padding: 0px 0px 0px 0px;"|}}><nowiki>{{</nowiki>{{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|nolink||{{!((}}Template:{{trim|{{{1}}}}}{{!}}}}{{trim|{{{1}}}}}{{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|nolink||{{))!}}}}<nowiki>}}</nowiki></code></includeonly><noinclude>
{{documentation}}
{{documentation}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 18:17, 1 January 2025

Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

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.

You can input a "magic word" as the first unnamed parameter to link to MediaWiki's help page for magic words. Passing in ! or = will link to the section about escaped characters, since {{!}} and {{=}} are "magic words" as well.

Note: You can use {{tlx}} as a shortcut.

See also