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

no edit summary
(This documentation is confusing and needs a rewrite that covers the various templates. I added a small clarification.)
No edit summary
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|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|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.


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>{{Birth date|1993|2|4|df=yes}}</nowiki></code> returns "{{Birth date|1993|2|4|df=yes}}"
: <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|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