Jump to content

Template:Date and time templates: Difference between revisions

From the Vrienden Universe, a fictional wiki
No edit summary
Remove unused date helpers and missing experiment links
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{For|the [[help:magic words|magic words]] with the same or similar names|MediaWikiWiki:Help:Magic words#Date and time}}
{{For|the [[help:magic words|magic words]] with the same or similar names|MediaWikiWiki:Help:Magic words#Date and time}}
{{v|t|e|template=Date and time templates}}
{{v|t|e|template=Date and time templates}}
=== Multiple units of time ===
{| class="wikitable"
|+
!Type
!Adjustable
!Current
!Last
!Next
|-
|Date and time
|{{ubil|{{tl|time}}}}
|{{ubil|{{tl|Currentdate}} (MDY)|{{tl|Plain now}} (DMY)|{{tl|Now}} (DMY in a complete sentence)|{{tl|Simple now}}}}
|
|
|-
|Date only
|{{ubil|{{tl|Dateonly}}|{{tl|Datedow}}<br>(Has the day of the week)}}
|{{ubil|{{tl|Date}} (Chose format)|{{tl|TODAY}} (DMY)}}
|{{ubil|{{tl|Yesterday}}|{{tl|Day-1}}}}
|{{ubil|{{tl|Tomorrow}}|{{tl|Day+1}}}}
|-
|Month and year only
|
|{{ubil|{{tl|Monthyear}}
  |{{tl|DATE}} (prefixed by date{{=}})}}
|{{ubil|{{tl|Monthyear-1}}|{{tl|Last month}}}}
|{{ubil|{{tl|Monthyear+1}}|{{tl|Next month}}}}
|-
|Time only
|{{ubil|{{tl|Timeonly}} (Adjustable to 12 h format)}}
|{{ubil|{{mwl|CURRENTTIME}} (24 h format)}}
|
|
|-
|Banners
|
|{{ubil|{{tl|Right now}}<br>(Blue with time and number of Wikipedia articles)}}
|
|
|-
|Timestamp
|
|{{ubil|{{mwl|CURRENTTIMESTAMP}}<br>(Format YYYYMMDDhhmmss)}}
|
|
|}


=== Single units of time ===
=== Supported date templates ===
{| class="wikitable"
|+
!Unit of time
!Adjustable
!Current
!Last
!Next
|-
|Second
|
|{{ubil|{{Template link|CURRENTSECOND}}}}
|
|
|-
|Minute
|
|{{ubil|{{Template link|CURRENTMINUTE}}}}
|
|
|-


|Hour
* {{tl|MONTHNAME}}
|
* {{tl|MONTHNUMBER}}
|{{ubil|{{Magic word link|CURRENTHOUR}}}}
* {{tl|Tomorrow}}
|
|
|-


|Week
<noinclude>{{Documentation}}</noinclude>
|
|{{ubil|{{Magic word link|CURRENTWEEK}}|{{Template link|CURRENTWEEKOFMONTH}}}}
|
|
|-
 
|Day of Week
|{{ubil|{{Template link|DAYOFWEEK}}}}
|{{ubil|{{Magic word link|CURRENTDAYNAME}}||{{Template link|CURRENTWEEKDAYABBREV}}|{{Template link|CURRENTWEEKDAY}} (1–7, [[ISO week date|ISO]])|{{Magic word link|CURRENTDOW}} (0–6)}}
|
|
|-
|Month
|{{ubil|{{Template link|MONTHNAME}}|{{Template link|MONTHABBREV}}|{{Template link|MONTHNUMBER}}|{{Template link|MONTH}} (zero padded)}}
|{{ubil|{{Magic word link|CURRENTMONTHNAME}}|{{Magic word link|CURRENTMONTHABBREV}}|{{Magic word link|CURRENTMONTH1}}|{{Template link|CURRENTMONTHDAYS}}}}
|{{ubil|{{Template link|LASTMONTHNAME}}|{{tl|Last month (short)}}}}
|{{ubil|{{Template link|NEXTMONTHNAME}}|{{tl|Next month (short)}}}}
|-
|Day of Month
|
|{{ubil|{{Magic word link|CURRENTDAY}}|{{Magic word link|CURRENTDAY2}} (zero padded)}}
|
|
|-
|Year
|
|{{ubil|{{Magic word link|CURRENTYEAR}}|{{Template link|CURRENTYEARCC}}|{{Template link|CURRENTYEARYY}}|{{Template link|CURRENTISOYEAR}}}}
|{{ubil|{{Template link|LASTYEAR}}}}
|{{ubil|{{Template link|NEXTYEAR}}}}
|-
|Day of Year
|
|{{ubil|{{Template link|CURRENTDAYOFYEAR}}}}
|
|
|-
|Decade
|{{ubil|{{Template link|DECADE}}}}
|{{ubil|{{Template link|CURRENTDECADE}}}}
|
|
|-
|Century
|{{ubil|{{Template link|Century}}}}
|{{ubil|{{Template link|CURRENTCENTURY}}}}
|
|
|-
|Millenium
|{{ubil|{{Template link|MILLENNIUM}}}}
|
|
|
|}
 
=== Date and time templates made for substitution ===
==== Parser functions ====
* [[mw:Special:MyLanguage/time]] permits a custom time specifier string, similar to the
 
==== 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}}
 
{{documentation}}
</noinclude>

Latest revision as of 23:14, 26 September 2026

Supported date templates

[edit source]