Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Additional parameters  





1.2  hCard microformat  





1.3  Notes  







2 Examples  





3 TemplateData  





4 Tracking categories  





5 See also  





6 References  














Template:Birth date






Afrikaans
Алтай тил
ि
العربية
Արեւմտահայերէն
Авар
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Basa Banyumasan
Башҡортса
Беларуская

Bikol Central
Български
Bosanski
Català
Čeština
Chamoru
ChiTumbuka
Corsu
Cymraeg
Dansk
Dolnoserbski

Eesti
Ελληνικά
Esperanto
Euskara
فارسی
Føroyskt
Gaeilge
Gagauz
Gàidhlig

Gungbe
/Hak-kâ-ngî

Հայերեն
ि
Hornjoserbsce
Hrvatski
Bahasa Hulontalo
Ilokano
Bahasa Indonesia
IsiZulu
Íslenska
עברית
Jawa


Қазақша
Kurdî
Кыргызча
Лезги
Lietuvių
ि
Македонски


مصرى

مازِرونی
Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Mirandés
Монгол



Нохчийн
Norsk bokmål
Occitan
Олык марий
ି
Oʻzbekcha / ўзбекча

Pangasinan

پښتو
Português
Română
Русиньскый
Русский
Саха тыла

Sardu
Scots
Shqip

Simple English
سنڌي
Slovenčina
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
ி
Татарча / tatarça
 

Тоҷикӣ
Türkçe
Удмурт
Українська
اردو
Tiếng Vit

Xitsonga
Yorùbá


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 

















Permanently protected template

From Wikipedia, the free encyclopedia
 


({{{year}}}-Expression error: Unrecognized punctuation character "{".-{{{day}}})January 1, 1900

Template:Birth date will return a person's date of birth. 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.

For an article about a living person, consider using {{Birth date and age}} instead.

Usage

Unnamed parameters for year, month, day
{{Birth date|year of birth|month of birth|day of birth|additional parameters}}
Named parameters for year, month, day
{{Birth date|year=year of birth|month=month of birth|day=day of birth|additional parameters}}

Additional parameters

The df (day first) and mf (month first) parameters indicate the intended date format to display. The appropriate parameter should be set to "y" or "yes", e.g. |df=yor|df=yes.

The default output of this template is to display the month before the day. This default may not be appropriate for articles about people from parts of the world where the day precedes the month in a date. In such articles the parameter, "df", should be set to display the day before the month.

The parameter "mf", while not actually used by the template, will indicate that month first format is intended. Using these parameters can assist bots or other automated processing to detect which date format is intended; leaving the format as default may lead an editor or bot to change the format to an unintended value.

Do not specify both "df" and "mf" parameters in the same use of the template, as these formats are mutually exclusive.

hCard microformat

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.

References

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

    Examples

    Unnamed parameters for year, month, day:

    Named parameters for year, month, day:

    TemplateData

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

    TemplateData for Birth date

    This template will return a person's date of birth. 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
    Year of birth1 year

    The year in which the person was born.

    Example
    1993
    Numberrequired
    Month of birth2 month

    The month (number) in which the person was born.

    Example
    2
    Numberrequired
    Day of birth3 day

    The day (number) in which the person was born.

    Example
    24
    Numberrequired
    Day firstdf

    When set to 'y' or 'yes', the date of birth is output in a DMY format.

    Example
    y
    Stringoptional
    Month firstmf

    When set to 'y' or 'yes', stresses that the default MDY date format is intended for the date of birth.

    Example
    y
    Stringoptional

    Tracking categories

    See also

    References


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

    Categories: 
    Templates tracking Wikidata
    Templates based on the String Lua module
    Date mathematics templates
    Templates generating microformat dates
    Hidden categories: 
    Wikipedia template-protected templates
    Templates using TemplateData
    Templates that add a tracking category
     



    This page was last edited on 23 April 2020, at 08:58 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki