ATTENTION: An Animal Crossing Wiki from Miraheze will be at a new website at animalcrossing.indyamos.com. This will be an enhanced version of this wiki. Please view Special:Diff/57616 for more information.

Template:Yearssince: Difference between revisions

From Animal Crossing Wiki
Jump to navigationJump to search
(Fixed)
m (10 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#ifexpr: {{CURRENTMONTH1}} > {{{2}}} | {{#expr: {{CURRENTYEAR}} - {{{1}}} }} | {{#ifexpr: {{CURRENTMONTH1}} = ({{{2}}}) | {{#ifexpr: {{CURRENTDAY}} > ({{{3}}}-1) | {{#expr: {{CURRENTYEAR}} - {{{1}}} }} | {{#expr: {{CURRENTYEAR}} - ({{{1}}}+1)}}}} | {{#expr: {{CURRENTYEAR}} - ({{{1}}}+1) }}}}}}<noinclude>
{{#ifexpr: {{CURRENTMONTH1}} > {{{2}}} | {{#expr: {{CURRENTYEAR}} - {{{1}}} }} | {{#ifexpr: {{CURRENTMONTH1}} = ({{{2}}}) | {{#ifexpr: {{CURRENTDAY}} > ({{{3}}}-1) | {{#expr: {{CURRENTYEAR}} - {{{1}}} }} | {{#expr: {{CURRENTYEAR}} - ({{{1}}}+1)}}}} | {{#expr: {{CURRENTYEAR}} - ({{{1}}}+1) }}}}}}<noinclude>[[Category:Date templates]]
===Usage===
===Usage===



Latest revision as of 11:55, 6 October 2024

Expression error: Unrecognized punctuation character "{".

Usage

{{Yearssince|YYYY|MM|DD}}

Returns integer value of years since the given date

{{Yearssince|2000|01|01}} → 26