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

Undid revision 660561574 by Jtbruce0514 (talk). Rv good faith edit made in error
No edit summary
(Undid revision 660561574 by Jtbruce0514 (talk). Rv good faith edit made in error)
Line 7: Line 7:
{{Ombox |type=content |style=margin-bottom:1.0em; |textstyle=color:#CC0000;font-weight:bold; |text=Do not use this template when the person's exact date of birth is disputed or unknown.}}
{{Ombox |type=content |style=margin-bottom:1.0em; |textstyle=color:#CC0000;font-weight:bold; |text=Do not use this template when the person's exact date of birth is disputed or unknown.}}


The '''{{tl|1986}}''' and '''{{tl|January 24, 1986 29}}''' 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.
Line 29: Line 29:


Examples
Examples
: <code><nowiki>{{January|1986|2|4|df=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|df=yes}}"
: <code><nowiki>{{Birth date|1993|2|4|df=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|df=yes}}"
: <code><nowiki>{{Birth date|1993|2|4|mf=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|mf=yes}}"
: <code><nowiki>{{Birth date|1993|2|4|mf=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|mf=yes}}"
: <code><nowiki>{{Birth date|1993|2|4}}</nowiki></code> returns "{{Birth date|1993|2|4}}"
: <code><nowiki>{{Birth date|1993|2|4}}</nowiki></code> returns "{{Birth date|1993|2|4}}"
Anonymous user