Template:Age: Difference between revisions
Template page
More actions
create template |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly> | <includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude> | ||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 18:55, 30 January 2026
|
Produces a number in years between two specified dates, if no second date is specified using year2, month2, or day2 parameters, then it will use today's date.
- Syntax
{{age|year|month|day|year2|month2|day2}}or{{age|year|month|day}}or{{age|date|date2}}or{{age|date}}