Difference between revisions of "Template:Datewarn"

From blackwiki
Jump to navigation Jump to search
imported>Cydebot
m (Robot - Removing category Templates using ParserFunctions per CFD at Wikipedia:Categories for discussion/Log/2008 August 21.)
imported>Mr. Stradivarius
(move docs to Template:Datewarn/doc)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{month+1|{{{1|{{CURRENTMONTHNAME}}}}}}}{{{4| }}}{{daycap|{{{1|{{CURRENTMONTHNAME}}}}}|{{{2|{{CURRENTDAY}}}}}|{{{3|{{CURRENTYEAR}}}}}}},{{{4| }}}{{#ifeq: {{{1|{{CURRENTMONTHNAME}}}}}|December|{{#expr:{{{3|{{CURRENTYEAR}}}}}+1}}|{{{3|{{CURRENTYEAR}}}}}}}<noinclude>[[Category:Date mathematics templates|{{PAGENAME}}]]
+
{{month+1|{{{1|{{CURRENTMONTHNAME}}}}}}}{{{4| }}}{{daycap|{{{1|{{CURRENTMONTHNAME}}}}}|{{{2|{{CURRENTDAY}}}}}|{{{3|{{CURRENTYEAR}}}}}}},{{{4| }}}{{#ifeq: {{{1|{{CURRENTMONTHNAME}}}}}|December|{{#expr:{{{3|{{CURRENTYEAR}}}}}+1}}|{{{3|{{CURRENTYEAR}}}}}}}<noinclude>
 
+
{{documentation}}
 
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 03:57, 1 November 2014

Template:Month+1 18, 2026

50px Template documentation[view] [edit] [history] [purge]

{{datewarn}} increases a date by one month

Usage

{{Datewarn}} - displays a date one month after the current date

{{Datewarn|monthname|day|year|spacingchar}} - displays a date one month after the specified date

Example

Code Result
{{Datewarn}} Template:Month+1 18, 2026
{{Datewarn|December|31}} Template:Month+1 31, 2027
{{Datewarn|January|30|2004|_}} Template:Month+1_29,_2004

See also