Difference between revisions of "Template:Day/sandbox"
Jump to navigation
Jump to search
Template:Subpage other
imported>Wbm1058 (parameter 1 to specify the day) |
imported>Wbm1058 m (→top: parameter 1 to specify the day, replaced: {{PAGENAME}} → {{{1|{{PAGENAME}}}}} (10) using AWB) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>'''{{{1|{{FULLPAGENAME}}}}}''' is the {{#switch:{{#time:z|{{PAGENAME}}}} | + | <includeonly>'''{{{1|{{FULLPAGENAME}}}}}''' is the {{#switch:{{#time:z|{{{1|{{PAGENAME}}}}}}} |
|0=first | |0=first | ||
|1=second | |1=second | ||
| Line 9: | Line 9: | ||
|7=eighth | |7=eighth | ||
|8=ninth | |8=ninth | ||
| − | |{{ordinal|{{#expr:{{#time:z|{{PAGENAME}}, 2001}}+1}}}} | + | |{{ordinal|{{#expr:{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}+1}}}} |
| − | }} day of the year{{#ifexpr:{{#time:n|{{PAGENAME}}}}<3 | + | }} day of the year{{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3 |
| | | | ||
| − | | ({{ordinal|{{#expr:{{#time:z|{{PAGENAME}}, 2000}}+1}}}} in [[leap year]]s) | + | | ({{ordinal|{{#expr:{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}+1}}}} in [[leap year]]s) |
| − | }} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{PAGENAME}}, 2001}}}} | + | }} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} |
|0= | |0= | ||
|1= There is one day remaining until the end of the year. | |1= There is one day remaining until the end of the year. | ||
| Line 24: | Line 24: | ||
|8= There are eight days remaining until the end of the year. | |8= There are eight days remaining until the end of the year. | ||
|9= There are nine days remaining until the end of the year. | |9= There are nine days remaining until the end of the year. | ||
| − | | There are {{#expr:364-{{#time:z|{{PAGENAME}}, 2001}}}} days remaining until the end of the year{{#ifexpr:{{#time:n|{{PAGENAME}}}}<3 | + | | There are {{#expr:364-{{#time:z|{{{1|{{PAGENAME}}}}}, 2001}}}} days remaining until the end of the year{{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3 |
| − | | ({{#expr:365-{{#time:z|{{PAGENAME}}, 2000}}}} in [[leap year]]s) | + | | ({{#expr:365-{{#time:z|{{{1|{{PAGENAME}}}}}, 2000}}}} in [[leap year]]s) |
| | | | ||
}}. | }}. | ||
| − | }} {{#switch:{{#expr: ({{#time:z|{{PAGENAME}}, 2000}} {{#ifexpr:{{#time:n|{{PAGENAME}}}}<3|+1|-1}} ) mod 7 }} | + | }} {{#switch:{{#expr: ({{#time:z|{{{1|{{PAGENAME}}}}}, 2000}} {{#ifexpr:{{#time:n|{{{1|{{PAGENAME}}}}}}}<3|+1|-1}} ) mod 7 }} |
|0= This date is slightly more likely to fall on a Monday, Thursday or Saturday (58 in 400 years each) than on Tuesday or Wednesday (57), and slightly less likely to occur on a Friday or Sunday (56). | |0= This date is slightly more likely to fall on a Monday, Thursday or Saturday (58 in 400 years each) than on Tuesday or Wednesday (57), and slightly less likely to occur on a Friday or Sunday (56). | ||
|1= This date is slightly more likely to fall on a Tuesday, Friday or Sunday (58 in 400 years each) than on Wednesday or Thursday (57), and slightly less likely to occur on a Monday or Saturday (56). | |1= This date is slightly more likely to fall on a Tuesday, Friday or Sunday (58 in 400 years each) than on Wednesday or Thursday (57), and slightly less likely to occur on a Monday or Saturday (56). | ||
Latest revision as of 10:38, 20 September 2016
| This is the template sandbox page for Template:Day (diff). |
| 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 Nov
{{Nmonth}} produces Jan
{{LastMonth}} produces November 2025
{{NextMonth}} produces January 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. |