From WikiTemp, the GBAtemp wiki
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Magic words are strings of text that MediaWiki associates with a return value or function, such as time, site details, or page names. This page is about usage of standard magic words; for a complete list, see {{mw|Help:Magic words}}.
+
Magic words are strings of text that MediaWiki associates with a return value or function, such as time, site details, or page names. This page is about usage of standard magic words; for a complete list, see {{mw|Help:Magic_words}}.
  
 
==Behavior Switches==
 
==Behavior Switches==
Line 196: Line 196:
 
|}
 
|}
  
[[Category:Help|Variables]]
+
[[Category:Help|Magic words]]

Latest revision as of 11:53, 19 September 2010

Magic words are strings of text that MediaWiki associates with a return value or function, such as time, site details, or page names. This page is about usage of standard magic words; for a complete list, see Help:Magic_words .

Behavior Switches

Input Description
__NOTOC__ Hides the table of contents (TOC).
__FORCETOC__ Forces TOC to appear.
__TOC__ Forces TOC to appear on the place you typed this.
__NOEDITSECTION__ Hides the [Edit] links on headers.
__NEWSECTIONLINK__ Adds a "+" on the top to add a new section.
__NOGALLERY__ Place this on a category to turn all Images in Links.

Date & Page Variables

Input Result Description
{{CURRENTMONTH}} 11 The current month.
{{CURRENTMONTHNAME}} November Name of the current month.
{{CURRENTMONTHABBREV}} Nov Abbreviated month name.
{{CURRENTDAY}} 23 Day of the month.
{{CURRENTDOW}} 6 Day of the week.
{{CURRENTDAYNAME}} Saturday Name of the current day.
{{CURRENTWEEK}} 47 The current week.
{{CURRENTYEAR}} 2024 The current year.
{{CURRENTTIME}} 00:38 The current time in HH:mm format.
{{NUMBEROFARTICLES}} 994 The number of articles in this Wiki.
{{NUMBEROFFILES}} 1,072 The number of uploaded files.

Namespaces

Input Result
{{ns:-2}} or {{ns:Media}} Media
{{ns:-1}} or {{ns:Special}} Special
{{ns:1}} or {{ns:Talk}} Talk
{{ns:2}} or {{ns:User}} User
{{ns:3}} or {{ns:User_talk}} User talk
{{ns:4}} or {{ns:Project}} WikiTemp
{{ns:5}} or {{ns:Project_talk}} WikiTemp talk
{{ns:6}} or {{ns:Image}} File
{{ns:7}} or {{ns:Image_talk}} File talk
{{ns:8}} or {{ns:MediaWiki}} MediaWiki
{{ns:9}} or {{ns:MediaWiki_talk}} MediaWiki talk
{{ns:10}} or {{ns:Template}} Template
{{ns:11}} or {{ns:Template_talk}} Template talk
{{ns:12}} or {{ns:Help}} Help
{{ns:13}} or {{ns:Help_talk}} Help talk
{{ns:14}} or {{ns:Category}} Category
{{ns:15}} or {{ns:Category_talk}} Category talk

Server specific

Input Result Description
{{SITENAME}} WikiTemp Name of the site.
{{SERVERNAME}} wiki.gbatemp.net Name of the server.
{{SERVER}} //wiki.gbatemp.net Link to the server.
{{localurl:pagename}} /wiki/Pagename
{{localurl:pagename|query string}} /wiki/Pagename?query string

Page related

Input Result Description
{{PAGENAME}} Magic words Pagename without Namespace.
{{PAGENAMEE}} Magic_words URL encoded pagename.
{{NAMESPACE}} Help Current Namespace.
{{SUBJECTSPACE}} Help Associated Subjectspace.
{{TALKSPACE}} Help talk Associated Talkspace.
{{FULLPAGENAME}} Help:Magic words Pagename with Namespace.
{{REVISIONID}} 36162 The unique revision ID.