Difference between revisions of "Template:Datewarn"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(doc)
imported>Mr. Stradivarius
(move docs to Template:Datewarn/doc)
 
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}}}}}}}
+
{{month+1|{{{1|{{CURRENTMONTHNAME}}}}}}}{{{4| }}}{{daycap|{{{1|{{CURRENTMONTHNAME}}}}}|{{{2|{{CURRENTDAY}}}}}|{{{3|{{CURRENTYEAR}}}}}}},{{{4| }}}{{#ifeq: {{{1|{{CURRENTMONTHNAME}}}}}|December|{{#expr:{{{3|{{CURRENTYEAR}}}}}+1}}|{{{3|{{CURRENTYEAR}}}}}}}<noinclude>
<noinclude>{{doc|content=
+
{{documentation}}
 
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<code>{&#123;[[Template:{{PAGENAME}}|{{lcfirst:{{PAGENAME}}}}]]&#125;}</code> increases a date by one month
+
</noinclude>
 
 
== Usage ==
 
<!-- Abstract usage of the template -->
 
 
 
<code>{&#123;{{PAGENAME}}&#125;}</code> - displays a date one month after the current date
 
 
 
<code>{&#123;{{PAGENAME}}|monthname|day|year|spacingchar&#125;}</code> - displays a date one month after the specified date
 
 
 
== Example ==
 
<!-- for the documentation don't subst the result -->
 
{| class="wikitable"
 
| '''Code'''
 
| '''Result'''
 
|-
 
| valign="top" | <code>{&#123;{{PAGENAME}}&#125;}</code>
 
| {{msg:{{PAGENAME}}}}
 
|-
 
| valign="top" | <code>{&#123;{{PAGENAME}}&#124;December|31&#125;}</code>
 
| {{msg:{{PAGENAME}}|December|31}}
 
|-
 
| valign="top" | <code>{&#123;{{PAGENAME}}&#124;January|30|2004|_&#125;}</code>
 
| {{msg:{{PAGENAME}}|January|30|2004|_}}
 
|}
 
 
 
== See also ==
 
<!-- self-listing for quick access on edit history -->
 
 
 
* {{Lts|{{PAGENAME}}}}
 
* <!-- links to simlar of linked templates -->
 
 
 
[[Category:Date mathematics templates|{{PAGENAME}}]]
 
 
 
}}</noinclude>
 

Latest revision as of 03:57, 1 November 2014

Template:Month+1 21, 2026

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 21, 2026
{{Datewarn|December|31}} Template:Month+1 31, 2026
{{Datewarn|January|30|2004|_}} Template:Month+1_29,_2004

See also