Template:Birth, death and age templates

There are a number of templates that you can use to set out a person's birth date or birth year, current age, death date or death year, and age at death. This is especially useful in infoboxes. Using these templates rather than simply inserting dates into articles allow hidden metadata about dates to be put into articles. Web browsers and other types of software can look up the metadata and use them for certain types of displays or searches.

The year, month and day of birth and death dates must be typed in numbers. If a number is smaller than ten, you do not have to type a zero before it (for example, you can type "7" instead of "07").

and
In and , the person's age is calculated based on the current date.

and
The templates and  show a person's year of birth or death and his or her approximate (rough) age. The templates are useful when only the year of a person's birth and/or death are known, or if you do not want to state a person's full dates of birth and death for privacy reasons.

The person's age is estimated in the following way:


 * – let us assume:
 * 1) that the person in question was born some time in ; and
 * 2) that the present date is 28 August 2024.


 * If the person was born after 28 August then he will be 23 years old on 28 August 2024 as he has not had his 55th birthday yet. On the other hand, if he was born exactly on or before 28 August, then he will be 55 years old.


 * Therefore, the template
 * displays his birth year and age as:


 * – let us assume:
 * 1) that the person in question was born some time in ; and
 * 2) that she died some time in.


 * We can think of two extremes: (1) that the person was born on 31 December and died on 1 January, in which case she would have been 49 years old at the time of her death as she did not achieve her 50th birthday on 31 December ; and (2) that she was born on 1 January  and died on 31 December , in which case she would have been 50 years old at the time of her death as she had her 50th birthday on 1 January.


 * Therefore, the template
 * shows her death year and age as:

Templates allowing day to be shown before month
The templates in the table below take an optional parameter "df" (which stands for "date first") – you can choose whether to use it or not. If "df=yes", then the day of the date is shown before the month. This is for articles about people from parts of the world where the day usually comes before the month in a date.