الگو:End-date

از ویکی‌پدیا، دانشنامهٔ آزاد

۱ مارس ۲۰۲۴&#۱۶۰;(۰۰۰۹-۱۲)

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

{{Start-date}}, {{Birth-date}}, {{End-date}}, and {{Death-date}} 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 in standard, unambiguous and international ISO syntax. "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 of {{Start-date}}, {{Birth-date}}, {{End-date}}, and {{Death-date}} (colors for emphasis only)
Samples below display December 7, 1941 (1941-12-07), and emit hidden microformat date: 1941-12-07
{{start-date|December 7, 1941}} → December 7, 1941 (1941-12-07)
{{birth-date|December 7, 1941}} → دسامبر ۷, ۱۹۴۱&#۱۶۰;(۱۹۴۱-۱۲-۰۷)
{{end-date|December 7, 1941}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸)
{{death-date|December 7, 1941}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸)
Samples below display 7 December 1941 (1941-12-07), and emit hidden microformat date: 1941-12-07
{{start-date|7 December 1941}} → 7 December 1941 (1941-12-07)
{{birth-date|7 December 1941}} → ۷ دسامبر ۱۹۴۱&#۱۶۰;(۱۹۴۱-۱۲-۰۷)
{{end-date|7 December 1941}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸)
{{death-date|7 December 1941}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸)
Samples below demonstrate how days, timezones and hours, minutes and seconds can be shown (order often not important). Displays 5:43PM HST, December 7th, 1941 (1941-12-08UTC03:43Z), and emits hidden microformat date (corrected for UTC): 1941-12-08T03:43Z
{{start-date|5:43PM HST, December 7th, 1941|tz=y}} → 5:43PM HST, December 7th, 1941 (1941-12-08UTC03:43Z)
{{birth-date|5:43PM HST, December 7th, 1941|tz=y}} → ۵:۴۳PM HST, دسامبر ۷th, ۱۹۴۱&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۴۳Z)
{{end-date|5:43PM HST, December 7th, 1941|tz=y}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۴۴Z)
{{death-date|5:43PM HST, December 7th, 1941|tz=y}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۴۴Z)
Samples below demonstrate providing a location with local time to generate UTC value. Displays December 8, 1941 12:50PM Australia/Adelaide (1941-12-08UTC03:20Z), and emits hidden microformat date (corrected for UTC): 1941-12-08 T03:20Z
{{start-date|December 8, 1941 12:50PM Australia/Adelaide|tz=y}} → December 8, 1941 12:50PM Australia/Adelaide (1941-12-08UTC03:20Z)
{{birth-date|December 8, 1941 12:50PM Australia/Adelaide|tz=y}} → دسامبر ۸, ۱۹۴۱ ۱۲:۵۰PM Australia/Adelaide&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۲۰Z)
{{end-date|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۲۱Z)
{{death-date|December 8, 1941 12:50PM Australia/Adelaide|tz=y}}  ۱ مارس ۲۰۲۴&#۱۶۰;(۱۹۴۱-۱۲-۰۸UTC۰۳:۲۱Z)
Samples below demonstrate use of Julian calendar dates. Displays 9 June [سبک قدیمی: 30 May] 1672 (1672-06-09), and emits hidden microformat date: 1672-06-09
{{start-date|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}} → 9 June [سبک قدیمی: 30 May] 1672 (1672-06-09)
{{birth-date|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}} → ۹ ژوئن &#۹۱;سبک قدیمی: ۳۰ مه&#۹۳; ۱۶۷۲&#۱۶۰;(۱۶۷۲-۰۶-۰۹)
{{end-date|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}   → ۹ ژوئن &#۹۱;سبک قدیمی: ۳۰ مه&#۹۳; ۱۶۷۲&#۱۶۰;(۱۶۷۲-۰۶-۱۰)
{{death-date|9 June 1672|{{OldStyleDate|9 June|1672|30 May}}}}   → ۹ ژوئن &#۹۱;سبک قدیمی: ۳۰ مه&#۹۳; ۱۶۷۲&#۱۶۰;(۱۶۷۲-۰۶-۱۰)

Microformat output[ویرایش]

Start date templates:

  • {{Start-date|31 December 2016}} ← 31 December 2016 (2016-12-31)
    31 December 2016<span style="display:none">&#160;(<span class="dtstart ">2016-12-31</span>)</span>
  • {{Start date|2016|12|31|df=y}} ← ۳۱ دسامبر ۲۰۱۶ (۲۰۱۶-12-۳۱)
    ۳۱ دسامبر ۲۰۱۶<span style="display:none">&#160;(<span class="bday dtstart updated">۲۰۱۶-12-۳۱</span>)</span>

Birth date templates:

  • {{Birth-date|31 December 2016}} ← ۳۱ دسامبر ۲۰۱۶&#۱۶۰;(۲۰۱۶-۱۲-۳۱)
    ۳۱ دسامبر ۲۰۱۶<span style="display:none">&#۱۶۰;(<span class="dtstart bday">۲۰۱۶-۱۲-۳۱</span>)</span>
  • {{Birth date|2016|12|31|df=y}} ← ۳۱ دسامبر ۲۰۱۶
    ۳۱ دسامبر ۲۰۱۶

End date templates:

  • {{End-date|31 December 2016}}۱ مارس ۲۰۲۴&#۱۶۰;(۲۰۱۷-۰۱-۰۱)
    <span class="mw-formatted-date" title="۰۰۰۰-۰۳-۰۰">۱ مارس ۲۰۲۴</span><span style="display:none">&#۱۶۰;(<span class="dtend ">۲۰۱۷-۰۱-۰۱</span>)</span>
  • {{End date|2016|12|31|df=y}} ← ۳۱ دسامبر ۲۰۱۶ (۲۰۱۶-12-۳۱)
    ۳۱ دسامبر ۲۰۱۶<span style="display:none">&#160;(<span class="bday dtstart updated">۲۰۱۶-12-۳۱</span>)</span>

Death date templates:

  • {{Death-date|31 December 2016}}۱ مارس ۲۰۲۴&#۱۶۰;(۲۰۱۷-۰۱-۰۱)
    <span class="mw-formatted-date" title="۰۰۰۰-۰۳-۰۰">۱ مارس ۲۰۲۴</span><span style="display:none">&#۱۶۰;(<span class="dtend ">۲۰۱۷-۰۱-۰۱</span>)</span>
  • {{Death date|2016|12|31|df=y}} ← ۳۱ دسامبر ۲۰۱۶
    ۳۱ دسامبر ۲۰۱۶

پارامترها[ویرایش]

parameter 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
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[ویرایش]

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده End-date

بدون توصیف.

پارامترهای الگو[ویرایش داده‌های الگو]

پارامترتوضیحاتنوعوضعیت
11

بدون توصیف

ناشناختهاختیاری
22

بدون توصیف

ناشناختهاختیاری
ISO8601ISO8601

بدون توصیف

ناشناختهاختیاری
dtdt

بدون توصیف

ناشناختهاختیاری
tztz

set to "yes" when timezone is present, or when timzone UTC is implicit

بولیاختیاری
timezonetimezone

بدون توصیف

ناشناختهاختیاری
BCEBCE

بدون توصیف

ناشناختهاختیاری
BCBC

بدون توصیف

ناشناختهاختیاری
displaydisplay

بدون توصیف

ناشناختهاختیاری
class-extraclass-extra

بدون توصیف

ناشناختهاختیاری
dfdf

بدون توصیف

ناشناختهاختیاری

تاریخ و ساعت گنگ[ویرایش]

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.

منطقه‌های زمانی[ویرایش]

Most time zone abbreviations as well as a large number of place names are recognized. (See recognized timezone values table.)

{{start-date|December 7, 1941 8:43AM Pacific/Honolulu }}December 7, 1941 8:43AM Pacific/Honolulu (1941-12-07UTC19:13)
{{start-date|December 8, 1941 12:30PM Asia/Manila }}December 8, 1941 12:30PM Asia/Manila (1941-12-08UTC04:30)

رده‌های ردیابی[ویرایش]

الگوهای منتقل کننده با پارامترهای نامعتبر:


الگوهای مرتبط[ویرایش]