• होम
  • अट्रेंडम
  • आसपास
  • खाता में प्रवेश
  • सेटिंग्स
Donate Now If Wikipedia is useful to you, please give today.
  • विकिपीडिया के बारे में
  • नामंजूरी
विकिपीडिया

टेम्पलेट:Birth date and age

  • भाषा
  • धियानसूची में डालीं
  • संपादन करीं
Template documentation[view] [edit] [history] [purge]
Do NOT use this template when the person's exact date of birth is disputed or unknown; consider {{birth year and age}} instead.

The {{Birth date}} and {{Birth date and age}} templates will return a person’s date of birth and optionally his/her age. They have the shortcuts {{dob}} and {{bda}}, respectively.

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.

बिसयसूची

  • 1 सिंटेक्स
    • 1.1 To display the birth date only
    • 1.2 {{dob}} is a redirect to {{Birth date}}
    • 1.3 To display a birth date with calculated age
    • 1.4 {{Bda}} is a redirect to {{Birth date and age}}
    • 1.5 "month first" (mf) and "day first" (df) options
  • 2 hCard microformat
  • 3 Notes
  • 4 Error tracking
  • 5 इहो देखल जाय
    • 5.1 References
    • 5.2 TemplateData

सिंटेक्स

संपादन करीं

To display the birth date only

संपादन करीं
{{Birth date|year of birth|month of birth|day of birth|additional parameters}}

Do not use with non-Gregorian dates because the resulting hCard hidden date will be false.

{{dob}} is a redirect to {{Birth date}}

संपादन करीं
{{dob|year of birth|month of birth|day of birth|additional parameters}}

To display a birth date with calculated age

संपादन करीं
{{Birth date and age|year of birth|month of birth|day of birth|additional parameters}}

This form is only intended for living persons. For dead persons, use {{birth date}}. In the rare case that a living person's birth date is given in a non-Gregorian calendar this template should not be used. The parameter names 'year', 'month', and 'day' can be used instead of the first, second, and third parameters for 'Birth date and age' only. These parameter names are not available for the 'Birth date' template. However, as per WP:DOB, a full birth date for a living person should only be displayed when it can be cited as being widely published, or published with the clear approval of the person involved. Otherwise, use {{birth year and age}} instead.

{{Bda}} is a redirect to {{Birth date and age}}

संपादन करीं
{{Bda|year of birth|month of birth|day of birth|additional parameters}}

Examples

{{Birth date|1993|2|4|df=yes}} returns "(1993-02-04)4 फरवरी 1993"
{{Birth date|1993|2|4|mf=yes}} returns "(1993-02-04)फरवरी 4, 1993"
{{Birth date|1993|2|4}} returns "(1993-02-04)फरवरी 4, 1993"
{{Birth date|1993|2|24|df=yes}} returns "(1993-02-24)24 फरवरी 1993"
{{Birth date|1993|2|24|mf=yes}} returns "(1993-02-24)फरवरी 24, 1993"
{{Birth date|1993|2|24}} returns "(1993-02-24)फरवरी 24, 1993"
{{Birth date and age|1993|2|4|df=yes}} returns (1993-02-04) 4 फरवरी 1993 (उमिर 32)
{{Birth date and age|1993|2|4|mf=yes}} returns (1993-02-04) फरवरी 4, 1993 (उमिर 32)
{{Birth date and age|1993|2|4}} returns (1993-02-04) फरवरी 4, 1993 (उमिर 32)
{{Birth date and age|1993|2|24|df=yes}} returns (1993-02-24) 24 फरवरी 1993 (उमिर 32)
{{Birth date and age|1993|2|24|mf=yes}} returns (1993-02-24) फरवरी 24, 1993 (उमिर 32)
{{Birth date and age|1993|2|24}} returns (1993-02-24) फरवरी 24, 1993 (उमिर 32)

"month first" (mf) and "day first" (df) options

संपादन करीं

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=yes or mf=y.

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.

Examples

{{Birth date|1993|2|24|df=yes}} displays "(1993-02-24)24 फरवरी 1993".
{{Birth date and age|1993|2|24|df=yes}} displays " (1993-02-24) 24 फरवरी 1993 (उमिर 32)".
{{Birth date|1993|2|24|mf=yes}} displays "(1993-02-24)फरवरी 24, 1993".
{{Birth date and age|1993|2|24|mf=yes}} displays " (1993-02-24) फरवरी 24, 1993 (उमिर 32)".

hCard microformat

संपादन करीं

The templates 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

संपादन करीं
  • The template will appear broken when the parameters are left blank (as seen above).

When only the month or year of a person's birth and/or death are known, or if it is desired not to state a person's full dates of birth and death for privacy reasons, use the templates {{Birth year and age}} and {{Death year and age}} instead.

Error tracking

संपादन करीं

Some kinds of invalid input are tracked in Category:Pages using age template with invalid date.

इहो देखल जाय

संपादन करीं
  • {{Birth date}}
  • {{Recent birth}}
  • {{Birth-date and age}} which also accepts formats like "1 April 1990"

References

संपादन करीं
  1. ↑ "Date Design Pattern". Microformats Wiki. April 7, 2013.
  2. ↑ "hCalendar closed issues". Microformats Wiki. August 28, 2009. Specifically rejects supporting the Julian calendar.

TemplateData

संपादन करीं
This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Birth date and age

This template returns a living person's date of birth and current age.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Year of birth1 year

The year in which the person was born

Numberrequired
Month of birth2 month

The month (number) in which the person was born

Numberrequired
Day of birth3 day

The day (number) in which the person was born

Numberrequired
Day firstdf

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

Stringoptional
Month firstmf

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

Stringoptional


  • दे
  • बा
  • सं
Birth, death and age templates
Birth, death, age
Template  Description / use 
{{BirthDeathAge}} Combines functions of {{birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}} and {death year and age}}.
{{birth date}} To display a birth date and related hidden metadata.
{{birth-date}}
{{birth date and age}} {{birth date}} with suffix "(age N)".
{{birth date and age2}} {{birth date and age}} plus age as of a specified date.
{{birth-date and age}} As {{birth date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
{{birth year and age}} Year of birth and approximate age.
{{Birth based on age as of date}} To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
{{Birth date based on age at death}} To display approximate birth year based on age at death.
Template  Description / use 
{{death date}} To display a death date and related hidden metadata.
{{death-date}}
{{death date and age}} {{death date}} with suffix "(aged N)".
{{death-date and age}} As {{death date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
{{death date and given age}} To display a death date and specified age.
{{death year and age}} To display a year of and approximate age at death.
Age only
Template  Description / use 
{{age in years, months and days}} Number of complete years, months and days between two dates.
{{age in years and months}} Number of complete years and remaining months between two dates.
{{age in years and days}} Number of complete years and remaining days between two dates.
{{age in days}} Age in days between two dates.
{{age in days nts}} {{age in days}} with output formatted for use in sortable tables.
Template  Description / use 
{{age}} Age based on number of complete years between two dates.
{{age nts}} {{age}} with output formatted for use in sortable tables.
{{age as of date}} Current age (in years) from a known age at a specified date.
Start / end dates
Template  Description / use 
{{start date}} / {{end date}}
{{start-date}} / {{end-date}}
{{start date and age}}
{{end date and age}}
  • About age calculation templates
  • Date mathematics templates
The above documentation is transcluded from टेम्पलेट:Birth date and age/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://bh.wikipedia.org/w/index.php?title=टेम्पलेट:Birth_date_and_age&oldid=560324" से लिहल गइल
Last edited on 23 अप्रैल 2018, at 22:44

Languages

    • Afrikaans
    • ak:Nhwɛsode:Birth date and age
    • Pangcah
    • Ænglisc
    • العربية
    • مصرى
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • Bikol Central
    • Беларуская
    • Беларуская (тарашкевіца)
    • Български
    • ပအိုဝ်ႏဘာႏသာႏ
    • বাংলা
    • Bosanski
    • Català
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Нохчийн
    • Cebuano
    • کوردی
    • Čeština
    • Cymraeg
    • Dansk
    • Zazaki
    • Dolnoserbski
    • डोटेली
    • ދިވެހިބަސް
    • Ελληνικά
    • English
    • Esperanto
    • Eesti
    • Euskara
    • فارسی
    • Mfantse
    • Suomi
    • Føroyskt
    • Français
    • Arpetan
    • Gaeilge
    • Gagauz
    • Gàidhlig
    • गोंयची कोंकणी / Gõychi Konknni
    • Bahasa Hulontalo
    • ગુજરાતી
    • Gungbe
    • 客家語 / Hak-kâ-ngî
    • हिन्दी
    • Hrvatski
    • Hornjoserbsce
    • Magyar
    • Հայերեն
    • Bahasa Indonesia
    • Igbo
    • Ilokano
    • Íslenska
    • Italiano
    • 日本語
    • Jawa
    • ქართული
    • Kabɩyɛ
    • Kumoring
    • Gĩkũyũ
    • Қазақша
    • Kalaallisut
    • ភាសាខ្មែរ
    • ಕನ್ನಡ
    • 한국어
    • Kurdî
    • Кыргызча
    • ລາວ
    • Latviešu
    • मैथिली
    • Олык марий
    • Minangkabau
    • Македонски
    • മലയാളം
    • Монгол
    • ဘာသာမန်
    • मराठी
    • Bahasa Melayu
    • Malti
    • မြန်မာဘာသာ
    • مازِرونی
    • नेपाली
    • नेपाल भाषा
    • Nederlands
    • Norsk nynorsk
    • Norsk bokmål
    • Occitan
    • ଓଡ଼ିଆ
    • Ирон
    • ਪੰਜਾਬੀ
    • Pangasinan
    • Kapampangan
    • پنجابی
    • پښتو
    • Português
    • Română
    • Tarandíne
    • Русский
    • संस्कृतम्
    • Саха тыла
    • Scots
    • سنڌي
    • Srpskohrvatski / српскохрватски
    • တႆး
    • සිංහල
    • Simple English
    • Slovenčina
    • سرائیکی
    • Slovenščina
    • Anarâškielâ
    • Shqip
    • Српски / srpski
    • Sranantongo
    • Sunda
    • Svenska
    • Sakizaya
    • தமிழ்
    • తెలుగు
    • Тоҷикӣ
    • ไทย
    • Türkmençe
    • Tagalog
    • Türkçe
    • Xitsonga
    • Татарча / tatarça
    • ChiTumbuka
    • Українська
    • اردو
    • Oʻzbekcha / ўзбекча
    • Vèneto
    • Tiếng Việt
    • 吴语
    • ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
    • 中文
    • 閩南語 / Bân-lâm-gú
    • 粵語
    विकिपीडिया
    • Wikimedia Foundation
    • Powered by MediaWiki
    • एह पन्ना पर आखिरी बेर संपादन 23 अप्रैल 2018 के 22:44 बजे भइल रहल।
    • सामग्री CC BY-SA 4.0 की तहत उपलब्ध बा जबले कि अलगा से बतावल न गइल होखे।
    • गोपनीयता नीति
    • विकिपीडिया के बारे में
    • नामंजूरी
    • Code of Conduct
    • डेवलपर लोग
    • आँकड़ा
    • कुकी इस्टेटमेंट
    • उपयोग के शर्त कुल
    • डेस्कटॉप