Help:Magic words
Talk0
63,507pages on
this wiki
this wiki
This text is stored on Wikia Help. Suggest changes here.

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.
Contents |
Step-by-Step
Edit
- 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 Words
Edit
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 Words
Edit
For a full list of available magic words, see the Magic words help page on Media Wiki. [2]
Wikia-Specific Magic Words
Edit
Some extensions or features unique to Wikia also have magic words associated with them. Here is a comprehensive list:
Wiki Navigation
Edit
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 Galleries
Edit
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 also
Edit
Notes
Edit
- ↑ {{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.
- ↑ Some magic words may function differently, or not work, at Wikia.com. This occurs because the version of the mediawiki software used by Wikia is not always the same version as those of either MediaWiki.org or Wikipedia.org.
Retrieved from "http://community.wikia.com/wiki/Help:Magic_words"