(Removing section that is better covered by the relevant feature pages) |
m (→Notes: Adding note about asymetric behavior of some magic words) Tag: Help |
||
Line 32: | Line 32: | ||
== Notes == |
== Notes == |
||
{{Reflist}} |
{{Reflist}} |
||
+ | *<code><nowiki>{{SUBJECTPAGENAME}}</nowiki></code> and <code><nowiki>{{TALKPAGENAME}}</nowiki></code> (similarly <code><nowiki>{{SUBJECTPAGENAMEE}}</nowiki></code> and <code><nowiki>{{TALKPAGENAMEE}}</nowiki></code>) may not always act inversely. For example: |
||
+ | *:<code><nowiki>{{TALKPAGENAME:User:Example}}</nowiki></code> → {{TALKPAGENAME:User:Example}} |
||
+ | *:<code><nowiki>{{SUBJECTPAGENAME:Message Wall:Example}}</nowiki></code> → {{SUBJECTPAGENAME:Message Wall:Example}} |
||
+ | *:<code><nowiki>{{SUBJECTPAGENAME:User Talk:Example}}</nowiki></code> → {{SUBJECTPAGENAME:User Talk:Example}} |
||
== See also == |
== See also == |
Revision as of 19:39, 6 August 2019
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.
Instructions
It's generally best to add and edit magic words using source editing mode.
To add a magic word, simply add the magic word to the content of the page somewhere. It will look like code in the editor, but after you save or preview, it will display as intended.
Visual editing
When editing in the classic rich text editor, magic words that affect the page layout will show up as a green puzzle piece, while magic words that output text will display the text, but that text will not be editable.
In the VisualEditor, magic words that affect the page layout will not show up, while magic words that output text will display the text, but that text will not be editable.
Common magic words
Here are some of the most commonly used magic words:
__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.__NEWSECTIONLINK__
replaces the "Edit" button with "Add topic", for adding new sections on a non-talk page.__NONEWSECTIONLINK__
replaces the "Add topic" button with "Edit", on talk namespaces.__NOWYSIWYG__
disables the classic editor on a page.__HIDDENCAT__
makes a category hidden.{{CURRENTDAYNAME}}
outputs the current day of the week.{{NUMBEROFARTICLES}}
outputs the number of articles on your community.{{SITENAME}}
outputs the name of the community.{{PAGENAME}}
outputs the name of the page the word is placed on.{{FULLPAGENAME}}
outputs the full name of the page, i.e. with the namespace prefix, of the page it is placed on.
Full list of magic words
For a full list of available[1] magic words, see the magic words help page on MediaWiki.
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.
{{SUBJECTPAGENAME}}
and{{TALKPAGENAME}}
(similarly{{SUBJECTPAGENAMEE}}
and{{TALKPAGENAMEE}}
) may not always act inversely. For example:{{TALKPAGENAME:User:Example}}
→ User talk:Example{{SUBJECTPAGENAME:Message Wall:Example}}
→ Message Wall:Example{{SUBJECTPAGENAME:User Talk:Example}}
→ User:Example
See also
- Editing
- Parser Functions on MediaWiki.org
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