Help:Magic words

A magic word is a keyword or phrase recognized by MediaWiki software (on which Fandom is built), which triggers the software to do something special on the page.



Instructions
It's generally best to add and edit magic words using source editing mode.

To add a magic word, simply add the magic word to the content of the page somewhere. It will look like code in the editor, but after you save or preview, it will display as intended.

Visual editing
When editing in the classic rich text editor, magic words that affect the page layout will show up as a green puzzle piece, while magic words that output text will display the text, but that text will not be editable.

In the VisualEditor, magic words that affect the page layout will not show up, while magic words that output text will display the text, but that text will not be editable.

Common magic words
Here are some of the most commonly used magic words:


 * hides the table of contents on a page.
 * places the table of contents exactly where this is entered. It overrides the NOTOC switch.
 * replaces the "Edit" button with "Add topic", for adding new sections on a non-talk page.
 * replaces the "Add topic" button with "Edit", on talk namespaces.
 * disables the classic editor on a page.
 * makes a category hidden.
 * outputs the current day of the week.
 * outputs the number of articles on your community.
 * outputs the name of the community.
 * outputs the name of the page the word is placed on.
 * outputs the full name of the page, i.e. with the namespace prefix, of the page it is placed on.

Full list of magic words
For a full list of available magic words, see the magic words help page on MediaWiki.

Further help and feedback
de:Hilfe:Zauberwörter es:Ayuda:Palabras mágicas fr:Aide:Mots magiques it:Aiuto:Parole magiche ja:ヘルプ:マジックワード ko:도움말:특수 변수 nl:Help:Magische woorden pl:Pomoc:Magiczne słowa ru:Справка:Волшебные слова tr:Yardım:Sihirli kelimeler uk:Довідка:Чарівні слова vi:Trợ giúp:Từ ma thuật zh:Help:魔術字