From NuGOwiki
This is an index of Magic words used in MediaWiki.
#redirect
Indicates a redirect
__END__
Allows for trailing whitespace to be deliberately included in the page save.
__FORCETOC__
Always show the table of contents.
__NOEDITSECTION__
Hide the edit links for sections.
__NOTOC__
Hides the table of contents.
__TOC__
Place the table of contents here.
CURRENTDAY
A variable returning current day of the month:
8
CURRENTDAYNAME
A variable returning current day of the week:
Wednesday
CURRENTDOW
A variable, returning the number of the current day of the week (0=Sunday, 1=Monday).
3
CURRENTMONTH
A variable returning current month number:
02
CURRENTMONTHABBREV
A variable that returns the abbreviation of the current month.
Feb
CURRENTMONTHNAME
A variable returns current month name:
February
CURRENTMONTHNAMEGEN
A variable returns current month name. Not sure how different from CURRENTMONTHNAME:
February
CURRENTTIME
A variable returns current time (UTC):
16:13
CURRENTWEEK
A variable, returning the number of the current week (1-52).
6
CURRENTYEAR
A variable returns current year:
2012
INT:
A special template. Used for UI messages, works the same as "MediaWiki:".
{{INT:mainpage}} gives the content of MediaWiki:mainpage:
Main Page
LOCALURL:
A special template. Gets the local URL of the given page.
{{localurl:Help:Magic words|section=0}}
yields
/index.php?title=Help:Magic_words§ion=0
LOCALURLE:
A special template. Gets the local URL of the given page.
{{localurle:Help:Magic words|section=0}}
yields
/index.php?title=Help:Magic_words§ion=0
MSG:
A template modifier, i.e. {{msg:stub}} shows
{{Stub}}
The use of msg has an effect when a template name clashes with a magic word. For example, if [[Template:CURRENTMONTHNAME]] contained "Test", then {{CURRENTMONTHNAME}} would display "February" but {{msg:CURRENTMONTHNAME}} would display "Test".
MSGNW:
A template modifier. Causes the template source to be pasted.
So <pre>{{msgnw:stub}}</pre> outputs:
{{msgnw:stub}}
NAMESPACE
A variable showing the pages namespace:
Help
NS:
A special template. Gets the name of a given namespace number.
{{NS:4}} gives:
NuGOwiki
NUMBEROFARTICLES
A variable showing the number of articles in this namespace:
8,943
NUMBEROFFILES
Returns the number of uploaded files (rows in the image table).
996
PAGENAME
A variable showing the pagename (ignores the namespace):
Magic words
PAGENAMEE
A variable. Like PAGENAME but with full language expansion to URL safe coding. If used in multiply-nested template, will be expanded in the context of the page you're actually looking at (the highest level page in the template stack); this is likely true for all magic words.
Magic_words
REVISIONID
Gives you the unique article revision id:
2210
SERVER
A variable. {{SERVER}} produces http://www.nugowiki.org
SCRIPTPATH
Returns $wgScriptPath
SERVERNAME
Returns $wgServerName
www.nugowiki.org
SITENAME
A variable.
NuGOwiki
SUBST:
A template modifier. Replaces the reference to the template (e.g. {{subst:template}}) with the content of the template.
e.g. {{subst:stub}} copies the {{stub}} contents below to the article, without using the template.
This article is a stub. You can help Wikimedia by expanding it.
SUBST: can be helpful to avoid the overuse of meta-templates.
Image Modifiers
thumbnail
An image modifier. 'Thumb' has the same effect.
right
An image modifier.
left
An image modifier.
none
An image modifier.
$1px
An image modifier.
center
An image modifier. Can also be spelled centre.
framed
An image modifier. Can also be spelled enframed or frame.