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