(Created page with "{{Documentation}} <includeonly><onlyinclude>{{#expr:round({{Age|{{{1}}}|{{{2|}}}}} / 12)}}</onlyinclude></includeonly>") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude>{{#expr: | <includeonly><onlyinclude>{{#expr:({{Age|{{{1}}}|{{{2|}}}}} / 12) round 0}}</onlyinclude></includeonly> | ||
Revision as of 15:24, 6 May 2025
This template returns the number of full months between two dates, or between a specified date and today (UTC).
Usage
{{AgeM|year1|month1|day1|year2|month2|day2}}{{AgeM|year1|month1|day1}}{{AgeM|date1}}{{AgeM|date1|date2}}
Examples
- {{AgeM|1970|7|23|2003|7|14}} → Expression error: Unexpected < operator.
- {{AgeM|1989|7|23}} → Expression error: Unexpected < operator.
- {{AgeM|23 July 1989}} → 3
- {{AgeM|Template:Extract|Template:Extract}} → Expression error: Unexpected < operator.
If you use this template for calculating someone's AgeM at death or AgeM at a certain date (rather than their current AgeM), please substitute it into the page, for example: {{subst:AgeM|1989|7|23|2003|7|14}}.
Template:Birth, death and age templates
Template:Sandbox otherThe documentation above was transcluded from Template:AgeM/Documentation. [edit]
