Open main menu

Changes

no edit summary
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

<code>{&#123;[[Template:Day+1|{{lcfirst:Day+1}}]]&#125;}</code> adds one to a date or date-specific pagename

=== Usage ===
<!-- Abstract usage of the template -->

<code>{&#123;Day+1&#125;}</code> - returns tomorrow's date

<code>{&#123;Day+1|date&#125;}</code> - returns the day after the 'date' passed

<code>{&#123;Day+1|date|pagename|year|spacingchar&#125;}</code> - returns the name of the page one day after the 'datepage' passed in

;Example
<!-- for the documentation don't subst the result -->
{| class="wikitable"
| '''Code'''
| '''Result'''
|-
| style="vertical-align:top;" | <code>{&#123;Day+1&#125;}</code>
| {{Day+1}}
|-
| style="vertical-align:top;" | <code>{&#123;Day+1&#124;February 28&#125;}</code>
| {{Day+1|February 28}}
|-
| style="vertical-align:top;" | <code>{&#123;Day+1&#124;February 28&#124;Wikipedia:Today's featured article/&#124;2004&#125;}</code>
| {{Day+1|February 28|Wikipedia:Today's featured article/|2004}}
|-
| style="vertical-align:top;" | <code>{&#123;day+1|{&#123;day+1&#125;}&#125;}</code>
| {{day+1|{{day+1}}}}
|-
| style="vertical-align:top;" | <code>{&#123;day+1|{&#123;Currentmonthday&#125;}|Wikipedia:Today's featured article/|{&#123;CURRENTYEAR&#125;}&#125;}</code>
| {{day+1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}
|-
| style="vertical-align:top;" | <code>&#39;'&#91;http:&#47;/en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{&#123;day+1|4=_&#125;},_{&#123;CURRENTYEAR&#125;}&action=edit Edit&#93;'&#39;</code>
| ''[//en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day+1|4=_}},_{{CURRENTYEAR}}&action=edit Edit]''
|}

=== See also ===
<!-- self-listing for quick access on edit history -->

* {{Lts|day-1}}

{{Date and time templates}}

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- self-listing for quick access on edit history -->

[[Category:Date mathematics templates|Day+1]]
[[Category:Date-computing templates based on current time|Day+1]]
</includeonly>
Anonymous user