Actions

Template

Birth date and age/doc

From DramaWiki

< Template:Birth date and age
Revision as of 05:18, 4 February 2013 by Waf (talk | contribs)
This is a documentation subpage for Template:Birth date and age.

The {{Birth date and age}} template will return a person’s date of birth and optionally his/her age. It has the shortcut {{bda}}.

Syntax

To display a birth date with calculated age

{{Birth date and age|year of birth|month of birth|day of birth}}

This form is only intended for living persons. In the rare case that a living person's birth date is given in a non-Gregorian calendar this template should not be used. The parameter names 'year', 'month', and 'day' can be used instead of the first, second, and third parameters for 'Birth date and age' only.

{{Bda}} is a redirect to {{Birth date and age}}

{{Bda|year of birth|month of birth|day of birth}}

Examples:

{{Birth date and age|1993|2|24|mf=yes}} returns 1993-Feb-24 (age 33)
{{Birth date and age|1993|2|24|mf=yes}} returns 1973-Jun-04 (age 52)