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. When editing in the visual editor, magic words on the page will show up as a green puzzle piece.



Instructions
To add a magic word, simply add the magic word to the content of the page somewhere. It will look like code, but after you save or preview, it will work as intended. Magic words can be added in either editor—source or visual. However, source mode must be used to edit a magic word.

Common magic words
Here are some of the magic words used most commonly at Fandom:
 * hides the table of contents on a page.
 * places the table of contents exactly where this is entered. It overrides the NOTOC switch.
 * adds a link beside the "edit" tab for adding a new section on a non-talk page.
 * removes the link beside the "edit" tab on pages in talk namespaces.
 * disables the classic editor on a page.
 * makes a category hidden.
 * produces the current day of the week.
 * shows the number of articles on your community.
 * produces the name of the community.
 * produces the name of the page the word is placed on.
 * produces the entire name, 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.

Fandom-specific magic words
Some extensions or features unique to Fandom also have magic words associated with them. Here is a comprehensive list:

Wiki navigation
These magic words will fill in data for your community's navigation bar. To utilize them, these must be placed on the MediaWiki:Wiki-navigation page:
 * #categoryX# — where X is a number greater than 0. This gets the top 8 pages from the X biggest category on a wiki.
 * #category-Foo# — gets the top 8 pages from Category:Foo.
 * #visited# — populates a list of the top visited pages.
 * #newlychanged# — gets recently edited pages.
 * #topusers# — gets a list of the most active users.

Category galleries
These magic words will apply to the Category Gallery feature when left on a Category page:
 * - Hides a category gallery from being rendered on a category page.
 * - If the category gallery is enabled on a community, but it is not applied to all categories by default, this will add a category gallery to the category page.

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:Справка:Волшебные слова uk:Довідка:Чарівні слова vi:Trợ giúp:Từ ma thuật zh:Help:魔術字