MoonshineFB/Sandbox

`{{NAMESPACENUMBER}}` | displays the ID (number) of the page's namespace. (**0**)

**Common magic words**Here are some of the most commonly used magic words:
 `{{NAMESPACENUMBER}}` | displays the ID (number) of the page's namespace. (**0**)

* `__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.
* `__NOEDITSECTION__` hides the "edit" links beside *all* headings on the page. To hide the edit link beside a *particular* heading, specify the heading using an HTML tag such as `<h2>*heading*</h2>` rather than with the usual wiki equals-signs syntax ( `== *heading* ==` ).
* `__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.
* `__HIDDENCAT__` placed on a category page, it makes the category hidden.
* `__EXPECTUNUSEDCATEGORY__` removes the category from Special:UnusedCategories which is helpful for tracking categories which should not necessarily appear as "unused" even when they are empty.

## **>> Other useful magic words**

### **Behavior Switches**

A behavior switch controls the layout or behavior of the page and can often be used to specify desired omissions and inclusions in the content.

#### **Table of Contents**

1. `__NOTOC__`
	* Hides the table of contents (TOC).
2. `__FORCETOC__`
	* Forces the table of contents to appear at its normal position (before the first header).
3. `__TOC__`
	* Places a table of contents at the word's current position (overriding `__NOTOC__`). If this is used multiple times, the table of contents will appear at the first word's position.

#### **Editing**

1. `__NOEDITSECTION__`
	* Hides the section edit links beside headings. This is especially useful, where a heading is created from within a template: the normal wiki section-edit would in this case edit the template code, which is normally counterintuitive to the user. If a template contains multiple headings, it may be necessary to add "`__NOEDITSECTION__`" after each heading.
2. `__NEWSECTIONLINK__`
	* Adds a link ("+" by default) beside the "edit" tab for adding a new section on a non-talk page (see Adding a section to the end).
3. `__NONEWSECTIONLINK__`
	* Removes the link beside the "edit" tab on pages in talk namespaces.

#### **Categories**

1. `__NOGALLERY__`
	* Used on a category page, replaces thumbnails in the category view with normal links.
2. `__HIDDENCAT__`
	* Used on a category page, hides the category from the lists of categories in its members and parent categories (there is an option in the user preferences to show them).
3. `__EXPECTUNUSEDCATEGORY__`
	* Used on a category page, removes the category from Special:UnusedCategories.

#### **Language conversion**

1. `__NOCONTENTCONVERT__ , __NOCC__`
	* On wikis with language variants, don't perform any content language conversion (character and phase) in article display; for example, only show Chinese (zh) instead of variants like zh\_cn, zh\_tw, zh\_sg, or zh\_hk.
2. `__NOTITLECONVERT__ , __NOTC__`
	* On wikis with language variants, don't perform language conversion on the title (all other content is converted).

#### **Other**

* `__START__`
	+ No effect.
* `__END__`
	+ Explicitly marks the end of the article, to prevent MediaWiki from removing trailing whitespace. Removed in 19213.
* `__INDEX__`
	+ Tell search engines to index the page (overrides $wgArticleRobotPolicies, but not robots.txt). It obeys $wgExemptFromUserRobotsControl variable.
* `__NOINDEX__`
	+ Tell search engines not to index the page (i.e. do not list in search engines' results). It obeys $wgExemptFromUserRobotsControl variable
* `__STATICREDIRECT__`
	+ On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "Update any redirects that point to the original title".
* `__NOWYSIWYG__`
	+ Unknown

#### **Variables**

1. Date and time
	* The following variables return the current date and time in UTC.
	* Due to MediaWiki and browser caching, these variables frequently show when the page was *cached* rather than the current time.
	* The date and time magic words are formatted in the wiki content language. Since 1.19, they depend on the page content language.

The following variables do the same as the preceding ones, but using the site's server config or $wgLocaltimezone.

* `{{LOCALHOUR}}`11
* `{{LOCALWEEK}}`4
* `{{LOCALTIMESTAMP}}`20240125112023

*For more thorough time formatting, you may want to install mw:Extension:ParserFunctions to use the #time parser function*.