User:Flutter/Help:Magic word Variables
Time[edit | edit source]
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.
Word | Example | Explanation |
---|---|---|
{{CURRENTDAY}} | 26
|
Displays the current day in numeric form. |
{{CURRENTDAY2}} | 26
|
[MW1.6+] Same as {{CURRENTDAY}}, but with leading zero (01 .. 31). |
{{CURRENTDAYNAME}} | Thursday
|
Name of the day in the language of the project or English. |
{{CURRENTDOW}} | 4
|
Same as {{CURRENTDAYNAME}}, but as a number (0=Sunday, 1=Monday...). |
{{CURRENTMONTH}} | 10
|
The number 01 .. 12 of the month. |
{{CURRENTMONTHABBREV}} | Oct
|
[MW1.5+] Same as {{CURRENTMONTH}}, but in abbreviated form (Jan .. Dec). |
{{CURRENTMONTHNAME}} | October
|
Same as {{CURRENTMONTH}}, but in named form (January .. December). |
{{CURRENTTIME}} | 05:48
|
The current time (00:00 .. 23:59). |
{{CURRENTHOUR}} | 05
|
The current hour (00 .. 23). |
{{CURRENTWEEK}} | 43
|
Number of the current week (1-53) according to ISO 8601 with no leading zero. |
{{CURRENTYEAR}} | 2023
|
Returns the current year. |
{{CURRENTTIMESTAMP}} | 20231026054803
|
[MW1.7+] ISO 8601 time stamp. |
Local time[edit | edit source]
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+] )
Word | Example | Explanation |
---|---|---|
{{LOCALDAY}} | 26
|
Displays the local day of the month in numeric form. |
{{LOCALDAY2}} | 26
|
Same as {{LOCALDAY}}, but with a leading zero (01 .. 31). |
{{LOCALDAYNAME}} | Thursday
|
Name of the day in the language of the project or English. |
{{LOCALDOW}} | 4
|
Same as {{LOCALDAYNAME}}, but as a number (0=Sunday, 1=Monday...). |
{{LOCALMONTH}} | 10
|
The number 01 .. 12 of the month. |
{{LOCALMONTHABBREV}} | Oct
|
Same as {{LOCALMONTH}}, but in abbreviated form as Jan .. Dec. |
{{LOCALMONTHNAME}} | October
|
Same as {{LOCALMONTH}}, but in named form as January .. December. |
{{LOCALTIME}} | 05:48
|
The local time (00:00 .. 23:59). |
{{LOCALHOUR}} | 05
|
The local hour (00 .. 23). |
{{LOCALWEEK}} | 43
|
Number of the local week (1-53) according to ISO 8601 with no leading zero. |
{{LOCALYEAR}} | 2023
|
Returns the local year. |
{{LOCALTIMESTAMP}} | 20231026054803
|
ISO 8601 time stamp. |
Statistics[edit | edit source]
Statistics variables give thousands separators unless ":R" for "raw" is added (actually, these versions are parser functions).
Word | Example | Explanation |
---|---|---|
{{CURRENTVERSION}} | 1.39.5 (06d96fb)
|
[MW1.7+] [1] |
{{NUMBEROFEDITS}} {{NUMBEROFEDITS:R}} |
6,183,344 6183344
|
[MW1.10+ (r21319)] Returns the total number of page edits since MediaWiki, the software that runs this site, was installed. |
{{NUMBEROFARTICLES}} {{NUMBEROFARTICLES:R}} |
37,449 37449
|
A variable which returns the total number of articles on the Wiki. |
{{NUMBEROFPAGES}} {{NUMBEROFPAGES:R}} |
377,159 377159
|
[MW1.7+] Returns the total number of pages. [2] |
{{NUMBEROFFILES}} {{NUMBEROFFILES:R}} |
101,336 101336
|
[MW1.5+] Returns the number of uploaded files (rows in the image table). |
{{NUMBEROFUSERS}} {{NUMBEROFUSERS:R}} |
19,330 19330
|
[MW1.7+] Returns the number of registered users (rows in the user table). |
{{NUMBEROFADMINS}} {{NUMBEROFADMINS:R}} |
39 39
|
[MW1.7+] Returns the number of administrators (users in the sysop group). |
{{PAGESINNAMESPACE}} | disabled here | Longer alias of PAGESINNS |
{{PAGESINNS:ns}} {{PAGESINNS:ns:R}} |
{{PAGESINNS:2}} {{PAGESINNS:2:R}} disabled here |
[MW1.7+] Returns the number of pages in the given namespace. Disabled by default, enable with AllowSlowParserFunctions. |
[edit | edit source]
Word | Example | Explanation |
---|---|---|
{{PAGENAME}} | Flutter/Help:Magic word Variables
|
Returns the name of the current page, including all levels (Title/Subtitle). This does not include the name of the namespace. |
{{PAGENAMEE}} | Flutter/Help:Magic_word_Variables
|
More URL-friendly percent encoded special characters (To use an articlename in an external link). |
{{SUBPAGENAME}} {{SUBPAGENAMEE}} |
Help:Magic word Variables
|
[MW1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Other/Subtitle") in namespaces supporting subpages, see Help:Link. |
{{BASEPAGENAME}} {{BASEPAGENAMEE}} |
Flutter
|
[MW1.7+] The basename of a subpage ("Title/Other" on "Title/Other/Subtitle"), see Help:Link. |
{{NAMESPACE}} {{NAMESPACEE}} |
User
|
Returns the name of the namespace the current page resides in. |
{{FULLPAGENAME}} {{FULLPAGENAMEE}} |
User:Flutter/Help:Magic word Variables
|
[MW1.6+] Shorthands for NAMESPACE+PAGENAME |
{{TALKSPACE}} {{TALKSPACEE}} |
User talk
|
[MW1.7+] Name of next odd namespace (e.g. 4 => 5) |
{{SUBJECTSPACE}} {{SUBJECTSPACEE}} |
User
|
[MW1.7+] Name of last even namespace (e.g. 5 => 4) |
{{ARTICLESPACE}} {{ARTICLESPACEE}} |
User
|
[MW1.7+] An alias for SUBJECTSPACE(E) |
{{TALKPAGENAME}} {{TALKPAGENAMEE}} |
User talk:Flutter/Help:Magic word Variables
|
[MW1.7+] FULLPAGENAME in its TALKSPACE |
{{SUBJECTPAGENAME}} {{SUBJECTPAGENAMEE}} |
User:Flutter/Help:Magic word Variables
|
[MW1.7+] FULLPAGENAME in its SUBJECTSPACE |
{{ARTICLEPAGENAME}} {{ARTICLEPAGENAMEE}} |
User:Flutter/Help:Magic word Variables
|
[MW1.7+] An alias for SUBJECTPAGENAME(E) |
{{REVISIONID}} | -
|
[MW1.5+] The unique identifying number of a page, see Help:Diff. Note that when editing a page, this value is null. |
{{REVISIONDAY}} | 22
|
[MW1.8+] The day on which the page was last modified. |
{{REVISIONDAY2}} | 22
|
[MW1.8+] The day on which the page was last modified, but with a leading zero (01 .. 31). |
{{REVISIONMONTH}} | 01
|
[MW1.8+] The month in which the page was last modified. |
{{REVISIONYEAR}} | 2008
|
[MW1.8+] The year in which the page was last modified. |
{{REVISIONTIMESTAMP}} | 20080122000842
|
[MW1.8+] ISO 8601 time stamp, indicating when the page was last modified. |
{{SITENAME}} | Uncyclopedia
|
Value of Template:H:mwg. |
{{SERVER}} | https://en.uncyclopedia.co | Value of Template:H:mwg |
{{SCRIPTPATH}} | /w
|
[MW1.5+] Template:H:mwg |
{{SERVERNAME}} | en.uncyclopedia.co
|
[MW1.5+] Template:H:mwg |