Template:Bda/doc

From Len'en Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:Bda.
It contains usage information, categories and other content that is not part of the original template page.

{{Bda}} will return a person's date of birth and age. This template is intended for use in an article about a person.

Usage[edit source]

Unnamed parameters for year, month, day
{{Birth date and age|year of birth|month of birth|day of birth|additional parameters}}
{{year of birth|month of birth|day of birth|additional parameters}}
Named parameters for year, month, day
{{Birth date and age|additional parameters}}
{{bda|additional parameters}}

The df (day first) and mf (month first) parameters indicate the intended date format to display. The appropriate parameter should be set to "y" or "yes" e.g. |df=yes or |mf=y. Do not specify both "df" and "mf" parameters in the same use of the template, as these formats are mutually exclusive.

Notes[edit source]

  • The template will appear broken when the parameters are left blank.
  • If the age does not display correctly, edit the whole page and publish the edit without making any change and with no edit summary. That will update the age. The page can also be purged by appending &action=purge to the URL.

Examples[edit source]

Unnamed parameters for year, month, day
{{Bda|1985|9|13}} returns " (1985-09-13) September 13, 1985 (age 39)"
{{Bda|1985|9|13|df=yes}} returns " (1985-09-13) 13 September 1985 (age 39)"
{{Bda|1985|9|13|mf=yes}} returns " (1985-09-13) September 13, 1985 (age 39)"
Named parameters for year, month, day
{{Bda|year=1985|month=9|day=13}} returns " (1985-09-13) September 13, 1985 (age 39)"
{{Bda|year=1985|month=9|day=13|df=yes}} returns " (1985-09-13) 13 September 1985 (age 39)"
{{Bda|year=1985|month=9|day=13|mf=yes}} returns " (1985-09-13) September 13, 1985 (age 39)"