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
Tag: Manual revert
Line 1: Line 1:
<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: {{uc:{{{1|}}}}}
<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: {{uc:{{{1|}}}}}
| ! = mw:Help:Magic words#Escaped characters
| ! = mw:Help:Magic words#Escaped characters
| {{=}} = mw:Help:Magic words#Escaped characters
| PAGENAME = mw:Help:Magic words#Page_names
| PAGENAME = mw:Help:Magic words#Page_names
| PAGENAMEE = mw:Help:Magic words#URL_encoded_page_names
| PAGENAMEE = mw:Help:Magic words#URL_encoded_page_names

Revision as of 17:03, 6 April 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