Editing
Template:Date and time templates
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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 /> {{notice|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>}}</noinclude> === Multiple units of time === {| 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}} |- |Month and year only | |{{tl|Monthyear}} |{{tl|Monthyear-1}} |{{tl|Monthyear+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> | | |} ---- === Single units of time === {| class="wikitable" |+ !Unit of time !Adjustable !Current !Last !Next |- |Second | |{{Template link|CURRENTSECOND}} | | |- |Minute | |{{Template link|CURRENTMINUTE}} | | |- |Hour | |{{Magic word link|CURRENTHOUR}} | | |- |Week | |{{Magic word link|CURRENTWEEK}}<br>{{Template link|CURRENTWEEKOFMONTH}} | | |- |Day of Week |{{Template link|DAYOFWEEK}} |{{Magic word link|CURRENTDAYNAME}}<br>{{Template link|CURRENTWEEKDAYABBREV}}<br>{{Template link|CURRENTWEEKDAY}} | | |- |Month |{{Template link|MONTHNAME}}<br>{{Template link|MONTHABBREV}}<br>{{Template link|MONTHNUMBER}}<br>{{Template link|MONTH}} (zero padded) |{{Magic word link|CURRENTMONTHNAME}}<br>{{Magic word link|CURRENTMONTHABBREV}}<br>{{Magic word link|CURRENTMONTH1}}<br>{{Template link|CURRENTMONTHDAYS}} |{{Template link|LASTMONTHNAME}} |{{Template link|NEXTMONTHNAME}} |- |Day of Month | |{{Magic word link|CURRENTDAY}}<br>{{Magic word link|CURRENTDAY2}} (zero padded) | | |- |Year | |{{Template link|CURRENTYEARCC}}<br>{{Template link|CURRENTYEARYY}}<br>{{Template link|CURRENTISOYEAR}}<br>{{Magic word link|CURRENTYEAR}} |{{Template link|LASTYEAR}} |{{Template link|NEXTYEAR}} |- |Day of Year | |{{Template link|CURRENTDAYOFYEAR}} | | |- |Decade |{{Template link|DECADE}} |{{Template link|CURRENTDECADE}} | | |- |Century |{{Template link|Century}} |{{Template link|CURRENTCENTURY}} | | |- |MILLENNIUM |{{Template link|MILLENNIUM}} | | | |} === Date and time templates made for substitution: === '''Month:'''<br>{{tl|Lmonth}} produces {{Lmonth}}<br>{{tl|Nmonth}} produces {{Nmonth}}<br>{{tl|Last month}} produces {{Last month}}<br>{{tl|Next month}} produces {{Next month}} ---- ==== Parser functions ==== * [[mw:Special:MyLanguage/time]] permits a custom time specifier string, similar to the [[C date and time functions]] ==== Individual templates ==== *{{tl|Calendar}} *{{tl|Calendar clock with Wikipedia stats}} *{{tl|Clock}} *{{tl|Digital clock}} *{{tl|Digital clock and date}} * {{tl|Infobox calendar date today}} * {{<nowiki></nowiki>{{u|Raph Williams65/digiclock}}<nowiki></nowiki>}} ==== 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]]<noinclude> {{documentation}} </noinclude>
Summary:
By saving changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Align
(
edit
)
Template:Documentation
(
edit
)
Template:Edit
(
edit
)
Template:For
(
edit
)
Template:Last month
(
edit
)
Template:Last month (short)
(
edit
)
Template:Lmonth
(
edit
)
Template:Magic word link
(
edit
)
Template:Mbox
(
edit
)
Template:Next month
(
edit
)
Template:Next month (short)
(
edit
)
Template:Nmonth
(
edit
)
Template:Notice
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Template:U
(
edit
)
Template:User link
(
edit
)
Module:Arguments
(
view source
) (protected)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/styles.css
(
edit
)
Module:For
(
edit
)
Module:Format link
(
edit
)
Module:Hatnote
(
edit
)
Module:Hatnote/styles.css
(
edit
)
Module:Hatnote list
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Yesno
(
view source
) (protected)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Donate
Tools
What links here
Related changes
Upload file
Special pages
Page information