Jump to content

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

m (Reverted edits by Peterkwamie20003 (talk): using Wikipedia for advertising/promotion (HG) (3.4.10))
Line 1: Line 1:
{{Documentation subpage}}<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
This template will return a living person's date of birth and age. 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.
{{Warning|''Do '''NOT''' use this template when the exact date of birth is disputed or unknown; consider {{tlp|Birth year and age}} instead.''}}
{{High-use| 520,000 }}
{{Template shortcut|bda}}
{{Tracks Wikidata|P569}}
{{Lua|Module:Age|Module:Check for unknown parameters}}
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' will return a living person's date of birth and age. 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.


This template is intended for use in an article about a living person. For an article about a dead person, use {{tlp|Birth date}} with {{tlp|Death date and age}}.
This template is intended for use in an article about a living person. For an article about a dead person, use {{tlp|Birth date}} with {{tlp|Death date and age}}.
Line 92: Line 85:
: <code><nowiki>{{Birth date and age|Feb. 24, 1993}}</nowiki></code> returns "{{Birth date and age|Feb. 24, 1993}}"
: <code><nowiki>{{Birth date and age|Feb. 24, 1993}}</nowiki></code> returns "{{Birth date and age|Feb. 24, 1993}}"
: <code><nowiki>{{Birth-date and age|Feb. 24, 1993}}</nowiki></code> returns "{{Birth-date and age|Feb. 24, 1993}}"
: <code><nowiki>{{Birth-date and age|Feb. 24, 1993}}</nowiki></code> returns "{{Birth-date and age|Feb. 24, 1993}}"
== TemplateData ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "This template will return a living person's date of birth and age. 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.",
"params": {
"1": {
"label": "Year of birth",
"description": "The year in which the person was born",
"type": "number",
"example": "1993",
"required": true,
"aliases": [
"year"
]
},
"2": {
"label": "Month of birth",
"description": "The month (number) in which the person was born",
"type": "number",
"example": "2",
"required": true,
"aliases": [
"month"
]
},
"3": {
"label": "Day of birth",
"description": "The day (number) in which the person was born",
"type": "number",
"example": "24",
"required": true,
"aliases": [
"day"
]
},
"df": {
"label": "Day first",
"description": "When set to 'y' or 'yes', the date of birth is output in a DMY format",
"type": "string",
"example": "y",
"required": false
},
"mf": {
"label": "Month first",
"description": "When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of birth",
"type": "string",
"example": "y",
"required": false
}
}
}
</templatedata>
== References ==
{{reflist}}
== Tracking categories ==
* {{Category link with count|Pages using birth date and age template with unknown parameters}}
* {{Category link with count|Date of birth not in Wikidata}}
* {{Category link with count|Articles without Wikidata item}}
== See also ==
* {{tl|Birth year and age}} for year of birth, with optional parameter for month
* {{tl|Birth-date and age}} which accepts formats like "1 April 1990" or "April 1, 1990"
* {{tl|Birth date}} or {{tl|Birth-date}} for a deceased person
* {{tl|Recent birth}}
{{Birth, death and age templates}}
<includeonly>{{sandbox other||
<!----- CATEGORIES BELOW THIS LINE, PLEASE: ----->
[[Category:Date mathematics templates]]
[[Category:Templates generating microformat date and age]]
[[Category:Templates that add a tracking category]]
}}</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.