编辑“︁
Template:Time interval/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Time interval
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
== Parameters == {| class="wikitable" ! Parameter !! Description |- | <code>abbr=off</code> || Unit names in full (default): year, month, day, hour, minute. |- | <code>abbr=on</code> || Units shown as a single letter with no space between number and unit: y, m, d, h, m. |- | <code>disp=age</code> || If no <code>show</code> has been entered, years are displayed if the age is above 3 years, years and months from 1 to 3 years, or months and days for under 1 year. Sets <code>sep=space</code> by default. This is compatible with {{tl|age for infant}}. |- | <code>disp=raw</code> || Display numbers only with <code>sep=space</code>. |- | <code>duration=on</code> || Period is a duration (has an extra day to include the end date). |- | <code>format=commas</code> || Numbers over 999 are formatted with commas. |- | <code>format=raw</code> || Use a hyphen (-) to indicate a negative date difference instead of a minus (−); a hyphen may allow the result to be used in a calculation. |- | <code>sep=comma</code> || Separator between items is a comma: 1 year, 2 months, 3 days. The default is 1 year, 2 months and 3 days. |- | <code>sep=,</code> || Same as <code>sep=comma</code>. |- | <code>sep=serialcomma</code> || Use a [[serial comma]]: 1 year, 2 months, and 3 days. |- | <code>sep=space</code> || Use a space: 1 year 2 months 3 days. |- | <code>sc=y</code> || Change the default separator to use a serial comma. Also accepts <code>sc=yes</code> and <code>sc=on</code>. |- | <code>show=y</code> || years |- | <code>show=ym</code> || years and months |- | <code>show=ymd</code> || years, months and days (default) |- | <code>show=ymw</code> || years, months and weeks |- | <code>show=ymwd</code> || years, months, weeks and days |- | <code>show=yd</code> || years and days |- | <code>show=m</code> || months |- | <code>show=md</code> || months and days |- | <code>show=w</code> || weeks |- | <code>show=wd</code> || weeks and days |- | <code>show=d</code> || days |- | <code>show=dh</code> || days and hours |- | <code>show=dhm</code> || days, hours and minutes |- | <code>show=dhms</code> || days, hours, minutes and seconds |- | <code>show=ymdh</code> || ymd + hours |- | <code>show=ymdhm</code> || ymd + hours and minutes |- | <code>show=ymwdh</code> || ymwd + hours |- | <code>show=ymwdhm</code> || ymwd + hours and minutes |- | <code>show=h</code> || hours (result would be 48 hours for a difference of 2 days) |- | <code>show=hm</code> || hours and minutes |- | <code>show=hms</code> || hours, minutes and seconds |- | <code>round=on</code> || Round the least-significant unit specified with the <code>show=</code> parameter. |- | <code>round=months</code> || Round to nearest month using <code>show=ym</code>. |- | <code>round=weeks</code> || Round to nearest week using <code>show=ymw</code>. |- | <code>round=days</code> || Round to nearest day using <code>show=ymd</code>. |- | <code>round=hours</code> || Round to nearest hour using <code>show=ymdh</code>. |- | <code>sortable=on</code> || Output a hidden sort key based on the number of days in the date difference (includes a fraction of a day to handle time differences). |- | <code>sortable=off</code> || No sort key (default). |- | <code>sortable=debug</code> || Output a visible sort key for testing. |}
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息