टेम्पलेट:BirthDeathAge: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
छो moved Template:AgeDOBDOD to Template:BirthDeathAge: as per good name suggested on talk
documention
लाइन 50:
}}
}}
 
<noinclude>
 
{{mergefrom|Hcard-bday|Template_talk:Birth_date_and_age#Edit_request}}
<includeonly>{{template doc page transcluded|Template:Birth date and age}}</includeonly>
<noinclude>{{template doc page viewed directly}}</noinclude>
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
-->
==Usage==
This templates combines the functionality of
 
*{{tl|Death date}}
*{{tl|Death date and age}} &ndash; same as {{tl|Death date}}, except that "(aged ##)" appears after the death date
*{{tl|Birth year and age}} &ndash; year of birth and approximate age
*{{tl|Death year and age}}
 
into one template
 
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:
 
:<nowiki>{{AgeDOBDOD|switch leave blank for death or B for birth|year of birth|month of birth|day of birth|year of death|month of death|day of death}}</nowiki>
 
or
 
 
 
Examples:
 
<pre>{{BirthDeathAge|B|1976}}</pre>
{{BirthDeathAge|B|1976}}
<pre>{{BirthDeathAge|B|1976|6|6|1990|8|8}}</pre>
{{BirthDeathAge|B|1976|6|6|1990|8|8}}
<pre>{{BirthDeathAge|B|1976|6|6}}</pre>
{{BirthDeathAge|B|1976|6|6}}
===DOD===
<pre>{{BirthDeathAge||1976|6|6|1990|8|8}}</pre>
{{BirthDeathAge||1976|1|1|1990|8|8}}
<pre>{{BirthDeathAge||1976|||1990||}}</pre>
{{BirthDeathAge||1976|||1990||}}
<pre>{{BirthDeathAge|||||1890||}}</pre>
{{BirthDeathAge|||||1890||}}
<pre>{{BirthDeathAge|||||1990|8|8}}</pre>
{{BirthDeathAge|||||1990|8|8}}
<pre>{{BirthDeathAge||1976|||1990|8|8}}</pre>
{{BirthDeathAge||1976|||1990|8|8}}
 
 
==See also==
 
 
*[[Wikipedia:Age calculation templates]]
*{{tl|Death date}}
*{{tl|Death date and age}} &ndash; same as {{tl|Death date}}, except that "(aged ##)" appears after the death date
*{{tl|Birth year and age}} &ndash; year of birth and approximate age
*{{tl|Death year and age}} &ndash; year of death and approximate age at death