Template:Other date/doc
More actions
(ส่วนนี้ของคู่มืออาจมีการแปลภาษาไม่เพียงพอต่อความต้องการ)
This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{Complex date}}. Please use {{Complex date}} instead of nesting {{Other date}} templates (calling {{Other date}} with inputs being other {{Other date}} templates).
แม่แบบนี้จะจัดลงหมวดหมู่ต่อไปนี้:
- Category:Pages using Complex date template with incorrect parameter (when errors are detected)
- Category:Unknown date (when dates are unknown, see also Template:Unknown)
- Category:Pages using Other date template with era
การใช้งาน
{{Other date |1= |2= }}
พารามิเตอร์แม่แบบ
| พารามิเตอร์ | คำอธิบาย | ค่าปริยาย | สถานะ | |
|---|---|---|---|---|
1 | type | Type of date notation. See examples below for list of allowed options. Pages using incorrect option will be added to Category:Pages using Complex date template with incorrect parameter. | empty | จำเป็น |
2 | date 1 | A date in ISO 8601 format "YYYY-MM-DD", or "YYYY-MM", or "YYYY", e.g. "2006-01-15" for "15 January 2006" or a number for centuries and millennia. | empty | จำเป็น |
3 | date 2 | Depends on type. If used than it is a date in ISO 8601 format. See Parameter #2 for details. | empty | ไม่บังคับ |
era | era |
| empty | ไม่บังคับ |
certainty | certainty | Certainty of the statement. Supported values: possibly, probably, presumably and circa ("circa" can be also used as adjective). This parameter was added to allow compatibility with Wikidata's sourcing circumstances qualifier when used to describe a date. | empty | ไม่บังคับ |
lang | language | Language code (only needs to be provided if the language shall be fixed and independent of the user's preferences) | (language code of the user language) | ไม่บังคับ |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
ข้อมูลแม่แบบคือวิธีการเก็บข้อมูลเกี่ยวกับพารามิเตอร์ของแม่แบบ (คำอธิบายและวิธีใช้ทั้งหมดของแม่แบบ) เพื่อใช้สำหรับการใช้งานของมนุษย์และเครื่องมือต่าง ๆ ใช้โดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ ได้อีก เช่นตัวช่วยการอัปโหลด กรณีมีคู่มือประกอบการใช้งานแม่แบบอยู่แล้ว ที่วิกิมีเดียคอมมอนส์นี้ ขอแนะนำให้ใช้ {{TemplateBox}} นอกเหนือจาก กรณีแม่แบบเพิ่งถูกสร้างหรือนำเข้าใหม่ วิธีการอื่นที่มักใช้สำหรับแม่แบบที่ถูกนำเข้ามา หรือสำหรับผู้ใช้ที่มีความรู้เกี่ยวกับ JSON คือการใส่แท็ก หน้าช่วยเหลือบนวิกิพีเดียเกี่ยวกับข้อมูลแม่แบบ • ข้อมูลเฉพาะกรณีคอมมอนส์ This template allows translation (localization) of many non-trivial phrases related to date description. This template has similar but more limited capabilities than {{Complex date}}. Please use {{Complex date}} instead of nesting {{Other date}} templates (calling {{Other date}} with inputs being other {{Other date}} templates).
| |||||||||||||||||||||||||||||||||||
ข้อมูลเพิ่มเติม
แม่แบบถูกสร้างขึ้นเพื่อใช้ในเนมสเปซ: เนมสเปซใด ๆ
แม่แบบนี้สร้างขึ้นสำหรับ: ผู้ใช้ทั้งหมด
ใช้งาน:
See also
(ส่วนนี้ของคู่มืออาจมีการแปลภาษาไม่เพียงพอต่อความต้องการ)
== เทศน์วิวัฒน์ ==
(ส่วนนี้ของคู่มืออาจมีการแปลภาษาไม่เพียงพอต่อความต้องการ)
Please note that phrases without translations into desired language will be shown in English using red font, to add translations please request an edit to Module:I18n/complex date
Examples
date notations with two dates
| {{{1}}} parameter | Example Code | Output |
|---|---|---|
-
|
{{other date|-|1999|2000}} {{other date|-|1999-01|2000-02}} {{other date|-|1999-01-01|2000-02-01}} |
พ.ศ. 2542 - พ.ศ. 2543 |
?
|
{{other date|?|1800|1825}} |
ไม่ทราบวัน[1] |
between
|
{{other date|between|1999|2000}} {{other date|between|1999-02|2000-03}} {{other date|between|1999-02-01|2000-03-01}} |
พ.ศ. 2542 - พ.ศ. 2543 |
~
|
{{other date|~|1999|2000}} {{other date|ca|1999-05|2000-06}} {{other date|circa|1999-05-01|2000-06-1}} |
circa พ.ศ. 2542 - circa พ.ศ. 2543 |
or
|
{{other date|or|1999|2000}} {{other date|or|1999-06|2000-07}} {{other date|or|1999-06-01|2000-07-1}} |
พ.ศ. 2542 หรือ พ.ศ. 2543 |
and
|
{{other date|&|1999|2000}} {{other date|and|1999-06|2000-07}} {{other date|and|1999-06-01|2000-07-01}} |
พ.ศ. 2542 และ พ.ศ. 2543 |
Julian
|
{{other date|Julian|1865-01-19|1865-01-07}} |
19 มกราคม พ.ศ. 2408 (7 มกราคม พ.ศ. 2408 in Julian calendar) |
Islamic
|
{{other date|islamic|1486|892}} {{other date|islamic|1486}} |
2028 หรือ 2029 AD (1434 หรือ 1435 AH) 2028 หรือ 2029 AD (1433 หรือ 1434 AH) |
era parameter
|
{{other date|or|985|986|era=BC}} |
1527 หรือ 1528 หรือ 1528 หรือ 1529 BC |
date notations with single date
Date notations with single date can use the second date for era, like BC or AD.
| {{{1}}} parameter | Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|---|
<
|
{{other date|<|2000}} {{other date|b|2000-03}} {{other date|before|2000-03-01}} |
before พ.ศ. 2543 before มีนาคม พ.ศ. 2543 before 1 มีนาคม พ.ศ. 2543 |
{{other date|<|99|era=BC}} | before 0641 หรือ 0642 BC |
>
|
{{other date|>|1999}} {{other date|a|1999-04}} {{other date|after|1999-04-01}} |
after พ.ศ. 2542 after เมษายน พ.ศ. 2542 after 1 เมษายน พ.ศ. 2542 |
{{other date|>|99|era=BC}} | after 0641 หรือ 0642 BC |
by
|
{{other date|by|1999}} {{other date|by|1999-04}} {{other date|by|1999-04-01}} |
by พ.ศ. 2542 by เมษายน พ.ศ. 2542 by 1 เมษายน พ.ศ. 2542 |
{{other date|by|99|era=BC}} | by 0641 หรือ 0642 BC |
from
|
{{other date|from|1999}} {{other date|from|1999-04}} {{other date|from|1999-04-01}} |
from พ.ศ. 2542 from เมษายน พ.ศ. 2542 from 1 เมษายน พ.ศ. 2542 |
{{other date|from|99|era=BC}} | from 0641 หรือ 0642 BC |
until
|
{{other date|until|1999}} {{other date|until|1999-04}} {{other date|until|1999-04-01}} |
until พ.ศ. 2542 until เมษายน พ.ศ. 2542 until 1 เมษายน พ.ศ. 2542 |
{{other date|until|99|era=BC}} | until 0641 หรือ 0642 BC |
~
|
{{other date|~|1999}} {{other date|ca|1999-05}} {{other date|circa|1999-05-01}} |
circa พ.ศ. 2542 circa พฤษภาคม พ.ศ. 2542 circa 1 พฤษภาคม พ.ศ. 2542 |
{{other date|~|99|era=BC}} | circa 0641 หรือ 0642 BC |
s
|
{{other date|s|1960}} {{other date|decade|1800}} |
1960s 1800s |
{{other date|s|960|era=BCE}} | 960s BC |
century
|
{{other date|century|1}} {{other date|century|20}} |
1 century 20 century |
{{other date|century|1|era=BC}} | 1 century BC |
millennium
|
{{other date|millennium|1}} | 1 millennium | {{other date|millennium|2|era=BC}} | 2 millennium BC |
turn of the decade
|
{{other date|turn of the decade|1920}} {{other date|turn of the decade|1800}} |
late ๑,๙๑๐.๐ และ early ๑,๙๒๐.๐ late ๑,๗๙๐.๐ และ early ๑,๘๐๐.๐ |
{{other date|turn of the decade|920|era=BC}} | late ๙๒๐.๐ และ early ๙๑๐.๐ BC BC |
turn of the century
|
{{other date|turn of the century|2}} {{other date|turn of the century|20}} |
late ๑.๐ และ early ๒.๐ late ๑๙.๐ และ early ๒๐.๐ |
{{other date|turn of the century|2|era=BC}} | late ๒.๐ และ early ๑.๐ BC BC |
turn of the year
|
{{other date|turn of the year|1992}} | late พ.ศ. 2534 และ early พ.ศ. 2535 | {{other date|turn of the year|922|era=BC}} | late 2006 หรือ 2007 หรือ 1465 และ early 2005 หรือ 2006 หรือ 1464 BC BC |
spring
|
{{other date|spring|1999}} | Spring พ.ศ. 2542 | {{other date|spring|99|era=AD}} | Spring 0641 หรือ 0642 AD |
summer
|
{{other date|summer|1999}} | Summer พ.ศ. 2542 | {{other date|summer|99|era=BC}} | Summer 0641 หรือ 0642 BC |
fall
|
{{other date|fall|1999}} {{other date|autumn|1999}} |
Autumn พ.ศ. 2542 Autumn พ.ศ. 2542 |
{{other date|fall|99|era=AD}} | Autumn 0641 หรือ 0642 AD |
winter
|
{{other date|winter|1999}} | Winter พ.ศ. 2542 | {{other date|winter|99|era=BC}} | Winter 0641 หรือ 0642 BC |
beginning
|
{{other date|early|1999-08}} {{other date|beginning|1999}} |
early สิงหาคม พ.ศ. 2542 early พ.ศ. 2542 |
{{other date|early|99|era=BC}} | early 0641 หรือ 0642 BC |
mid
|
{{other date|mid|1999-10}} {{other date|middle|1999}} |
mid ตุลาคม พ.ศ. 2542 mid พ.ศ. 2542 |
{{other date|mid|99|era=BC}} | mid 0641 หรือ 0642 BC |
end
|
{{other date|end|1999-11}} {{other date|late|1999}} |
late พฤศจิกายน พ.ศ. 2542 late พ.ศ. 2542 |
{{other date|end|99|era=BCE}} | late 0641 หรือ 0642 BC |
firsthalf
|
{{other date|firsthalf|1999-11}} {{other date|1half|1999}} |
first half of พฤศจิกายน พ.ศ. 2542 first half of พ.ศ. 2542 |
{{other date|firsthalf|99|era=BC}} | first half of 0641 หรือ 0642 BC |
secondhalf
|
{{other date|secondhalf|1999-11}} {{other date|2half|1999}} |
second half of พฤศจิกายน พ.ศ. 2542 second half of พ.ศ. 2542 |
{{other date|secondhalf|99|era=BCE}} | second half of 0641 หรือ 0642 BC |
1quarter
|
{{other date|1quarter|1815-09}} {{other date|1quarter|1815}} |
first quarter of กันยายน พ.ศ. 2358 first quarter of 2357 หรือ 2358 |
{{other date|1quarter|99|era=BC}} | first quarter of 0641 หรือ 0642 BC |
2quarter
|
{{other date|2quarter|1815-09}} {{other date|2quarter|1815}} |
second quarter of กันยายน พ.ศ. 2358 second quarter of 2357 หรือ 2358 |
{{other date|2quarter|99|era=BC}} | second quarter of 0641 หรือ 0642 BC |
3quarter
|
{{other date|3quarter|1815-09}} {{other date|3quarter|1815}} |
third quarter of กันยายน พ.ศ. 2358 third quarter of 2357 หรือ 2358 |
{{other date|3quarter|99|era=BC}} | third quarter of 0641 หรือ 0642 BC |
4quarter
|
{{other date|4quarter|1815-09}} {{other date|4quarter|1815}} |
forth quarter of กันยายน พ.ศ. 2358 forth quarter of 2357 หรือ 2358 |
{{other date|4quarter|99|era=BC}} | forth quarter of 0641 หรือ 0642 BC |
BC
|
{{other date|BC|44-03-15}} {{other date|BCE|44}} |
15 มีนาคม พ.ศ. 587 BC 0586 หรือ 0587 BC |
||
AD
|
{{other date|AD|944-03}} {{other date|CE|944}} |
มีนาคม พ.ศ. 1487 AD 1486 หรือ 1487 AD |
||
?
|
{{other date|?|2015}} | ไม่ทราบวัน[1] | {{other date|?|2015|era=BC}} | ไม่ทราบวัน BC[1] |
date notations without date
| {{{1}}} parameter | Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|---|
?
|
{{other date|?}} {{other date|unknown}} |
ไม่ทราบวัน ไม่ทราบวัน |
{{other date|?||era=BC}} | ไม่ทราบวัน BC |
year unknown
|
{{other date|year unknown}} | year unknown | {{other date|year unknown|era=BC}} | year unknown BC |
compound constructions
| Example Code | Output | Example Code with era | Output with era |
|---|---|---|---|
| {{Other date|2half|{{Other date|century|15}}}} | second half of 15 century | {{Other date|2half|{{Other date|century|15}}|era=BC}} | second half of 15 century BC |
| {{otherdate|mid|{{otherdate|decade|1980}}}} | mid 1980s | {{otherdate|mid|{{otherdate|decade|1980}}|era=BC}} | mid 1980s BC |