Difference between revisions of "Template:Datewarn"
Jump to navigation
Jump to search
Template documentation[create]
imported>OlEnglish (this template doesn't seem very useful...) |
imported>Thumperward (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= |
| − | + | ||
| + | <code>{{[[Template:{{PAGENAME}}|{{lcfirst:{{PAGENAME}}}}]]}}</code> increases a date by one month | ||
| + | |||
| + | == Usage == | ||
| + | <!-- Abstract usage of the template --> | ||
| + | |||
| + | <code>{{{{PAGENAME}}}}</code> - displays a date one month after the current date | ||
| + | |||
| + | <code>{{{{PAGENAME}}|monthname|day|year|spacingchar}}</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>{{{{PAGENAME}}}}</code> | ||
| + | | {{msg:{{PAGENAME}}}} | ||
| + | |- | ||
| + | | valign="top" | <code>{{{{PAGENAME}}|December|31}}</code> | ||
| + | | {{msg:{{PAGENAME}}|December|31}} | ||
| + | |- | ||
| + | | valign="top" | <code>{{{{PAGENAME}}|January|30|2004|_}}</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}}]] | [[Category:Date mathematics templates|{{PAGENAME}}]] | ||
| − | </noinclude> | + | }}</noinclude> |
Revision as of 11:51, 21 February 2012
Template:Month+1 20, 2026
{{datewarn}} increases a date by one month
Usage
{{Datewarn}} - displays a date one month after the current date
{{Datewarn
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |