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