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

add note that {{birth date and age}} uses Module:Age, update rounded transclusion counts
(→‎TemplateData: add 2nd date option (=age-at date))
(add note that {{birth date and age}} uses Module:Age, update rounded transclusion counts)
Line 1: Line 1:
{{Documentation subpage}}<includeonly>
{{Documentation subpage}}
{{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Birth date and age
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
  | {{High-risk|470,000+}} <!--(Template:Birth date and age)-->
{{Warning|''Do '''NOT''' use this template when the person's exact date of birth is disputed or unknown; consider {{tlp|birth year}} or {{tlp|birth year and age}} instead.''}}
| {{High-risk|222,000+}} <!--(Template:Birth date)-->
<includeonly>{{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Birth date and age
  |<!--Birth date and age--> {{High-risk|520,000+}} {{Lua|Module:Age}}
|<!--Birth date--> {{High-risk|230,000+}}
}}</includeonly>
}}</includeonly>
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{Warning |''Do '''NOT''' use this template when the person's exact date of birth is disputed or unknown; consider {{tl|birth year and age}} instead.''}}


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.
Anonymous user