Help:Magic words: Difference between revisions

Content deleted Content added
rm note that does not make sense to me two years later. I scoured the docs for ___location-dependent switches and couldn't find anything
Tag: Reverted
the switches are not "___location-dependent", but MOS:ORDER describes preferences for where to put them for convenience of the editors, like DISPLAYTITLE goes near the top and DEFAULTSORT goes together with the categories — Undid revision 1287352321 by Jonesey95 (talk)
Line 28:
* The names of magic words are purposely chosen to be unlike the names of templates, and vice versa. Many parser function names will begin with a <code>#</code>([[Hash (character)|pound or hash]]), but template names [[wp:NCHASHTAG | will not start with a <code>#</code>]], and probably not end in a <code>:</code>(colon), or be all-uppercase.
* The first parameter's syntax differs. In <code>{{#magic: <nowiki/>p1 | p2 | p3}}</code>, the name is <code>#magic</code>and it is followed by an unspaced <code>:</code>and a required input parameter, <code>p1</code>. With a template, <code>p1</code>is optional and it is preceded by a <code>|</code>(pipe) instead of a <code>:</code>, e.g. <code>{{template<nowiki/>|p1}}</code>.
 
Most magic words can be used in any needed locations on a page; see [[MOS:ORDER]] for guidance on where to place magic words that are behavior switches.
 
== Behavior switches ==