模板:Start-date
維基媒體模板 / 維基百科,自由的 encyclopedia
Did not recognize date. Try slightly modifying the date in the first parameter.
Start-date & End-date usage (colors for emphasis only): | ||||||||||||||||||||||||||||||
Sample below displays 1941年12月7日 (1941-12-07), and microformat date: 1941-12-07
| ||||||||||||||||||||||||||||||
Sample below demonstrating how days, timezones and hours, minutes and seconds can be shown. (Order often not important). Displays 5:43PM HST, December 7th, 1941 03:43 (1941-12-08UTC03:43Z), and microformat date (corrected for UTC): 1941-12-08T03:43Z
| ||||||||||||||||||||||||||||||
Sample below demonstrates providing a location with local time to generate UTC value. Displays 1941年12月8日 03:20 (1941-12-08UTC03:20Z), and microformat date (corrected for UTC): 1941-12-08 T03:20Z
| ||||||||||||||||||||||||||||||
Sample below demonstrating use of Julian calendar dates. Displays 1672年6月9日 (1672-06-09), and microformat date: 1672-06-09
Parameters
Ambiguous times and datesFor 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 zonesMost time zone abbreviations as well as a large number of place names are recognized. (See recognized timezone values table.)
|
![]() | 本模板含有複雜而精密的擴展語法。 編輯本模板前,建議您先熟悉解析器函數與本模板的設計思路、運作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的編輯可先在本模板的沙盒或您的個人頁面中進行測試。 |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/BadSalzdetfurthBadenburgerStr060529.jpg/640px-BadSalzdetfurthBadenburgerStr060529.jpg)
{{Start-date}}, {{Birth-date}}, and {{End-date}} (also used as {{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
參見
上述文件嵌入自Template:Start-date/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (編輯 | 差異)和測試樣例 (建立)頁面進行實驗。 本模板的子頁面。 |