قالب:Death date text
| This template is used on approximately 8٬600 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page قبل تنفيذهم. |
| Uses Lua: |

{{Start date text}}, {{Birth date text}}, {{End date text}}, and {{Death date text}} are easy to read "plain text" date and time templates that emit microformat dates for events. These templates are an alternative to the {{Start date}}/{{Birth date}} and {{End date}}/{{Death date}} templates that also emit microformats but require dates to be expressed as numbers, with a parameter for the year, another for the month, and so on. "Fuzzy" dates and times are supported. For events where the precise time, day or month is not known, the user may omit these details. Time zones are assumed to be local to the event. If time zone information is specified, the otherwise optional timezone parameter must be set.
Examples
Examples of {{Start date text}}, {{Birth date text}}, {{End date text}}, and {{Death date text}}.
Month / Day / Year
Samples below display December 7, 1941, and emit hidden microformat date: 1941-12-07
{{Start date text|December 7, 1941}}{{Birth date text|December 7, 1941}}{{End date text|December 7, 1941}}{{Death date text|December 7, 1941}}
Day / Month / Year
Samples below display 7 December 1941, and emit hidden microformat date: 1941-12-07
{{Start date text|7 December 1941}}{{Birth date text|7 December 1941}}{{End date text|7 December 1941}}{{Death date text|7 December 1941}}
Precise time
Samples below demonstrate how days, timezones and hours, minutes and seconds can be shown (order often not important). Displays 5:43PM HST, December 7, 1941, and emits hidden microformat date (corrected for UTC): 1941-12-08T03:43Z
{{Start date text|5:43PM HST, December 7, 1941|tz=y}}{{Birth date text|5:43PM HST, December 7, 1941|tz=y}}{{End date text|5:43PM HST, December 7, 1941|tz=y}}{{Death date text|5:43PM HST, December 7, 1941|tz=y}}
Location
Samples below demonstrate providing a location with local time to generate UTC value. Displays December 8, 1941 12:50PM Australia/Adelaide, and emits hidden microformat date (corrected for UTC): 1941-12-08 T03:20Z
{{Start date text|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}{{Birth date text|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}{{End date text|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}{{Death date text|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}
Julian calendar dates
Samples below demonstrate use of Julian calendar dates. Displays 9 June [ن.ق. 30 May] 1672, and emits hidden microformat date: 1672-06-09
{{Start date text|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}→ 9 June [ن.ق. 30 May] 1672{{Birth date text|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}→ 9 June [ن.ق. 30 May] 1672{{End date text|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}→ 9 June [ن.ق. 30 May] 1672{{Death date text|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}→ 9 June [ن.ق. 30 May] 1672
Microformat output
Start date templates:
{{Death date text}}
{{Death date text}}
Birth date templates:
{{Death date text}}
{{Death date text}}
End date templates:
{{Death date text}}
{{Death date text}}
Death date templates:
{{Death date text}}
{{Death date text}}
Parameters
|1=: (required) The date and time to display and to emit as a microformat date. If year is absent, the current year is assumed. If day is missing, the first of the month is assumed. If hour, or minutes are missing, zero is assumed. If time zone or location is missing, the local time of the event discussed in the article is assumed. See timezone parameter if UTC time is desired. Authors may specify place names (see list) or time zones such as EDT, PST, HST and so on and these will be properly adjusted to UTC (Coordinated Universal Time) for transfer to other applications via microformat encoding. Gregorian calendar dates are required. Display in Julian or Chinese calendar date is possible using parameter 2.|ISO8601=: (optional) if present, this ISO8601 date/time value is emitted instead of the value derived from parameter 1.|BCE=: (required for BCE dates) set to yes if the date is BC.|timezone=or|tz=: (required if timezone information specified) Set to yes if the time is UTC or if the location, timezone, or timezone offset is specified.
TemplateData
See the monthly error report for this template.
TemplateData for Death date text
لا وصف.
| وسيط | وصف | نوع | حالة | |
|---|---|---|---|---|
| 1 | 1 | دون وصف | غير معروف | مطلوب |
| 2 | 2 display | دون وصف | غير معروف | اختياري |
| ISO8601 | ISO8601 dt | دون وصف | غير معروف | اختياري |
| tz | tz timezone | set to "yes" when timezone is present, or when timzone UTC is implicit | بولياني | اختياري |
| BC | BC BCE | دون وصف | غير معروف | اختياري |
| class-extra | class-extra | دون وصف | غير معروف | اختياري |
Ambiguous times and dates
For the years 99 BC to 99AD especially, microformats may not be emitted properly unless expressed in the form YYYY-MM-DD. For users uninterested in microformats, it should be noted that this restriction has no known impacts other than microformat data which are currently invisible to users. The user of course may express the display form in the second parameter however they would like. Example: 1-2-3 is interpreted as February 3, 1 A.D, and emitted in that form via microformats when the user may have intended something else. Other 3 digit years may be misinterpreted as well, so best practice is to use leading zeros to make a 4 digit year for this date range. For example, February 274 will be interpreted as February 27, 2004. Instead, use "February 0274". Background: There is a good rationale for the behavior of the system function which actually does the hard work of this template. It is very unusual for people to mention such dates so long ago, so when we really mean this date, we must specify a 4 digit date. Outside of this period with ambiguous years, users may use free text dates without this restriction. Bot runs may make a conversion of non 4 digit years to 4 digits (with leading zeros) in order to refine Wikipedia's quality of microformat dates. These changes will not affect display, but for those curious, this is the rationale for such bot manipulations.
Time zones
Most time zone abbreviations as well as a large number of place names are recognized. (See recognized timezone values table.)
{{Start date text|December 7, 1941 8:43AM Pacific/Honolulu}}{{Start date text|December 8, 1941 12:30PM Asia/Manila}}
Tracking categories
Template transclusions with invalid parameters:
- Category:Pages using Start date text with unknown parameters (0)
- Category:Pages using Birth date text with unknown parameters (0)
- Category:Pages using End date text with unknown parameters (0)
- Category:Pages using Death date text with unknown parameters (0)
Dates not in Wikidata:
- Category:Date of birth not in Wikidata (0)
- Category:Date of death not in Wikidata (0)
- Category:Articles without Wikidata item (10)
See also
- {{Date-mf}}
- Birth, death, age
- {{BirthDeathAge}} – combines functions of {{Birth-date}}, {{Birth date}}, {{Birth date and age}}, {{Birth year and age}}, {{Death-date}}, {{Death date}}, {{Death date and age}}, {{Death year and age}}
- {{Birth date}} – displays the date and related hidden metadata
- {{Birth date and age}} – same as {{Birth date}}, except that "(age ##)" appears after the birth date
- {{Birth date and age2}} – displays birth date, plus age as of a specified date, "(aged ##)" appears after the birth date
- {{Birth-date and age}} – display birth date and age, accepts dates as text (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}} – displays approximate birth year and current age; used when a dated reference mentions the age of a person as of the date of publication
- {{Birth date based on age at death}} – displays approximate birth year based on age at death (useful if exact birth date is not known, but age at death is)
- {{Death date}} – displays the date and related hidden metadata
- {{Death date and age}} – same as {{Death date}}, except that "(aged ##)" appears after the death date
- {{Death-date and age}} – display death date and age, accepts date as text (15 June 1950; June 15, 1950; June 1950; etc.)
- {{Death date and given age}} – displays death date and specified age (useful if exact birth date is not known, but age at death is)
- {{Death year and age}} – year of death and approximate age at death
- Age only
- {{Age}} – age based on the number of full years between two dates (or a specified date and current date)
- {{Age nts}} – like {{Age}}, but sorts correctly in sortable tables
- {{Age as of date}} – current age in years, based on a known age as of a specified date
- {{Age in years and days}} – full years and days between two dates (or a specified date and current date)
- {{Age in years and days textual version}} – for usage in text (uses "and" instead of the comma)
- {{Age in years, months and days}} – full years, months and days between two dates (or a specified date and current date)
- {{Age in days}} – age in days between two dates (or a specified date and current date)
- {{Age in days nts}} – age in days; sorts correctly in sortable tables
| The above documentation is transcluded from قالب:Start date text/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |