Difference between revisions of "Template:Day+2/doc"

From blackwiki
Jump to navigation Jump to search
imported>The Transhumanist
(based on Template:Day+1/doc)
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 44: Line 44:
 
* {{Lts|day-1}}
 
* {{Lts|day-1}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- self-listing for quick access on edit history -->
 
<!-- self-listing for quick access on edit history -->
Line 50: Line 50:
 
[[Category:Date mathematics templates|Day+2]]
 
[[Category:Date mathematics templates|Day+2]]
 
[[Category:Date-computing templates based on current time|Day+2]]
 
[[Category:Date-computing templates based on current time|Day+2]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:52, 24 April 2020

{{day+2}} adds two to a date or date-specific pagename

Usage

{{Day+2}} - returns day after tomorrow's date

{{Day+2|date}} - returns the day 2 days after the 'date' passed

{{Day+2|date|pagename|year|spacingchar}} - returns the name of the page two days after the 'datepage' passed in

Example
Code Result
{{Day+2}} December 24
{{Day+2|February 28}} March 2
{{Day+2|February 28|Wikipedia:Today's featured article/|2004}} Wikipedia:Today's featured article/March 2, 2004
{{day+2|{{day+2}}}} December 26
{{day+2|{{Currentmonthday}}|Wikipedia:Today's featured article/|{{CURRENTYEAR}}}} Wikipedia:Today's featured article/December 24, 2025
''[http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia:POTD_row/{{day+2|4=_}},_{{CURRENTYEAR}}&action=edit Edit]'' Edit

See also