Template:Birth date and age/doc: Difference between revisions

m
no edit summary
(→‎Notes: rm persondata mention)
mNo edit summary
Line 9: Line 9:
The '''{{tl|Birth date}}''' and '''{{tl|Birth date and age}}''' templates will return a person’s date of birth and optionally his/her age. They have the shortcuts '''{{tl|dob}}''' and '''{{tl|bda}}''', respectively.
The '''{{tl|Birth date}}''' and '''{{tl|Birth date and age}}''' templates will return a person’s date of birth and optionally his/her age. They have the shortcuts '''{{tl|dob}}''' and '''{{tl|bda}}''', respectively.


Using this template rather than simply inserting the date into articles allows for the inclusion of hidden [[metadata]] about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index or search them.
Using this template rather than simply inserting the date into articles allows for the inclusion of hidden [[metadata]] about the date. This metadata can be used by web browsers and other software tools to extract the details, and display them using some other website or mapping tool, index, or search them.


===Syntax===
===Syntax===
====To display the birth date only====
====To display the birth date only====
: <code><nowiki>{{Birth date|year of birth|month of birth|day of birth|additional parameters}}</nowiki></code>
: <code><nowiki>{{Birth date|year of birth|month of birth|day of birth|additional parameters}}</nowiki></code>