Template:Date-calc: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 2: Line 2:
{{#if:{{{date|}}}|
{{#if:{{{date|}}}|
{{#ifeq:{{{operation|}}}|add|
{{#ifeq:{{{operation|}}}|add|
{{#time: j F Y|{{{date}}}+{{{days|1}}} days}}
{{#time: Y-m-d|{{{date}}}+{{{days|1}}} days}}
}}
}}
{{#ifeq:{{{operation|}}}|subtract|
{{#ifeq:{{{operation|}}}|subtract|
{{#time: j F Y|{{{date}}}-{{{days|1}}} days}}
{{#time: Y-m-d|{{{date}}}-{{{days|1}}} days}}
}}
}}
{{#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}}
}}
}}
}}
}}
}}