Template:Date and time templates: Difference between revisions

(Created page with "{{align|left|[{{edit|Template:Date and time templates}}] ''all subsections that follow:''}}<br /> {{info|1=<big>{{#switch:{{FULLPAGENAME}} |Template:Date and time templates=T...")
 
m (clean up, replaced: Wikipedia → Bharatpedia)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
{{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 [[BP: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>}}


Line 35: 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 Bharatpedia articles)
|
|
|
|
Line 139: Line 139:
==== Individual templates ====
==== Individual templates ====
*{{tl|Calendar}}
*{{tl|Calendar}}
*{{tl|Calendar clock with Wikipedia stats}}
*{{tl|Calendar clock with Bharatpedia stats}}
*{{tl|Clock}}
*{{tl|Clock}}
*{{tl|Digital clock}}
*{{tl|Digital clock}}

Latest revision as of 10:30, 9 June 2021

[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 Bharatpedia 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 {{CURRENTWEEK}}
{{CURRENTWEEKOFMONTH}}
Day of Week {{Dow}} {{CURRENTDAYNAME}}
{{CURRENTWEEKDAYABBREV}}
{{CURRENTWEEKDAY}}
{{LASTWEEKDAYNAME}}
{{LASTWEEKDAYABBREV}}
{{NEXTWEEKDAYNAME}}
{{NEXTWEEKDAYABBREV}}
MONTH {{MONTHNAME}}
{{MONTHABBREV}}
{{MONTHNUMBER}}
{{MONTH}} (zero padded)
{{CURRENTMONTHNAME}}
{{CURRENTMONTHABBREV}}
{{CURRENTMONTH1}}
{{CURRENTMONTHDAYS}}
{{LASTMONTH}}
(Can make not zero-padded)
{{LASTMONTHNAME}}
{{LASTMONTHABBR}}
{{NEXTMONTH}}
(Can make not zero-padded)
{{NEXTMONTHNAME}}
{{NEXTMONTHABBR}}
Day of Month {{CURRENTDAY}}
{{CURRENTDAY2}} (zero padded)
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 Apr
{{Nmonth}} produces Jun
{{LastMonth}} produces April 2025
{{NextMonth}} produces June 2025


Individual templates

Categories of templates