Help:Magic words

This is an organized index of Magic words used in MediaWiki.

Table of contents

 * For details see Help:Section

XML-style tags
nowiki: &lt;nowiki>...&lt;/nowiki>, disables expansion/interpretation of templates, link syntax, formatting syntax, etc.: &lt;nowiki>'&lt;/nowiki> gives '

noinclude: &lt;noinclude>...&lt;/noinclude>, specifies text to appear or function calls to apply only on the transcluded page, not on the transcluding page. E.g. categorizing of a template itself (and not the transcluding page) would use this tag.

includeonly: &lt;includeonly>...&lt;/includeonly>, specifies text to appear or function calls to apply only on the transcluding page, not on the transcluded page (which usually is a template). E.g. a template which categorizes pages where it's applied, but not the template itself, into a certain category.

onlyinclude: &lt;onlyinclude>...&lt;/onlyinclude>, specifies text to appear or function calls to apply only on the transcluding page, not on the transcluded page. This tag is distinguished from the &lt;includeonly> tag in that text or code on the transcluded page not enveloped by the tag will not be transcluded, whether or not the &lt;noinclude> tag is in use.

pre: &lt;pre>...&lt;/pre>, ditto, also for multiple lines; it is rendered with a new paragraph at the start and end: a&lt;pre> ' &lt;/pre> gives a ' math: &lt;math>...&lt;/math>, e.g. $$\sqrt{a^2+b^2}$$ gives $$\sqrt{a^2+b^2}$$; see Help:Displaying a formula hiero: &lt;hiero>...&lt;/hiero>, e.g. gives:

categorytree: &lt;categorytree>...&lt;/categorytree> provides a dynamic view of the category structure specified as a tree. See mw:Extension:CategoryTree for optional attributes.

See also: Extending wiki markup.

Time
The time in UTC. Note that if the page was displayed by the same user and has not changed (has not been edited) since the last time it was displayed, it is possible that the page may be cached (by the user's browser) and the displayed time or date may not change. Also, if a heavily used page, rather than freshly rendered by the software each time it is generated, is instead being retrieved from a caching system (such as the main page on Wikipedia) the date or time may not change from the last time the page was originally retrieved by the caching hardware or software.

Local time
The time depending on the local timezone of the wiki (not depending on the timezone in the user's preference settings). (All words [MW1.8+] )


 * See also the ParserFunction #time:

Statistics
Statistics variables give thousands separators unless ":R" for "raw" is added (actually, these versions are parser functions).

Parser functions

 * For details see Help:Parser function.

Not working at the position of the page where the tag is located but on the page header, and throughout the page, respectively (see below):
 * DISPLAYTITLE: allow the page header to be different from the page name.
 * DEFAULTSORT: Sets a default category sort key for the page.

Formatting
With regard to #language and, see also:
 * List of Wikipedias/local names - shows both names for all languages, without automatic comparison
 * List of Wikipedias/local names/diff - values of #language for which contains a different name.
 * List of Wikipedias/local names/diff 1 - for languages where the two names are different, shows both; due to the the end of the table is messed up

Image modifiers

 * For details see w:en:Wikipedia:Extended image syntax.

These are image modifiers used in  links. Some are mutually exclusive, and then the last specified wins.

Size
The last unrecognized modifier is used as caption for framed images or together with thumbnails. It's also used as description alt=text.

Position

 * For details see Help:Images and other uploaded files

The positions are mutually exclusive; the last specified wins. Template:- can stop floating. For inline images only modifier px (see above) is supported.