Changes
Jump to navigation
Jump to search
no edit summary
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<code>{{[[Template:Day-1|{{lcfirst:Day-1}}]]}}</code> subtracts one from a date or date-specific pagename
=== Usage ===
<!-- Abstract usage of the template -->
<code>{{Day-1}}</code> - returns yesterday's date
<code>{{Day-1|date}}</code> - returns the day before the 'date' passed
<code>{{Day-1|date|pagename|year|spacingchar}}</code> - returns the name of the page one day before the 'datepage' passed in
;Example
<!-- for the documentation don't subst the result -->
{| class="wikitable"
| '''Code'''
| '''Result'''
|-
| style="vertical-align:top;" | <code>{{Day-1}}</code>
| {{Day-1}}
|-
| style="vertical-align:top;" | <code>{{Day-1|February 28}}</code>
| {{Day-1|February 28}}
|-
| style="vertical-align:top;" | <code>{{Day-1|February 28|Wikipedia:Today's featured article/|2004}}</code>
| {{Day-1|February 28|Wikipedia:Today's featured article/|2004}}
|-
| style="vertical-align:top;" | <code>{{day-1|{{day-1}}}}</code>
| {{day-1|{{day-1}}}}
|-
| style="vertical-align:top;" | <code>{{day-1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}</code>
| {{day-1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}
|-
| style="vertical-align:top;" | <code>''[http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day-1|4=_}},_{{CURRENTYEAR}}&action=edit Edit]''</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>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<code>{{[[Template:Day-1|{{lcfirst:Day-1}}]]}}</code> subtracts one from a date or date-specific pagename
=== Usage ===
<!-- Abstract usage of the template -->
<code>{{Day-1}}</code> - returns yesterday's date
<code>{{Day-1|date}}</code> - returns the day before the 'date' passed
<code>{{Day-1|date|pagename|year|spacingchar}}</code> - returns the name of the page one day before the 'datepage' passed in
;Example
<!-- for the documentation don't subst the result -->
{| class="wikitable"
| '''Code'''
| '''Result'''
|-
| style="vertical-align:top;" | <code>{{Day-1}}</code>
| {{Day-1}}
|-
| style="vertical-align:top;" | <code>{{Day-1|February 28}}</code>
| {{Day-1|February 28}}
|-
| style="vertical-align:top;" | <code>{{Day-1|February 28|Wikipedia:Today's featured article/|2004}}</code>
| {{Day-1|February 28|Wikipedia:Today's featured article/|2004}}
|-
| style="vertical-align:top;" | <code>{{day-1|{{day-1}}}}</code>
| {{day-1|{{day-1}}}}
|-
| style="vertical-align:top;" | <code>{{day-1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}</code>
| {{day-1|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}}
|-
| style="vertical-align:top;" | <code>''[http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day-1|4=_}},_{{CURRENTYEAR}}&action=edit Edit]''</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>