سانچہ:Death-date and age

یہ سانچہ ویکی ڈیٹا خاصیت کو تلاش کرتا ہے: |
![]() | اس سانچے میں حسب ذیل لوا ماڈیول زیر استعمال ہے: |
{{Death-date and age}} displays a person's date of death and age at that date. Besides calculating the age at death, 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 at death correctly if full dates (month, day, year) are not provided. For example, a person who was born in 1941 and died in 1993 could have been either 51 or 52 on the day of their death, depending on whether they had reached their birthday in their death year:
{{Death-date and age|1993|1941}}
→ [[نقص اظہار: «{» کا غیر معروف تلفظ۔ ستمبر|نقص اظہار: «{» کا غیر معروف تلفظ۔ ستمبر]] 1993 (نقص اظہار: «{» کا غیر معروف تلفظ۔ سنہ){{Death-date and age|May 1993|May 1941}}
→ [[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] May 1993 (خطاء تعبیری: غیر تسلیم شدہ لفظ "may"۔ سنہ)
When only the years are known, consider using {{Death year and age}} instead:
{{سال وفات اور عمر|1993|1941}}
→ 1993ء (عمر 51–52){{سال وفات اور عمر|1993|1941|5}}
→ مئی 1993ء (عمر 51–52)
Usage
[ترمیم]- Format
{{Death-date and age| death date | birth date }}
{{Death-date and age| death date | birth date | death date display form with links, templates etc. }}
Examples
[ترمیم]Month first format: Sample below displays [[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] February 24, 1993 (خطاء تعبیری: غیر تسلیم شدہ لفظ "february"۔ سنہ), with invisible microformat dtend date: 1993-02-25
|
Day first format: Sample below displays [[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] 24 February 1993 (خطاء تعبیری: غیر تسلیم شدہ لفظ "february"۔ سنہ), with invisible microformat dtend date: 1993-02-25
|
Year only, year and month only: Sample below displays [[نقص اظہار: «{» کا غیر معروف تلفظ۔ ستمبر|نقص اظہار: «{» کا غیر معروف تلفظ۔ ستمبر]] 1993 (نقص اظہار: «{» کا غیر معروف تلفظ۔ سنہ), with invisible microformat dtend date: 1994
|
Julian dates demo. Sample below displays [[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] 30 May 1672 (خطاء تعبیری: غیر تسلیم شدہ لفظ "may"۔ سنہ), with invisible microformat dtend date: 1672-06-10
|
Extreme dates: birth date is BC, death date AD. Sample below displays [[خطاء تعبیری: غیر تسلیم شدہ لفظ "august"۔ جولائی|خطاء تعبیری: غیر تسلیم شدہ لفظ "august"۔ جولائی]] 0014-08-19 (نقص اظہار: «{» کا غیر معروف تلفظ۔ سنہ), with invisible microformat dtend date: 0014-08-20
|
Microformat output
[ترمیم]Death date and age templates:
[[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] [[{{{1}}}]] (نقص اظہار: «{» کا غیر معروف تلفظ۔ سنہ)
{{Death-date and age/sandbox}}
Error: expandTemplate: template "Death-date and age/sandbox" does not exist
[[نقص اظہار: «{» کا غیر معروف تلفظ۔ |نقص اظہار: «{» کا غیر معروف تلفظ۔ ]] [[{{{1}}}]] (نقص اظہار: «{» کا غیر معروف تلفظ۔ سنہ)
{{Death-date and age/sandbox}}
Error: expandTemplate: template "Death-date and age/sandbox" does not exist
Parameters
[ترمیم]{{Death-date and age|death date|birth date|additional parameters}}
Parameter | Default | ||
---|---|---|---|
(required) | 1 | Death 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 death 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 3. | – |
(required) | 2 | Birth date. For accurate results, if year and month only was specified for death date, year and month should be specified for birth date (that is, the degree of precision should be in agreement). Julian dates may be used, but both Death and Birth dates must be on the same calendar. | – |
(optional) | 3 | The death date to display. This may include links or templates, or any combination of them, and overrides parameter 1. | param 1 |
(optional) | bce | If birth date is BC, set to "b". If birth and death date are BC, set to "bd" or "d". | – |
(optional) | gregorian | If Julian dates are used, this parameter is required. The date provided is used for emitting the correct microformat translation of the death date. | param 1 |
(optional) | dt | This value if present is the ISO8601 value emitted to indicate microformat death (dtend) date. It overrides any calculated value. | – |
Unusual dates
[ترمیم]Julian dates
[ترمیم]This template emits data in hidden microformat form. Technically, the requirement of this format is that all dates throughout time be expressed in the same calendar (the ISO8601 standard specifies this as gregorian), so جولینی تقویم format dates cannot properly be used for this purpose. Proper emission of this invisible metadata requires that a عیسوی تقویم form be provided, even though properly speaking, gregorian dates did not exist prior to 1582. If accuracy of emission with microformats is a concern, the parameters death date and birth date that are displayed in the article may be provided in julian, and the correct gregorian death date form is provided in the "gregorian" parameter. Several calculators [1] that convert from Julian to Gregorian are available and are listed in the Julian calendar article. Example: Pope Adrian VI Special:PermanentLink/276562220:
- {{Death-date and age| September 14, 1523 | March 2, 1459 | gregorian= September 24, 1523}}
There are some rare circumstances where system limitations do not permit correct handling of a few dates. These should have no impact on correct age calculation except in extremely unusual circumstances. When these errors create incorrect microformat data, use the dt parameter.
- some dates that would be valid in a non-Gregorian context are treated as out-of-range dates and converted to the next-best in-range values. For example,
{{تاریخ2|30 February 1712}}
results in1 مارچ 1712ء
because – even though 30 February 1712 is a valid date in the Swedish calendar – February 1712 had only 29 days in the Gregorian calendar.- ten dates are not reformatted. These are 29 February & 1 March of the years 1000, 1100, 1300, 1400, 1500. The cause of this is the same as that of the Swedish 30 February 1712.
Dates with years less than 3 digits
[ترمیم]Some dates with less than three digits will not be recognized. In these cases, use YYYY-MM-DD format for both death and birth dates. Use Parameter 3 to display the death date in the desired format. It is permitted to specify year only, or year and month only.
Supporting templates
[ترمیم]Tracking categories
[ترمیم]- زمرہ:Death-date and age transclusions with invalid parameters (0)
- زمرہ:Date of death not in Wikidata (0) – added by Template:Death-date
- زمرہ:Articles without Wikidata item (6) – added by Template:Death-date and other templates
اوپر دی گئی دستاویز صفحہ سانچہ:Death-date and age/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |