| This is a documentation subpage for Template:Day+1. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| This template is used on approximately 6,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{day+1}} adds one to a date or date-specific pagename
Usage
{{Day+1}} - returns tomorrow's date
{{Day+1|date}} - returns the day after the 'date' passed
{{Day+1|date|pagename|year|spacingchar}} – returns the name of the page one day after the datepage' passed in
- Example
| Code | Result |
|---|---|
{{Day+1}}
|
October 28 |
{{Day+1|February 28}}
|
March 1 |
{{Day+1|February 28|Wikipedia:Today's featured article/|2004}}
|
Wikipedia:Today's featured article/March 1, 2004 |
{{Day+1|February 28||2004}}
|
March 1, 2004 |
{{Day+1|February 28||2005}}
|
March 1, 2005 |
{{Day+1|February 28, 2004}}
|
February 29 |
{{Day+1|February 28, 2005}}
|
March 1 |
{{Day+1|February 29}}
|
March 2 |
{{Day+1|February 29||2004}}
|
March 2, 2004 |
{{Day+1|February 29, 2004}}
|
March 1 |
{{Day+1|February 29, 2005}}
|
March 2 |
{{Day+1|December 31}}
|
January 1 |
{{Day+1|December 31||2004}}
|
January 1, 2004 |
{{Day+1|December 31, 2004||2004}}
|
January 1, 2005 |
{{Day+1|December 31, 2004||2004|_}}
|
January_1,_2004 |
{{day+1|{{day+1}}}}
|
October 29 |
{{day+1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}
|
Wikipedia:Today's featured article/October 28, 2026 |
''[http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day+1|4=_}},_{{CURRENTYEAR}}&action=edit Edit]''
|
Edit |
TemplateData
TemplateData for Day+1
<templatedata> { "params": { "1": { "label": "date", "description": "A specific date to calculate the next day, as understood by {{#time}}", "example": "February 28, 2004", "type": "string", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}", "default": "October 27" }, "2": { "label": "page name", "description": "A prefix to prepend before the returned date", "example": "Wikipedia:Today's featured article/", "type": "string", "deprecated": "Just put the prefix before calling this template" }, "3": { "label": "year", "description": "Include (or repeat) the year to return an MDY date; omit to return just an MD date", "example": "2004", "type": "string", "autovalue": "{{subst:CURRENTYEAR}}" }, "4": { "label": "spacing char", "description": "Separator to replace the spaces in the returned date", "example": "_", "type": "string", "default": " ", "deprecated": "Consider when constructing URLs" }, "days": { "type": "number", "default": "1", "deprecated": "Undocumented; does not work well with the year parameter" } }, "description": "Returns the date of tomorrow or the next day of some specified date.", "paramOrder": [ "1", "2", "3", "4", "days" ], "format": "inline" } </templatedata>
See also
Multiple units of time
| Type | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Date and time |
|
|
||
| Date only | ||||
| Month and year only |
|
| ||
| Time only |
|
|
||
| Banners |
|
|||
| Timestamp |
|
Single units of time
| Unit of time | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Second |
|
|||
| Minute |
|
|||
| Hour |
|
|||
| Week |
|
|||
| Day of Week |
|
|
||
| Month |
|
|
|
|
| Day of Month |
|
|||
| Year |
|
|
| |
| Day of Year |
|
|||
| Decade |
|
|
||
| Century |
|
|
||
| Millenium |
|
Date and time templates made for substitution
Parser functions
- mw:Special:MyLanguage/time permits a custom time specifier string, similar to the C date and time functions
Individual templates
- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
- {{Infobox calendar date today}}
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