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
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq: {{trim|{{lc:{{{2|}}}}}}}|plaincode|<code style{{=}}"border: none; background: transparent;">|<code>}}<nowiki>{{</nowiki>[[Template:{{trim|{{{1}}}}}|{{trim|{{{1}}}}}]]<nowiki>}}</nowiki></code></includeonly><noinclude>
<includeonly><code {{#ifeq: {{lc:{{{2|}}}}}|plaincode|style{{=}}"border: none; background: transparent; color: {{{color|{{{colour|inherit}}}}}}; padding: 0px 0px 0px 0px;"|}}>{{template link general|{{{1|}}}|{{{2|}}}}}</code></includeonly><noinclude>
{{documentation}}
{{documentation}}


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

Latest revision as of 15:43, 27 May 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