(consistent cases on headers) Tag: Visual edit |
|||
Line 6: | Line 6: | ||
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. |
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 |
+ | Magic words can be '''added''' in either editor—[[Help:Source edit mode|source]] or [[Help:VisualEditor|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. |
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 |
+ | ==Common magic words== |
Here are some of the magic words used most commonly at FANDOM: |
Here are some of the magic words used most commonly at FANDOM: |
||
Line 22: | Line 22: | ||
*<code><nowiki>{{FULLPAGENAME}}</nowiki></code> produces the entire name, i.e. with the [[help:namespace|namespace]] prefix, of the page it is placed on. |
*<code><nowiki>{{FULLPAGENAME}}</nowiki></code> produces the entire name, i.e. with the [[help:namespace|namespace]] prefix, of the page it is placed on. |
||
− | ==Full list of |
+ | ==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|FANDOM]]. This occurs because the version of the MediaWiki software used by FANDOM 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 MediaWiki. <ref>Some magic words may function differently, or not work, at [[Special:Version|FANDOM]]. This occurs because the version of the MediaWiki software used by FANDOM is not always the same version as those of either [[mw:Special:Version|MediaWiki.org]] or [[wikipedia:Special:Version|Wikipedia.org]].</ref> |
||
− | ==FANDOM- |
+ | ==FANDOM-specific magic words== |
Some extensions or features unique to FANDOM also have magic words associated with them. Here is a comprehensive list: |
Some extensions or features unique to FANDOM also have magic words associated with them. Here is a comprehensive list: |
||
− | ===Wiki |
+ | ===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: |
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: |
||
Line 37: | Line 37: | ||
:<nowiki>#topusers#</nowiki> — gets a list of the most active users. |
:<nowiki>#topusers#</nowiki> — gets a list of the most active users. |
||
− | ===Category |
+ | ===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: |
||
Revision as of 05:42, 22 September 2017
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. 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 FANDOM:
__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 community.{{SITENAME}}
produces the name of the community.{{PAGENAME}}
produces the name of the page the word is placed on.{{FULLPAGENAME}}
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. [1]
FANDOM-specific magic words
Some extensions or features unique to FANDOM also have magic words associated with them. Here is a comprehensive list:
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 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 community, but it is not applied to all categories by default, this will add a category gallery to the category page.
Notes
- ↑ Some magic words may function differently, or not work, at FANDOM. This occurs because the version of the MediaWiki software used by FANDOM is not always the same version as those of either MediaWiki.org or Wikipedia.org.
See also
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article