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 (10 revisions imported)
 
(4 intermediate revisions by 3 users not shown)
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>[[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