Magic words are words surrounded by brackets or underscores which most often insert or display the current value of what they are called. These include parser functions, variables and behavior switches and are features of wikitext. They are interpreted by the Metawiki software and are often used in templates so that they show different information depending on which page they are on and many other conditions.

Types[edit]

There are three types of magic words:

Things to Remember[edit]

A Notepad
Remember...
  • "(( Nofeed |Art=Wikipedia ))" and ((Nofeed|Art=Wikipedia)) will both succeed in producing the "Nofeed" template.
  • If I insert ((exampletemplate)) and it says ((PAGENAME)), I will see "Magic words for beginners" even though it is from "Template:example template".
  • ((CURRENTTIME)) will always display the current time and remain as is, while ((subst:CURRENTTIME)) will result in, for example, 9:45 being inserted and always remaining as regular text.

Behavior Switches[edit]

A Magic Wand
The implementation of magic words

For a more detailed explanation, refer to the behavior switches MediaWiki page.

Table of Contents

Edit/Section Links

Categories and Indexing

Titles and Sorting

Variables[edit]

The Square Root of x
A variable in math
A mathematical plot.
A plot of variables in algebra.
(Though magic words are much easier!)

For documentation, you may wish to read the variables MediaWiki page.

  • Shown here: Help:Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Magic words for beginners (Ex. User:QwerpQwertus/Adoption)
  • Shown here: Help:Magic words for beginners (Ex. "Talk:Wikipedia" makes "Wikipedia")
  • Shown here: Help talk:Magic words for beginners (Ex. "Wikipedia" makes "Talk:Wikipedia")
  • Shown here: Help (Ex. User:QwerpQwertus/Adoption makes "User")
  • Shown here: Help, Help (Ex. User talk:QwerpQwertus/Adoption makes "User")
  • Shown here: Help talk (Ex. "Wikipedia" makes "Talk:Wikipedia")
  • Shown here: Help:Magic_words_for_beginners (Ex. "Wikipedia" makes "http://en.wikipedia.org/w/index.php?title=Wikipedia")

See also[edit]

For more detailed information on all magic words (behaviour switches, variables and parser functions), consider reading: