Jump to content

Template:Day+1/doc

From Calamity Wiki

{{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 9
{{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 10
{{day+1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}} Wikipedia:Today's featured article/October 9, 2026
''[http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day+1|4=_}},_{{CURRENTYEAR}}&action=edit Edit]'' Edit

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Day+1 in articles based on its TemplateData.

TemplateData for Day+1

Returns the date of tomorrow or the next day of some specified date.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
date1

A specific date to calculate the next day, as understood by {{#time}}

Default
{{CURRENTMONTHNAME}} {{CURRENTDAY}}
Example
February 28, 2004
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTDAY}}, {{subst:CURRENTYEAR}}
Stringoptional
page name2

A prefix to prepend before the returned date

Example
Wikipedia:Today's featured article/
Stringdeprecated
year3

Include (or repeat) the year to return an MDY date; omit to return just an MD date

Example
2004
Auto value
{{subst:CURRENTYEAR}}
Stringoptional
spacing char4

Separator to replace the spaces in the returned date

Default
Example
_
Stringdeprecated
daysdays

no description

Default
1
Numberdeprecated

See also

Multiple units of time

Type Adjustable Current Last Next
Date and time
Date only
Month and year only
Time only
  • {{Timeonly}} (Adjustable to 12 h format)
Banners
  • {{Right now}}
    (Blue with time and number of Wikipedia articles)
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

Individual templates

Categories of templates