Open main menu

Wikimedia Commons β

Template:Age/doc

< Template:Age

Provides age from date inputs

Usage

{{Age/doc |1= |2= |3= |4= |5= |6= }}

Example: {{age|1974|01|01}} gives 44, the age today of a person born on 01/01/1974. {{age|1974|01|01|1997|01|01}} gives 23, the age that person was on 01/01/1997.

Template parameters

ParameterDescriptionDefaultStatus
1start year (YYYY)emptyrequired
2month (MM)emptyrequired
3day (DD)emptyrequired
4end year (YYYY)emptyoptional
5month (MM)emptyoptional
6day (DD)emptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.