Template:Date-calc: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{Documentation}}</noinclude> |
|||
{{#invoke:DateMath|calculate}} |
|||
{{#if: {{{date|}}} | |
|||
{{#ifeq: {{{operation|}}} | add | |
|||
{{#time: j F Y | {{{date}}} + {{{days|0}}} days + {{{weeks|0}}} weeks + {{{months|0}}} months }} |
|||
}} |
|||
{{#ifeq: {{{operation|}}} | subtract | |
|||
{{#time: j F Y | {{{date}}} - {{{days|0}}} days - {{{weeks|0}}} weeks - {{{months|0}}} months }} |
|||
}} |
|||
| Please specify a valid date and operation (add or subtract). |
|||
}} |
|||