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
mNo edit summary
m (Undo revision 399432 by ShadeTempest (talk))
Line 1: Line 1:
{{#expr:({{CURRENTYEAR}})-({{{1}}})-(({{CURRENTMONTH}})<({{{2}}})or({{CURRENTMONTH}})=({{{2}}})and({{CURRENTDAY}})<({{{3}}}))}}<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>
===Usage===
===Usage===



Revision as of 19:19, 28 December 2019

Expression error: Unrecognized punctuation character "{".

Usage

{{Yearssince|YYYY|MM|DD}}

Returns integer value of years since the given date

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