Pilt:Magic Word Example.png

A "magic word" is a symbol recognized by MediaWiki software (which Wikia is built on), which triggers the software to do something special on the page.


  • To add a magic word, you need to first be in source editing mode on an article.
  • 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.

Common Magic WordsEdit

Here are some of the magic words used most commonly at Wikia:

  • __NOTOC__ hides the table of contents on a page.
  • __TOC__ places the table of contents exactly where this is entered. It overrides the NOTOC switch.
  • __NOWYSIWYG__, disables the rich text editor on a page.
  • {{CURRENTDAYNAME}} produces the current day of the week.
  • {{NUMBEROFARTICLES}} shows the number of articles on your wiki.
  • {{SITENAME}} produces the name of the wiki. [1]

Full list of Magic WordsEdit

For a full list of available magic words, see the Magic words help page on Media Wiki. [2]

Wikia-Specific Magic WordsEdit

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

Wiki NavigationEdit

These magic words will fill in data for your wiki navigation bar. To utilize them, these must be placed on the MediaWiki:Wiki-navigation page:

  • #category0# - gets pages from the biggest category on a wiki
  • #categoryFoo# - gets pages from Category:Foo on a wiki.
  • #GetMostPopularArticles# - gets pages from MediaWiki:Most popular articles.
  • #newlychanged# - gets recently changed articles.
  • #GetTopFiveUsers# - gets list of five most active users on the wiki.

Category GalleriesEdit

These magic words will apply to the Category Gallery feature when left on a Category page:

  • __NOCATEGORYGALLERY__ - Hides a category gallery from being rendered on a category page.
  • __FORCECATEGORYGALLERY__ - If the category gallery is enabled on a wiki, but it is not applied to all categories by default, this will add a category gallery to the category page.

See alsoEdit


  1. {{SITENAME}} - like all others variables that give you meta information - is relative to the page you use it on. Since this is the Shared Help {{SITENAME}} will always say "Help Wiki" - no matter on which wiki you're viewing this page. You get the same effect if you use {{SITENAME}} in a template and transclude it from another wiki.
  2. Some magic words may function differently, or not work, at This occurs because the version of the mediawiki software used by Wikia is not always the same version as those of either or

de:Hilfe:Zauberwörter es:Ayuda:Palabras mágicas fr:Aide:Mots magiques it:Aiuto:Parole magiche nl:Help:Magische woorden