Jump to content

Template:Date and time templates: Difference between revisions

From Guzmer Wiki
link to magic words where possible
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br />
{{For|the [[help:magic words|magic words]] with the same or similar names|MediaWikiWiki:Help:Magic words#Date and time}}
 
<noinclude>{{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br />
{{info|1=<big>{{#switch:{{FULLPAGENAME}}
{{info|1=<big>{{#switch:{{FULLPAGENAME}}
|Template:Date and time templates=These templates do '''not''' put a working clock on your page.
|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 />
|#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>}}
<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>}}</noinclude>
 
=== Multiple units of time ===
=== Multiple units of time ===
{| class="wikitable"
{| class="wikitable"
Line 26: Line 25:
|{{tl|Yesterday}}<br>{{tl|Day-1}}
|{{tl|Yesterday}}<br>{{tl|Day-1}}
|{{tl|Tomorrow}}<br>{{tl|Day+1}}
|{{tl|Tomorrow}}<br>{{tl|Day+1}}
|-
|Month and year only
|
|{{tl|Monthyear}}
|{{tl|Monthyear-1}}
|{{tl|Monthyear+1}}
|-
|-
|Time only
|Time only
Line 73: Line 78:
|
|
|{{mwl|CURRENTHOUR}}
|{{mwl|CURRENTHOUR}}
|{{tl|Hour-1}}
|
|{{tl|Hour+1}}
|
|-
|-


Line 85: Line 90:


|Day of Week
|Day of Week
|{{tl|Dow}}
|{{tl|DAYOFWEEK}}
|{{mwl|CURRENTDAYNAME}}<br>{{tl|CURRENTWEEKDAYABBREV}}<br>{{tl|CURRENTWEEKDAY}}
|{{mwl|CURRENTDAYNAME}}<br>{{tl|CURRENTWEEKDAYABBREV}}<br>{{tl|CURRENTWEEKDAY}}
|{{tl|LASTWEEKDAYNAME}}<br>{{tl|LASTWEEKDAYABBREV}}
|
|{{tl|NEXTWEEKDAYNAME}}<br>{{tl|NEXTWEEKDAYABBREV}}
|
|-
|-
|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}}
|{{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|LASTMONTHNAME}}
|{{tl|NEXTMONTH}}<br>(Can make not zero-padded)<br>{{tl|NEXTMONTHNAME}}<br>{{tl|NEXTMONTHABBR}}
|{{tl|NEXTMONTHNAME}}
|-
|-
|Day of Month
|Day of Month
Line 117: Line 122:
|{{tl|DECADE}}
|{{tl|DECADE}}
|{{tl|CURRENTDECADE}}
|{{tl|CURRENTDECADE}}
|{{tl|LASTDECADE}}
|
|{{tl|NEXTDECADE}}
|
|-
|-
|CENTURY
|CENTURY
|{{tl|CENTURY}}
|{{tl|CENTURY}}
|{{tl|CURRENTCENTURY}}
|{{tl|CURRENTCENTURY}}
|{{tl|LASTCENTURY}}
|
|{{tl|NEXTCENTURY}}
|
|-
|-
|MILLENNIUM
|MILLENNIUM
|{{tl|MILLENNIUM}}
|{{tl|MILLENNIUM}}
|{{tl|Currentmillennium}}
|
|
|
|
|
|}
|}


=== Date and time Templates made for substitution: ===
=== 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 Templates ====
==== Individual templates ====
*{{tl|Calendar}}
*{{tl|Calendar}}
*{{tl|Calendar clock with Wikipedia stats}}
*{{tl|Calendar clock with Wikipedia stats}}
Line 144: Line 149:
*{{tl|Digital clock and date}}
*{{tl|Digital clock and date}}


==== Categories of Templates ====
==== Categories of templates ====
* [[:Category:Time, date and calendar templates]]
* [[:Category:Time, date and calendar templates]]
* [[:Category:Date-computing templates]]
* [[:Category:Date-computing templates]]

Latest revision as of 15:51, 7 June 2024

[edit] all subsections that follow:


Notice 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".

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}}
Month and year only {{Monthyear}} {{Monthyear-1}} {{Monthyear+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

Unit of time Adjustable Current Last Next
SECOND {{CURRENTSECOND}}
MINUTE {{CURRENTMINUTE}}
HOUR {{CURRENTHOUR}}
WEEK {{CURRENTWEEK}}
{{CURRENTWEEKOFMONTH}}
Day of Week {{DAYOFWEEK}} {{CURRENTDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
MONTH {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
{{CURRENTMONTHNAME}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTH1}}
{{CURRENTMONTHDAYS}}
{{LASTMONTHNAME}} {{NEXTMONTHNAME}}
Day of Month {{CURRENTDAY}}
{{CURRENTDAY2}} (zero padded)
YEAR {{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
{{CURRENTYEAR}}
{{LASTYEAR}} {{NEXTYEAR}}
Day of Year {{CURRENTDAYOFYEAR}}
DECADE {{DECADE}} {{CURRENTDECADE}}
CENTURY {{CENTURY}} {{CURRENTCENTURY}}
MILLENNIUM {{MILLENNIUM}}

Date and time templates made for substitution:

Month:
{{Lmonth}} produces Apr
{{Nmonth}} produces Jun
{{LastMonth}} produces April 2025
{{NextMonth}} produces June 2025


Individual templates

Categories of templates