Community Central
Community Central
(→‎Full list of Magic Words: Minor copy editing to reference.)
m (Bot: removing obsolete interlanguage links, see Thread:516694#10)
Tag: Help
(23 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
[[File:Magic_Word_Example.png|thumb|Example of magic word input and rendering.|250px|right]]
 
[[File:Magic_Word_Example.png|thumb|Example of magic word input and rendering.|250px|right]]
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.
+
A "'''magic word'''" is a keyword or phrase recognized by MediaWiki software (which Wikia is built on), 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.
   
 
==Step-by-Step==
 
==Step-by-Step==
 
*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. Alternatively, in the visual editor, you can simply remove the magic word you wish to change and add the new one.
* To add a magic word, you need to first be in 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==
 
==Common Magic Words==
 
 
Here are some of the magic words used most commonly at Wikia:
 
Here are some of the magic words used most commonly at Wikia:
   
* <code><nowiki>__NOTOC__</nowiki></code> hides the table of contents on a page.
+
* <code><nowiki>__NOTOC__</nowiki></code> hides the [[Help:Table of contents|table of contents]] on a page.
 
* <code><nowiki>__TOC__</nowiki></code> places the table of contents exactly where this is entered. It overrides the NOTOC switch.
 
* <code><nowiki>__TOC__</nowiki></code> places the table of contents exactly where this is entered. It overrides the NOTOC switch.
 
* <code><nowiki>__NOWYSIWYG__</nowiki></code>, disables the [[Help:Rich text editor|rich text editor]] on a page.
 
* <code><nowiki>__NOWYSIWYG__</nowiki></code>, disables the [[Help:Rich text editor|rich text editor]] on a page.
 
* <code><nowiki>{{CURRENTDAYNAME}}</nowiki></code> produces the current day of the week.
 
* <code><nowiki>{{CURRENTDAYNAME}}</nowiki></code> produces the current day of the week.
* <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code> shows the number of articles on your wiki.
+
* <code><nowiki>{{NUMBEROFARTICLES}}</nowiki></code> shows the number of articles on your wikia.
  +
* <code><nowiki>{{SITENAME}}</nowiki></code> produces the name of the wikia.
* <code><nowiki>{{SITENAME}}</nowiki></code> produces the name of the wiki. <ref><nowiki>{{SITENAME}}</nowiki> - like all others variables that give you [[MediaWikiWiki:Help:Magic_words#Technical_metadata|meta information]] - is relative to the page you use it on. Since this is the Shared Help <nowiki>{{SITENAME}}</nowiki> will always say "Help Wiki" - no matter on which wiki you're viewing this page. You get the same effect if you use <nowiki>{{SITENAME}}</nowiki> in a template and transclude it from another wiki.</ref>
 
  +
* <code><nowiki>{{PAGENAME}}</nowiki></code> produces the name of the page the word is placed on.
  +
* <code><nowiki>{{FULLPAGENAME}}</nowiki></code> produces the entire page name, i.e. along with the namespace, of the page it is placed on.
   
 
==Full list of Magic Words==
 
==Full list of Magic Words==
 
For a full list of available magic words, see the [[mw:Help:Magic words|Magic words help page]] on MediaWiki. <ref>Some magic words may function differently, or not work, at [[Special:Version|Wikia]]. This occurs because the version of the MediaWiki software used by Wikia is not always the same version as those of either [[mw:Special:Version|MediaWiki.org]] or [[wikipedia:Special:Version|Wikipedia.org]].</ref>
 
For a full list of available magic words, see the [[mw:Help:Magic words|Magic words help page]] on Media Wiki. <ref>Some magic words may function differently, or not work, at [[Special:Version|Wikia.com]]. This occurs because the version of the mediawiki software used by Wikia is not always the same version as those of either [[mw:Special:Version|MediaWiki.org]] or [[wikipedia:Special:Version|Wikipedia.org]].</ref>
 
   
 
==Wikia-Specific Magic Words==
 
==Wikia-Specific Magic Words==
 
 
Some extensions or features unique to Wikia also have magic words associated with them. Here is a comprehensive list:
 
Some extensions or features unique to Wikia also have magic words associated with them. Here is a comprehensive list:
   
 
===Wiki Navigation===
 
===Wiki Navigation===
 
These magic words will fill in data for your wikia 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.
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:
 
  +
* #category-Foo# - Gets the top 8 pages from Category:Foo.
 
 
* #visited# - Populates a list of the top visited pages from [[MediaWiki:Most popular articles]].
*<code>#category0#</code> - gets pages from the biggest category on a wiki
 
 
* #newlychanged# - Gets recently edited pages.
*<code>#categoryFoo#</code> - gets pages from Category:Foo on a wiki.
 
 
* #topusers# - Gets a list of the most active users.
*<code>#GetMostPopularArticles#</code> - gets pages from [[MediaWiki:Most popular articles]].
 
*<code>#newlychanged#</code> - gets recently changed articles.
 
*<code>#GetTopFiveUsers#</code> - gets list of five most active users on the wiki.
 
   
 
===Category Galleries===
 
===Category Galleries===
 
 
These magic words will apply to the Category Gallery feature when left on a Category page:
 
These magic words will apply to the Category Gallery feature when left on a Category page:
   
* <code><nowiki>__NOCATEGORYGALLERY__</nowiki></code> - Hides a category gallery from being rendered on a category gallery page.
+
* <code><nowiki>__NOCATEGORYGALLERY__</nowiki></code> - Hides a category gallery from being rendered on a category page.
* <code><nowiki>__FORCECATEGORYGALLERY__</nowiki></code> - 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.
+
* <code><nowiki>__FORCECATEGORYGALLERY__</nowiki></code> - If the category gallery is enabled on a wikia, but it is not applied to all categories by default, this will add a category gallery to the category page.
   
==See also==
+
==Notes==
 
<references/>
   
  +
==See also==
 
*[[Help:Editing|Editing]]
 
*[[Help:Editing|Editing]]
 
*[[MediaWikiWiki:Help:Extension:ParserFunctions|Parser Functions]]
 
*[[MediaWikiWiki:Help:Extension:ParserFunctions|Parser Functions]]
   
  +
==Further help and feedback==
==Notes==
 
  +
{{Help and feedback section}}
   
  +
[[es:Ayuda:Palabras mágicas]]
<references/>
 
  +
[[fr:Aide:Mots magiques]]
  +
[[it:Aiuto:Parole magiche]]
  +
[[nl:Help:Magische woorden]]
   
 
[[de:Hilfe:Zauberwörter]]
 
[[de:Hilfe:Zauberwörter]]
Line 57: Line 58:
 
[[fr:Aide:Mots magiques]]
 
[[fr:Aide:Mots magiques]]
 
[[it:Aiuto:Parole magiche]]
 
[[it:Aiuto:Parole magiche]]
  +
[[ja:ヘルプ:マジックワード]]
 
[[nl:Help:Magische woorden]]
 
[[nl:Help:Magische woorden]]
  +
[[pl:Pomoc:Magic words]]
  +
[[zh:Help:魔術字]]
  +
 
[[Category:Editing]]
 
[[Category:Help|{{PAGENAME}}]]
 
[[Category:Help|{{PAGENAME}}]]
[[Category:Expand|{{PAGENAME}}]]
 

Revision as of 10:25, 1 July 2014

File:Magic Word Example.png

Example of magic word input and rendering.

A "magic word" is a keyword or phrase recognized by MediaWiki software (which Wikia is built on), 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.

Step-by-Step

  • 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. Alternatively, in the visual editor, you can simply remove the magic word you wish to change and add the new one.

Common Magic Words

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 wikia.
  • {{SITENAME}} produces the name of the wikia.
  • {{PAGENAME}} produces the name of the page the word is placed on.
  • {{FULLPAGENAME}} produces the entire page name, i.e. along with the namespace, 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. [1]

Wikia-Specific Magic Words

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

Wiki Navigation

These magic words will fill in data for your wikia 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 from MediaWiki:Most popular articles.
  • #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:

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

Notes

  1. Some magic words may function differently, or not work, at Wikia. 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.

See also

Further help and feedback