Template:Date-calc: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary |
||
| (9 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: |
{{#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 }} |
||
}} |
|||
}} |
|||
{{#if:{{{date|}}}| |
|||
{{#ifeq:{{{operation|}}}|add| |
|||
{{#time: d/m/Y|{{#time:Y-m-d}}+{{{days|1}}} days}} |
|||
}} |
|||
{{#ifeq:{{{operation|}}}|subtract| |
|||
{{#time: d/m/Y|{{#time:Y-m-d}}-{{{days|1}}} days}} |
|||
}} |
}} |
||
| Please specify a valid date and operation (add or subtract). |
|||
}} |
}} |
||
Latest revision as of 17:23, 17 December 2024
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''. Please specify a valid date and operation (add or subtract).