This template uses Lua: |
This template displays an age appropriate for an infant: months and days up to one year, years and months up to three years, and years beyond.
{{age for infant|abbr= yes/no|YEAROFBIRTH|MONTHOFBIRTH|DAYOFBIRTH}}
{{subst:age for infant|abbr= yes/no|YEAROFBIRTH|MONTHOFBIRTH|DAYOFBIRTH|CMPYEAR|CMPMONTH|CMPDAY}}
Wikipedia's current date is 2024-11-27.
{{age for infant|2024|10|26}}
→ 1 month 1 day{{age for infant|2024|1|1}}
→ 10 months 26 days{{age for infant|2022|10|26}}
→ 2 years 1 month{{age for infant|2019|1|1}}
→ 5 years