Difference between revisions of "Template:Day/sandbox"
Jump to navigation
Jump to search
Template:Subpage other
imported>MSGJ (proper error checking) |
imported>Wbm1058 (synchronize with live template) |
||
| Line 1: | Line 1: | ||
| − | '''{{FULLPAGENAME}}''' is the {{# | + | <includeonly>'''{{FULLPAGENAME}}''' is the {{#switch:{{#time:z|{{PAGENAME}}}} |
| − | + | |0=first | |
| − | + | |1=second | |
| − | }}<noinclude> | + | |2=third |
| − | {{ | + | |3=fourth |
| − | </noinclude> | + | |4=fifth |
| + | |5=sixth | ||
| + | |6=seventh | ||
| + | |7=eighth | ||
| + | |8=ninth | ||
| + | |{{ordinal|{{#expr:{{#time:z|{{PAGENAME}}, 2001}}+1}}}} | ||
| + | }} day of the year{{#ifexpr:{{#time:n|{{PAGENAME}}}}<3 | ||
| + | | | ||
| + | | ({{ordinal|{{#expr:{{#time:z|{{PAGENAME}}, 2000}}+1}}}} in [[leap year]]s) | ||
| + | }} in the [[Gregorian calendar]].{{#switch:{{#expr:364-{{#time:z|{{PAGENAME}}, 2001}}}} | ||
| + | |0= | ||
| + | |1= There is one day remaining until the end of the year. | ||
| + | |2= There are two days remaining until the end of the year. | ||
| + | |3= There are three days remaining until the end of the year. | ||
| + | |4= There are four days remaining until the end of the year. | ||
| + | |5= There are five days remaining until the end of the year. | ||
| + | |6= There are six days remaining until the end of the year. | ||
| + | |7= There are seven 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. | ||
| + | | There are {{#expr:364-{{#time:z|{{PAGENAME}}, 2001}}}} days remaining until the end of the year{{#ifexpr:{{#time:n|{{PAGENAME}}}}<3 | ||
| + | | ({{#expr:365-{{#time:z|{{PAGENAME}}, 2000}}}} in [[leap year]]s) | ||
| + | | | ||
| + | }}. | ||
| + | }} {{#switch:{{#expr: ({{#time:z|{{PAGENAME}}, 2000}} {{#ifexpr:{{#time:n|{{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). | ||
| + | |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). | ||
| + | |2= This date is slightly more likely to fall on a Monday, Wednesday or Saturday (58 in 400 years each) than on Thursday or Friday (57), and slightly less likely to occur on a Tuesday or Sunday (56). | ||
| + | |3= This date is slightly more likely to fall on a Tuesday, Thursday or Sunday (58 in 400 years each) than on Friday or Saturday (57), and slightly less likely to occur on a Monday or Wednesday (56). | ||
| + | |4= This date is slightly more likely to fall on a Monday, Wednesday or Friday (58 in 400 years each) than on Saturday or Sunday (57), and slightly less likely to occur on a Tuesday or Thursday (56). | ||
| + | |5= This date is slightly more likely to fall on a Tuesday, Thursday or Saturday (58 in 400 years each) than on Sunday or Monday (57), and slightly less likely to occur on a Wednesday or Friday (56). | ||
| + | |6= This date is slightly more likely to fall on a Wednesday, Friday or Sunday (58 in 400 years each) than on Monday or Tuesday (57), and slightly less likely to occur on a Thursday or Saturday (56). | ||
| + | }}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 10:25, 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. |