Difference between revisions of "Template:Day"
Jump to navigation
Jump to search
Template:Subpage other
imported>EEng (Well, it wasn't discussed when it was inserted either. Anyway, WP:OR not to mention that it's idiotic nonsense trivia) |
imported>Kbrose (c/e) |
||
| Line 15: | Line 15: | ||
}} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} | }} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} | ||
|0= | |0= | ||
| − | |1=  | + | |1= One day remains until the end of the year. |
| − | |2=  | + | |2= Two days remain until the end of the year. |
| − | |3=  | + | |3= Three days remain until the end of the year. |
| − | |4=  | + | |4= Four days remain until the end of the year. |
| − | |5=  | + | |5= Five days remain until the end of the year. |
| − | |6=  | + | |6= Six days remain until the end of the year. |
| − | |7=  | + | |7= Seven days remain until the end of the year. |
| − | |8=  | + | |8= Eight days remain until the end of the year. |
| − | |9=  | + | |9= Nine days remain until the end of the year. |
| − | |  | + | |  {{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} days remain until the end of the year{{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3 |
| ({{#expr:365-{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}}} in [[leap year]]s) | | ({{#expr:365-{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}}} in [[leap year]]s) | ||
| | | | ||
}}. | }}. | ||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 00:55, 20 April 2019
| This template adds an automatically generated short description. |
Contents
Usage
This template is the article lead for the pages January 1 through December 31, but is not used on February 29. The template is not supposed to be a countdown clock for the current year, but rather should be a consistent lead that produces the same output regardless of the current year.
See also
[] all subsections that follow:
| This template does 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}} |
| 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
Date and time templates made for substitution:
Month:
{{Lmonth}} produces Mar
{{Nmonth}} produces May
{{LastMonth}} produces March 2026
{{NextMonth}} produces May 2026
Individual templates
- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
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
| The above documentation is transcluded from Template:Day/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |