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

विकिपीडिया से
Jump to navigation Jump to search
BadSalzdetfurthBadenburgerStr060529.jpg

{{Birth-date and age}} displays a person's birth date and age. Besides calculating the age of the person, the benefit of using this template is to allow for the inclusion of hidden microformat dates, which may be indexed or searched by software tools.

Note: The template may not calculate the age correctly if a full date (month, day, year) is not provided. For example, a person who was born in 1941 could be either 78 or 79, depending on whether they have reached their birthday in the current year:

{{Birth-date and age|1941}} → 1941 (1941) (age 79)
{{Birth-date and age|जून 1941}} → Not recognized as a date. Years must have 4 digits (use leading zeros for years < 1000). (age एक्सप्रेशन खराबी: < आपरेटर जेकर उमेद ना रहल।)

When only the year is known, consider using {{Birth year and age}} instead:

{{Birth year and age|1941}} → 1941 (उमिर 78–79)
{{Birth year and age|1941|6}} → जून 1941 (उमिर 78–79)

Usage[संपादन]

Format
{{Birth-date and age| birth date }}
{{Birth-date and age| birth date | wikitext to display in place of 'birth date'. Like the right hand parameter in a wikilink, this could be alternate text, links, templates etc. }}

उदाहरण[संपादन]

Examples of {{Birth-date and age}} (colors for emphasis only)
Month first format: Sample below displays April 12, 1941 (1941-04-12) (age 79), with invisible microformat date: 1941-04-12
{{Birth-date and age|April 12, 1941}}
Day first format: Sample below displays 12 April 1941 (1941-04-12) (age 79), with invisible microformat date: 1941-04-12
{{Birth-date and age|12 April 1941}}
Year only, year and month only: Sample below displays 1941 (1941) (age 79), with invisible microformat date: 1941
{{Birth-date and age|1941}}
Demo of ISO date, as well as alternate displays. Sample below displays Twelfth of April, 1941 (1941-04-12) (age 79), with invisible microformat date: 1941-04-12
{{Birth-date and age|1941-04-12|Twelfth of April, 1941}}

Parameters[संपादन]

{{birth-date and age|birth date|additional parameters}}
Parameter Default
(required) 1 Birth date. May be year only, year and month, year month and day, expressed in natural formats: e.g.: 24 August 1953, 1955-08-25, Sunday, December 7, 1941. If parameter three is not specified, the birth date is displayed in exactly this format. This value as well as parameter 2 may not include links. If links or templates that do not evaluate as recognizable dates are desired, use parameter 2.
(optional) 2 The birth date to display. This may include links or templates, or any combination of them, and overrides parameter 1. parm 1
(optional) bce If birth date is BC, set to "b".
(optional) gregorian If Julian date is used, this parameter is required. The date provided is used for emitting the correct microformat translation of the birth date. parm 1
(optional) dt This value if present is the ISO8601 value emitted to indicate microformat birth date. It overrides any calculated value.

इहो देखल जाय[संपादन]
https://bh.wikipedia.org/wiki/%E0%A4%9F%E0%A5%87%E0%A4%AE%E0%A5%8D%E0%A4%AA%E0%A4%B2%E0%A5%87%E0%A4%9F:Birth-date_and_age
bh.wikipedia.org
crawl=CC-MAIN-2020-24
72949
application/http; msgtype=response
sha1:LUUREGH237UPX4CA5BFJBNMUWFQLJU2L
<urn:uuid:dc7f5def-38d5-4c9c-b1a4-17eec4889487>
2020-06-04T01:52:54Z
208.80.154.224
text/html
sha1:IBBZNRJ24VTRHPPKOMNE2T3BRB5N4GZT
<urn:uuid:e8e4c552-2d7e-4afb-bad6-70c43e40867a>
https://bh.wikipedia.org/wiki/%E0%A4%9F%E0%A5%87%E0%A4%AE%E0%A5%8D%E0%A4%AA%E0%A4%B2%E0%A5%87%E0%A4%9F:Birth-date_and_age
response
<urn:uuid:28a57d95-58a5-4f5a-9fda-f239bfe63ca9>
isPartOf: CC-MAIN-2020-24
publisher: Common Crawl
description: Wide crawl of the web for May/June 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-5.ec2.internal
software: Apache Nutch 1.16 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/