Template:Start date/doc

出自维基百科,自由个百科全书

模板介紹[编辑]

模板{{Start date}}用來返回一個事件開始或者對象畀創建嗰日腳(或者日腳搭辰光)。箇模板還包括一個額外、用CSS囥起來嗰ISO日期格式嗰機讀日期(machine-readable date)。

, for use inside other templates (or table rows) which emit microformats. It should only be used once in each such template and should not be used outside such templates. The hidden date degrades gracefully when CSS is not available.

參數搭使用方法[编辑]

不該用箇模板嗰場合[编辑]

Do not use this template for:

  • dates that are uncertain e.g. "before 4 April 1933"; "around 18 November 1939".
  • dates outside the range given under "Limitation", below.
  • other, secondary dates
  • outside microformat-emitting templates - if in doubt, see the parent template's documentation
  • more than one date in any parent template

使用方法[编辑]

  • {{Start date|年|月|日}}
  • {{Start date|年|月|日|時|分|秒|時區}}是可選參數;時區可以是數字表示嗰值,或者用「Z」;請看下頭嗰例子)

注意:時區兩個參數外,別個參數儕要填兩位數字。如果有嗰參數留空,箇模板會出現空白嗰情況(請看下頭嗰例子)。

例子
  • {{Start date|1993}} → "1993年 (1993)"
  • {{Start date|1993|02}} → "1993年2月 (1993-02)"
  • {{Start date|1993|02|24}} → "1993年2月24日 (1993-02-24)"
  • {{Start date|1993|02|24|08|30}} → "1993年2月24日 08:30 (1993-02-24T08:30)"
  • {{Start date|1993|02|24|08|||+01:00}} → "1993年2月24日 (+01:00) (1993-02-24T08+01:00)"
  • {{Start date|1993|02|24|08|00|00|-07:00}} → "1993年2月24日 08:00:00 (-07:00) (1993-02-24T08:00:00-07:00)"
  • {{Start date|1993|02|24|08|30|23}} → "1993年2月24日 08:30:23 (1993-02-24T08:30:23)"
  • {{Start date|1993|02|24|08|30|23|Z}} → "1993年2月24日 08:30:23 (UTC) (1993-02-24T08:30:23Z)"
  • {{Start date|1993|02|24|08|30|23|+01:00}} → "1993年2月24日 08:30:23 (+01:00) (1993-02-24T08:30:23+01:00)"
  • {{Start date|1993|02|24|08|30|23|-07:00}} → "1993年2月24日 08:30:23 (-07:00) (1993-02-24T08:30:23-07:00)"
其他參數

原來有一個可選參數,填寫|df=y或者|df=yes來讓天顯示勒月前頭。箇原是用勒英文維基裡顕示DMY格式日腳用嗰,吳語維基不需要使用,所以乃箇參數實質上不起作用。

例子
  • {{Start date|1993|02|24|df=y}} → "1993年2月24日 (1993-02-24)"
  • {{Start date|1993|02|24|08|30|df=yes}} → "1993年2月24日 08:30 (1993-02-24T08:30)"

參數[编辑]

箇是畀可视化编辑器搭別個工具用嗰模板數據文檔。

Start date

Date that an event or entity started or was created

模板参数

参数描述类型状态
YYYY1

start year

数字可选
MM2

start month

数字可选
DD3

start day of month

数字可选
HH4

start hours

数字可选
MM5

start minutes

默认值
0
数字可选
SS6

start seconds

默认值
0
数字可选
TZ7

time zone offset, “+02:00”, “-06:00” or “Z” for UTC

单行文本可选
day firstdf

boolean parameter to put the date before the month name

默认值
false
单行文本可选

參看[编辑]