Template:Date and time templates: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported from wikipedia:Template:Date_and_time_templates)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{align|right|{{resize|95%|[{{edit|Template:Date and time templates}}]}}}}
{{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br />
{{colbegin||35em}}
 
* [[:Category:Time, date and calendar templates]]
{{info|1=<big>{{#switch:{{FULLPAGENAME}}
* [[:Category:Date-computing templates]]
|Template:Date and time templates=These templates do '''not''' put a working clock on your page.
* [[:Category:Date-computing templates based on current time]]
|#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 />
* [[:Category:ISO date templates]]
<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>}}
* [[:Category:Calendar templates]]
 
* [[:Category:Clock Templates]]
=== Multiple units of time ===
{{colend}}
{| class="wikitable"
|+
!Type
!Adjustable
!Current
!Last
!Next
|-
|Date and Time
|{{tl|time}}
|{{tl|Currentdate}} (MDY)<br>{{tl|Plain now}} (DMY)<br>{{tl|Now}} (DMY in a complete sentence)<br>{{tl|Simple now}}
|
|
|-
|Date Only
|{{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|Yesterday}}<br>{{tl|Day-1}}
|{{tl|Tomorrow}}<br>{{tl|Day+1}}
|-
|Time only
|{{tl|Timeonly}}
|{{tl|CURRENTTIME}} (12 h format)<br>{{tl|CURRENTTIME24}} (24 h format)
|
|
|-
|Banners
|
|{{tl|Right now}}<br>(Blue with time and number of Wikipedia articles)
|
|
|-
|Timestamp
|
|{{tl|Timestamp}}<br>(Format YYYYMMDDhhmmss)<br>
|
|
|}
 
----
----
{{colbegin||35em}}
 
* {{tl|Currentdate}} &ndash; Time, day of week, and date in MDY format and time zone
=== Single units of time ===
* {{tl|Date}} &ndash; Date in chosen format
{| class="wikitable"
* {{tl|DATE}} &ndash; Month and year, prefixed by "date=" (for use with templates through substitution)
|+
* {{tl|Now}} &ndash; Same as <nowiki>{{Currentdate}}</nowiki> but in a sentence
!Unit of time
* {{tl|Plain now}} &ndash; Date in DMY format, and time
!Adjustable
* {{tl|Right now}} &ndash; Blue banner with time and current number of Wikipedia articles
!Current
* {{tl|Right now (User message)}} &ndash; Orange banner with time and current number of Wikipedia articles
!Last
* {{tl|TODAY}} &ndash; Date in DMY
!Next
{{colend}}
|-
|SECOND
|
|{{tl|CURRENTSECOND}}
|
|
|-
|MINUTE
|
|{{tl|CURRENTMINUTE}}
|
|
|-
 
|HOUR
|
|{{tl|Currenthour}}
|{{tl|Hour-1}}
|{{tl|Hour+1}}
|-
 
|WEEK
|
|{{tl|CURRENTWEEKOFYEAR}}<br>{{tl|CURRENTWEEKOFMONTH}}
|
|
|-
 
|Day of Week
|{{tl|Dow}}
|{{tl|CURRENTWEEKDAYNAME}}<br>{{tl|CURRENTWEEKDAYABBREV}}<br>{{tl|CURRENTWEEKDAY}}
|{{tl|LASTWEEKDAYNAME}}<br>{{tl|LASTWEEKDAYABBREV}}
|{{tl|NEXTWEEKDAYNAME}}<br>{{tl|NEXTWEEKDAYABBREV}}
|-
|MONTH
|{{tl|MONTHNAME}}<br>{{tl|MONTHABBREV}}<br>{{tl|MONTHNUMBER}}<br>{{tl|MONTH}} (zero padded)
|{{tl|Currentmonth}}<br>{{tl|CURRENTMONTHABBREV}}<br>{{tl|CURRENTMONTHNUMBER}}<br>{{tl|CURRENTMONTHDAYS}}
|{{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}}
|-
|Day of Month
|
|{{tl|Currentday}}
|
|
|-
|YEAR
|
|{{tl|CURRENTYEARCC}}<br>{{tl|CURRENTYEARYY}}<br>{{tl|CURRENTISOYEAR}}<br>{{Tl|CURRENTYEAR}}
|{{tl|LASTYEAR}}
|{{tl|NEXTYEAR}}
|-
|Day of Year
|
|{{tl|CURRENTDAYOFYEAR}}
|
|
|-
|DECADE
|{{tl|DECADE}}
|{{tl|CURRENTDECADE}}
|{{tl|LASTDECADE}}
|{{tl|NEXTDECADE}}
|-
|CENTURY
|{{tl|CENTURY}}
|{{tl|CURRENTCENTURY}}
|{{tl|LASTCENTURY}}
|{{tl|NEXTCENTURY}}
|-
|MILLENNIUM
|{{tl|MILLENNIUM}}
|{{tl|Currentmillennium}}
|
|
|}
 
=== 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}}
 
----
----
{{colbegin||18em}}
==== Individual Templates ====
* {{tl|NEXTYEAR}}
* {{tl|CURRENTWEEKDAYABBREV}}
* {{tl|CURRENTWEEKDAYNAME}}
* {{tl|Day}}
* {{tl|MONTH}}
* {{tl|MONTHNAME}}
* {{tl|MONTHABBREV}}
* {{tl|MONTHNUMBER}}
* {{tl|CURRENTWEEKDAY}}
* {{tl|WEEKDAY}}
* {{tl|WEEKDAYNAME}}
* {{tl|WEEKDAYABBREV}}
* {{tl|CURRENTYEARCC}}
* {{tl|CURRENTYEARYY}}
* {{tl|CURRENTCENTURY}}
* {{tl|CURRENTMONTHDAYS}}
* {{tl|CURRENTISOYEAR}}
* {{tl|CURRENTMINUTE}}
* {{tl|JULIANDAY}}
{{colend}}
----
{{colbegin||18em}}
*{{tl|Calendar}}
*{{tl|Calendar}}
*{{tl|Calendar clock with Wikipedia stats}}
*{{tl|Calendar clock with Wikipedia stats}}
Line 48: Line 143:
*{{tl|Digital clock}}
*{{tl|Digital clock}}
*{{tl|Digital clock and date}}
*{{tl|Digital clock and date}}
{{colend}}<noinclude>
{{documentation|content=
==Usage==
This template is intended to provide a consistent "See also" for templates with "date" and "now" related titles.


==See also==
==== Categories of Templates ====
*[[Wikipedia:Age calculation templates]]
* [[:Category:Time, date and calendar templates]]
*{{tl|Start date}}
* [[:Category:Date-computing templates]]
 
* [[:Category:Date-computing templates based on current time]]
[[Category:Documentation see also templates]]
* [[:Category:ISO date templates]]
}}
* [[:Category:Calendar templates]]
* [[:Category:Clock templates]]<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 12:41, 29 March 2020

[edit] all subsections that follow:


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

Unit of time Adjustable Current Last Next
SECOND {{CURRENTSECOND}}
MINUTE {{CURRENTMINUTE}}
HOUR {{Currenthour}} {{Hour-1}} {{Hour+1}}
WEEK {{CURRENTWEEKOFYEAR}}
{{CURRENTWEEKOFMONTH}}
Day of Week {{Dow}} {{CURRENTWEEKDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
{{LASTWEEKDAYNAME}}
{{LASTWEEKDAYABBREV}}
{{NEXTWEEKDAYNAME}}
{{NEXTWEEKDAYABBREV}}
MONTH {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
{{Currentmonth}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTHNUMBER}}
{{CURRENTMONTHDAYS}}
{{LASTMONTH}}
(Can make not zero-padded)
{{LASTMONTHNAME}}
{{LASTMONTHABBR}}
{{NEXTMONTH}}
(Can make not zero-padded)
{{NEXTMONTHNAME}}
{{NEXTMONTHABBR}}
Day of Month {{Currentday}}
YEAR {{CURRENTYEARCC}}
{{CURRENTYEARYY}}
{{CURRENTISOYEAR}}
{{CURRENTYEAR}}
{{LASTYEAR}} {{NEXTYEAR}}
Day of Year {{CURRENTDAYOFYEAR}}
DECADE {{DECADE}} {{CURRENTDECADE}} {{LASTDECADE}} {{NEXTDECADE}}
CENTURY {{CENTURY}} {{CURRENTCENTURY}} {{LASTCENTURY}} {{NEXTCENTURY}}
MILLENNIUM {{MILLENNIUM}} {{Currentmillennium}}

Date and time Templates made for substitution:

Month:
{{Lmonth}} produces Oct
{{Nmonth}} produces Dec
{{LastMonth}} produces October 2024
{{NextMonth}} produces December 2024


Individual Templates

Categories of Templates

Template documentation[create]