Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Birth date and age in years and days





Template  

Talk  



Language  

Watch  

Edit  





Template:Birth date and age in years and days will return a living person's date of birth and age in years and days. 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 {{Birth date}} with {{Death date and age}}.

Usage

edit
Unnamed parameters for year, month, day
{{Birth date and age|year, month, and day of birth}}

hCard microformat

edit

This template also returns the date, hidden by CSS, in the ISO 8601 standard.[1] [2] For example:

(<span class="bday">1993-02-24</span>)

Note: For the "foundation", "built" and similar set-up dates of companies, buildings etc., use {{start date}} (this will work for year-only or month-year dates). Because the ISO 8601 standard requires the Gregorian calendar, this template should not be used if the date is given in the Julian calendar.

For further information, visit the microformats project.

Notes

edit

Examples

edit
Output format
{{Birth date and age in years and days|1993-2-24}} returns "24 February 1993 (31 years, 115 days old)"
{{Birth date and age in years and days|Feb 24, 1993}} returns "24 February 1993 (31 years, 115 days old)"
{{Birth date and age in years and days|24 Feb 1993}} returns "24 February 1993 (31 years, 115 days old)"

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Birth date and age in years and days in articles based on its TemplateData.

TemplateData for Birth date and age in years and days

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Date of birth1

Year, month, and day in which the person was born. A variety of formats are accepted, see [[Template:Extract/doc#Date]] for format description.

Example
4 December 1991
Stringrequired

References

edit
  1. ^ "Date Design Pattern". Microformats Wiki. April 7, 2013.
  • ^ "hCalendar closed issues". Microformats Wiki. August 28, 2009. Specifically rejects supporting the Julian calendar.
  • See also

    edit

    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Birth_date_and_age_in_years_and_days&oldid=1192343700"
     



    Last edited on 28 December 2023, at 21:37  


    Languages

     



    This page is not available in other languages.
     

    Wikipedia


    This page was last edited on 28 December 2023, at 21:37 (UTC).

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop