Difference between revisions of "Template:Date and time templates"
Jump to navigation
Jump to search
test>Hildeoc m |
imported>Akmaie Ajam m (→Date and time Templates made for substitution:: Fixed capitalization) |
||
| (15 intermediate revisions by 13 users not shown) | |||
| Line 1: | Line 1: | ||
{{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br /> | {{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br /> | ||
| − | + | ||
| + | {{info|1=<big>{{#switch:{{FULLPAGENAME}} | ||
| + | |Template:Date and time templates=These templates do '''not''' put a working clock on your page. | ||
| + | |#default=This template does '''not''' put a working clock on your page.}}</big> The clock will '''not''' update the time on your screen every minute. Instead, it records the date and time that the page was most recently edited or [[WP:PURGE|purge]]d.<br /> | ||
| + | <small>If you want a clock that constantly updates, then go to [[Special:Preferences#mw-prefsection-gadgets]] and enable the Appearance item, "Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page".</small>}} | ||
| + | |||
=== Multiple units of time === | === Multiple units of time === | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 10: | Line 15: | ||
!Next | !Next | ||
|- | |- | ||
| − | |Date and | + | |Date and time |
|{{tl|time}} | |{{tl|time}} | ||
| − | |{{tl|Currentdate}} (MDY)<br>{{tl|Plain now}} (DMY)<br>{{tl|Now}} ( | + | |{{tl|Currentdate}} (MDY)<br>{{tl|Plain now}} (DMY)<br>{{tl|Now}} (DMY in a complete sentence)<br>{{tl|Simple now}} |
| | | | ||
| | | | ||
|- | |- | ||
| − | |Date | + | |Date only |
|{{tl|Dateonly}}<br>{{tl|Datedow}}<br>(Has the day of the week) | |{{tl|Dateonly}}<br>{{tl|Datedow}}<br>(Has the day of the week) | ||
|{{tl|Date}} (Chose format)<br>{{tl|DATE}} (prefixed by date=)<br>{{tl|TODAY}} (DMY) | |{{tl|Date}} (Chose format)<br>{{tl|DATE}} (prefixed by date=)<br>{{tl|TODAY}} (DMY) | ||
| Line 30: | Line 35: | ||
|Banners | |Banners | ||
| | | | ||
| − | |{{tl|Right now}}<br>(Blue with time and number of Wikipedia articles) | + | |{{tl|Right now}}<br>(Blue with time and number of Wikipedia articles) |
| | | | ||
| | | | ||
| Line 42: | Line 47: | ||
---- | ---- | ||
| + | |||
=== Single units of time === | === Single units of time === | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 66: | Line 72: | ||
|HOUR | |HOUR | ||
| | | | ||
| − | |{{ | + | |{{mwl|CURRENTHOUR}} |
|{{tl|Hour-1}} | |{{tl|Hour-1}} | ||
|{{tl|Hour+1}} | |{{tl|Hour+1}} | ||
| Line 73: | Line 79: | ||
|WEEK | |WEEK | ||
| | | | ||
| − | |{{ | + | |{{mwl|CURRENTWEEK}}<br>{{tl|CURRENTWEEKOFMONTH}} |
| | | | ||
| | | | ||
| Line 80: | Line 86: | ||
|Day of Week | |Day of Week | ||
|{{tl|Dow}} | |{{tl|Dow}} | ||
| − | |{{ | + | |{{mwl|CURRENTDAYNAME}}<br>{{tl|CURRENTWEEKDAYABBREV}}<br>{{tl|CURRENTWEEKDAY}} |
|{{tl|LASTWEEKDAYNAME}}<br>{{tl|LASTWEEKDAYABBREV}} | |{{tl|LASTWEEKDAYNAME}}<br>{{tl|LASTWEEKDAYABBREV}} | ||
|{{tl|NEXTWEEKDAYNAME}}<br>{{tl|NEXTWEEKDAYABBREV}} | |{{tl|NEXTWEEKDAYNAME}}<br>{{tl|NEXTWEEKDAYABBREV}} | ||
| Line 86: | Line 92: | ||
|MONTH | |MONTH | ||
|{{tl|MONTHNAME}}<br>{{tl|MONTHABBREV}}<br>{{tl|MONTHNUMBER}}<br>{{tl|MONTH}} (zero padded) | |{{tl|MONTHNAME}}<br>{{tl|MONTHABBREV}}<br>{{tl|MONTHNUMBER}}<br>{{tl|MONTH}} (zero padded) | ||
| − | |{{ | + | |{{mwl|CURRENTMONTHNAME}}<br>{{mwl|CURRENTMONTHABBREV}}<br>{{mwl|CURRENTMONTH1}}<br>{{tl|CURRENTMONTHDAYS}} |
|{{tl|LASTMONTH}}<br>(Can make not zero-padded)<br>{{tl|LASTMONTHNAME}}<br>{{tl|LASTMONTHABBR}} | |{{tl|LASTMONTH}}<br>(Can make not zero-padded)<br>{{tl|LASTMONTHNAME}}<br>{{tl|LASTMONTHABBR}} | ||
|{{tl|NEXTMONTH}}<br>(Can make not zero-padded)<br>{{tl|NEXTMONTHNAME}}<br>{{tl|NEXTMONTHABBR}} | |{{tl|NEXTMONTH}}<br>(Can make not zero-padded)<br>{{tl|NEXTMONTHNAME}}<br>{{tl|NEXTMONTHABBR}} | ||
| Line 92: | Line 98: | ||
|Day of Month | |Day of Month | ||
| | | | ||
| − | |{{ | + | |{{mwl|CURRENTDAY}}<br>{{mwl|CURRENTDAY2}} (zero padded) |
| | | | ||
| | | | ||
| Line 98: | Line 104: | ||
|YEAR | |YEAR | ||
| | | | ||
| − | |{{tl|CURRENTYEARCC}}<br>{{tl|CURRENTYEARYY}}<br>{{tl|CURRENTISOYEAR}}<br>{{ | + | |{{tl|CURRENTYEARCC}}<br>{{tl|CURRENTYEARYY}}<br>{{tl|CURRENTISOYEAR}}<br>{{mwl|CURRENTYEAR}} |
|{{tl|LASTYEAR}} | |{{tl|LASTYEAR}} | ||
|{{tl|NEXTYEAR}} | |{{tl|NEXTYEAR}} | ||
| Line 107: | Line 113: | ||
| | | | ||
| | | | ||
| + | |- | ||
| + | |DECADE | ||
| + | |{{tl|DECADE}} | ||
| + | |{{tl|CURRENTDECADE}} | ||
| + | |{{tl|LASTDECADE}} | ||
| + | |{{tl|NEXTDECADE}} | ||
|- | |- | ||
|CENTURY | |CENTURY | ||
| Line 121: | Line 133: | ||
|} | |} | ||
| − | === Date and time | + | === Date and time templates made for substitution: === |
'''Month:'''<br>{{tl|Lmonth}} produces {{Lmonth}}<br>{{tl|Nmonth}} produces {{Nmonth}}<br>{{tl|LastMonth}} produces {{LastMonth}}<br>{{tl|NextMonth}} produces {{NextMonth}} | '''Month:'''<br>{{tl|Lmonth}} produces {{Lmonth}}<br>{{tl|Nmonth}} produces {{Nmonth}}<br>{{tl|LastMonth}} produces {{LastMonth}}<br>{{tl|NextMonth}} produces {{NextMonth}} | ||
---- | ---- | ||
| − | ==== Individual | + | ==== Individual templates ==== |
*{{tl|Calendar}} | *{{tl|Calendar}} | ||
*{{tl|Calendar clock with Wikipedia stats}} | *{{tl|Calendar clock with Wikipedia stats}} | ||
| Line 132: | Line 144: | ||
*{{tl|Digital clock and date}} | *{{tl|Digital clock and date}} | ||
| − | ==== Categories of | + | ==== Categories of templates ==== |
* [[:Category:Time, date and calendar templates]] | * [[:Category:Time, date and calendar templates]] | ||
* [[:Category:Date-computing templates]] | * [[:Category:Date-computing templates]] | ||
* [[:Category:Date-computing templates based on current time]] | * [[:Category:Date-computing templates based on current time]] | ||
* [[:Category:ISO date templates]] | * [[:Category:ISO date templates]] | ||
| − | * [[:Category:Calendar | + | * [[:Category:Calendar templates]]<noinclude> |
| − | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:53, 2 October 2020
[] all subsections that follow:
| These templates do not put a working clock on your page. The clock will not update the time on your screen every minute. Instead, it records the date and time that the page was most recently edited or purged. If you want a clock that constantly updates, then go to Special:Preferences#mw-prefsection-gadgets and enable the Appearance item, "Add a clock to the personal toolbar that displays the current time in UTC and provides a link to purge the current page". |
Contents
Multiple units of time
| Type | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Date and time | {{time}} | {{Currentdate}} (MDY) {{Plain now}} (DMY) {{Now}} (DMY in a complete sentence) {{Simple now}} |
||
| Date only | {{Dateonly}} {{Datedow}} (Has the day of the week) |
{{Date}} (Chose format) {{DATE}} (prefixed by date=) {{TODAY}} (DMY) |
{{Yesterday}} {{Day-1}} |
{{Tomorrow}} {{Day+1}} |
| Time only | {{Timeonly}} | {{CURRENTTIME}} (12 h format) {{CURRENTTIME24}} (24 h format) |
||
| Banners | {{Right now}} (Blue with time and number of Wikipedia articles) |
|||
| Timestamp | {{Timestamp}} (Format YYYYMMDDhhmmss) |
Single units of time
Date and time templates made for substitution:
Month:
{{Lmonth}} produces Dec
{{Nmonth}} produces Feb
{{LastMonth}} produces December 2025
{{NextMonth}} produces February 2026
Individual templates
- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
Categories of templates
- Category:Time, date and calendar templates
- Category:Date-computing templates
- Category:Date-computing templates based on current time
- Category:ISO date templates
- Category:Calendar templates
Usage
This template is intended to provide a consistent "See also" for templates with "date" and "now" related titles.
See also
| The above documentation is transcluded from Template:Date and time templates/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |