الگو:تا تاریخ

(تغییرمسیر از الگو:از تاریخ)

تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴-۰۴-۲۳)[منبع]

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

استفاده

از {{تا تاریخ}} برای نشانه‌گذاری مقاله‌های دارای اظهارات تاریخی بالقوه استفاده می‌شود. این الگو، مقاله‌ها را به صورت پنهان پنهان به رده:مقاله‌های دارای اظهارات تاریخی بالقوه می‌افزاید. این کار به ویرایشگران امکان می‌دهد که گفته‌هایی را که ممکن است پس از مدتی، کهنه شوند دسته‌بندی کنند. (برای بیان آخرین وضعیت،) تاریخ آورده شده برای یک گفته مشخص، باید بر پایه منابع معتبر باشد. یا می‌توان به تاریخ منبع مراجعه کرد که نمونه آن، تاریخ سرشماری است. از این الگو نباید برای تاریخ‌های آینده استفاده شود (به جای آن از {{به‌روزرسانی پس از}} استفاده کنید). این الگو نباید جانشانی شود.

نکات:

  • از این الگو نباید در جعبه‌های اطلاعات استفاده کرد که از میکروفرمت استفاده می‌کنند. زیرا تاریخ نشانه‌گذاری آن با الگو، مغایرت دارد.
  • استفاده از این الگو در گفتاوردها لازم نیست و باید خودداری شود.

این الگو، در متنی که استفاده شده، ابرپیوند ایجاد نمی‌کند.

راهنمای استفاده

استفاده از مقادیری چون {{تا تاریخ|now}} یا متغیرهایی مانند {{تا تاریخ|{{CURRENTYEAR}}}} برابر استفاده از "currently" است که عموما در تضاد با زبان دقیق است.

ترکیب

از این الگو می‌توان به صورت زیر و با تاریخ‌های عددی استفاده کرد:

{{تا تاریخ|year}}
{{تا تاریخ|year|month}}
{{تا تاریخ|year|month|day}}

صفرهای پشت عدد، اختیاری هستند.

خواهشمند است از {{تا تاریخ|{{CURRENTYEAR}}|{{CURRENTMONTH}}}} یا مانند آنها استفاده نکنید؛ زیرا با هدف الگو در تضاد است.

از پارامترهای نامگذاری نیز می‌توان استفاده کرد. (پایین را ببینید)

پارامترها

الزامی

  • year (پارامتر نخست) – باید به صورت چهار رقمی باشد: (yyyy)

اختیاری

  • month (پارامتر دوم) – کامل یا خلاصه‌شده باشد با ۲ رقم نیز می‌تواند آنرا وارد کرد. برای نمونه، (01 به معنی ژانویه و 02 به معنی فوریه است. اما Jan و January) نیز پذیرفته می‌شوند.
  • day (پارامتر سوم) – یک رقمی یا دو رقمی وارد می‌شود: (dd یا d)

نامگذاری شده

  • alt – optional; allows substitution of different wording and case for the visible text output (including the date). If present with no value defined, this parameter is ignored; if a value is defined, values for |df and |lc and |since parameters are ignored.
  • df – "date format", optional; allows use of American date format with |df=US. This only has an effect when the full |year|month|day format is also used.
  • lc – "lower case", optional; if given any value at all (e.g. |lc=y) gives lower case "as of date", for use mid-sentence.
  • since – optional; if given any value at all (e.g. |since=y) it changes "As of" to "Since". Use of |lc=y with |since=y gives "since date. Use of |alt= will replace the entire output, including the "Since", as it will with the default "As of".
  • pre – text to insert before the date, and after "[A|a]s of" or "[S|s]ince", e.g. |pre=the first week of used like this: {{تا تاریخ|1997|pre=the first week of}} produces "تا تاریخ ۱۹۹۷".
  • post – text (almost always punctuation) to insert between the date and the superscripted note that is displayed if the user has ".asof-tag { display: inline !important; }," ".asof-tag.ref { display: inline !important; }" or ".asof-tag.ref { display: inline !important; }" added to their common.css page
Note: the [update] tag is a tag that shows when url is not specified and the user has ".asof-tag { display: inline !important; }" or ".asof-tag.update { display: inline !important; }" added to their common.css page. It contains a link to edit the page.
  • url – optional; adds an inline external link (hidden by default) suggesting a webpage for future editors to check for updates to the statement; use the full URL with no spaces.
Note: This will only show if the user has ".asof-tag { display: inline !important; }" or ".asof-tag.ref { display: inline !important; }" added to their common.css page. It will show as a hyperlinked [ref] tag after the template. See Wikipedia:As of#Article maintenance.

نمونه‌ها

{{تا تاریخ|۲۰۲۴}} – تا تاریخ ۲۰۲۴
{{تا تاریخ|۲۰۲۴|۰۴}} – تا تاریخ آوریل ۲۰۲۴
{{تا تاریخ|۲۰۲۴|۰۴|۲۳}} – تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴ -04-۲۳)
{{تا تاریخ|۲۰۲۴|۰۴|۲۳|df=US}} – تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴ -04-۲۳)
{{تا تاریخ|۲۰۲۴|۰۴|۲۳|lc=y}} – تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴ -04-۲۳)
{{تا تاریخ|2010|4|1|alt=as of the [[سرشماری ۲۰۱۰ ایالات متحده آمریکا]]}} – تا تاریخ سرشماری ۲۰۱۰ ایالات متحده آمریکا
{{تا تاریخ|۲۰۲۴|۰۴|url=https://en.wikipedia.org}} نشان می‌دهد:
برای کاربرانی که به سامانه، وارد شده‌اند با پیوند منبع: – تا تاریخ آوریل ۲۰۲۴[ref]
برای دیگر کاربران – تا تاریخ آوریل ۲۰۲۴
{{تا تاریخ|۲۰۲۴|۰۴|۲۳|df=US|since=y}} – تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴ -04-۲۳)
{{تا تاریخ|۲۰۲۴|۰۴|۲۳|lc=y|since=y}} – تا تاریخ ۲۳ آوریل ۲۰۲۴ (۲۰۲۴ -04-۲۳)

قالب داده

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

الگوداده تا تاریخ

از الگوی تا تاریخ برای نشانه‌گذاری مقاله‌های دارای اظهارات تاریخی بالقوه استفاده می‌شود. این الگو، مقاله‌ها را به صورت پنهان به رده:مقاله‌های دارای اظهارات تاریخی بالقوه می‌افزاید. این کار به ویرایشگران امکان می‌دهد که گفته‌هایی را که ممکن است پس از مدتی، کهنه شوند دسته‌بندی کنند. (برای بیان آخرین وضعیت،) تاریخ آورده شده برای یک گفته مشخص، باید بر پایه منابع معتبر باشد. یا می‌توان به تاریخ منبع مراجعه کرد که نمونه آن، تاریخ سرشماری است. از این الگو نباید برای تاریخ‌های آینده استفاده شود (به جای آن از الگوی به‌روزرسانی پس از استفاده کنید). این الگو '''نباید''' جانشانی شود.

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

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

The year the statement is valid to (in full; yyyy)

مثال
2013
شمارهضروری
Month2

The month the statement is valid to. Full (January, january), abbreviated (Jan, jan) or numerical formats (01, 1) are supported. "01" provides the most consistency in wikitext, but all will be converted to "January" in articles and for categories.

مثال
January, january, Jan, jan, 01, 1
خطپیشنهادشده
Day3

The day the statement is valid to, in numerical format (01 or 1; both will be converted to 1). This will show to users, but it will not be used to categorise the article.

مثال
22
شمارهاختیاری
Date formatdf

If a day has been specified, enter "US" or "us" here to use the US date format (January 1, 2013). The default format is 1 January 2013.

مثال
US, us
مقدار خودکار
US
خطاختیاری
Lowercaselc

Enter any text here to make the first letter of the template lowercase.

مثال
y
مقدار خودکار
y
خطاختیاری
Alternative textalt

Text to replace the "As of [date]". This will override the display of the template, but the values under month and year will still be used to categorise the article. Wiki markup is allowed.

مثال
As of Christmas 2018
محتوااختیاری
Sincesince

Enter any text here to replace the text "As of" with "Since".

مثال
y
مقدار خودکار
y
خطاختیاری
URLurl

(Hidden by default) A URL containing future updates to the statement for other editors to check. This will only show if the user has ".asof-tag { display: inline !important; }" or ".asof-tag.ref { display: inline !important; }" added to their common.css page. It will show as a hyperlinked superscript "[ref]" tag after the template. Enter the full URL with no spaces.

نشانی اینترنتیاختیاری
Pre-textpre

Text to be added before the date

مثال
the first week of
رشتهاختیاری
Post-textpost

Text to be added after the date, usually punctuation. Only necessary if the user wishes to ensure the punctuation/text is positioned before the superscript tags that are enabled by adding ".asof-tag.ref { display: inline !important; }" to the commons.css page.

مثال
.
خطاختیاری

الگوهای مرتبط