![]() | 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-08-18.
{{age for infant|2024|7|17}}
→ 1 month 1 day{{age for infant|2024|1|1}}
→ 7 months 17 days{{age for infant|2022|7|17}}
→ 2 years 1 month{{age for infant|2019|1|1}}
→ 5 years