Template:H:Current time variables
From Meta, a Wikimedia project coordination wiki
|
This page has been moved to Help:Variable on MediaWiki.org.
Any modifications or additions to this page should be made on MediaWiki.org instead. |
| Word | Example | Explanation |
|---|---|---|
| {{CURRENTDAY}} | 25 |
Displays the current day in numeric form. |
| {{CURRENTDAY2}} | 25 |
[MW1.6+] Same as {{CURRENTDAY}}, but with leading zero (01 .. 31). |
| {{CURRENTDAYNAME}} | Saturday |
Name of the day in the language of the project or English. |
| {{CURRENTDOW}} | 6 |
Same as {{CURRENTDAYNAME}}, but as a number (0=Sunday, 1=Monday...). |
| {{CURRENTMONTH}} | 05 |
The number 01 .. 12 of the month. |
| {{CURRENTMONTHABBREV}} | May |
[MW1.5+] Same as {{CURRENTMONTH}}, but in abbreviated form as Jan .. Dec. |
| {{CURRENTMONTHNAME}} | May |
Same as {{CURRENTMONTH}}, but in named form January .. December. |
| {{CURRENTTIME}} | 19:34 |
The current time (00:00 .. 23:59). |
| {{CURRENTHOUR}} | 19 |
The current hour (00 .. 23). |
| {{CURRENTWEEK}} | 21 |
Number of the current week (1-53) according to ISO 8601 with no leading zero. |
| {{CURRENTYEAR}} | 2013 |
Returns the current year. |
| {{CURRENTTIMESTAMP}} | 20130525193444 |
[MW1.7+] ISO 8601 time stamp. |