Help:Magic words: Difference between revisions

Content deleted Content added
Variables: c/e the section on magic words requiring oclon and adjust warning signs
Variables: adjust wording
Line 158:
{{a note}} The magic words above can also take a parameter, in order to parse values on a page other than the current page. A colon (<kbd>:</kbd>) is used to pass the parameter, rather than a pipe (<kbd>{{!}}</kbd>) that is used in templates, like <kbd><nowiki>{{MAGICWORD:value}}</nowiki></kbd>. For example, <kbd><nowiki>{{TALKPAGENAME:Wikipedia:MOS}}</nowiki></kbd> returns <samp><nowiki>Wikipedia talk:MOS</nowiki></samp> on any page.
 
{{respond|orangeexclamation|Caution:}} Attempting to wikilinkuse (some) page name variables to create a wikilink to an image page, category page or interlanguage link will produce a different effect: this will respectively place the image on the page, add the page to the category, or create an interlanguage link at the edge of the page. To override this normal behavior, insertprefix anthe initialvariable with a colon (<code>:</code>); for example with <kbd><nowiki/>[[:{>{FULLPAGENAME}}]]</kbd>.
 
{{crossref|printworthy=y|For more details on parser functions that relate to page names and namespaces, see: {{section link|meta:Help:Page name#Variables and parser functions}}.}}