模板:Start date and age
页面Module:Documentation/styles.css没有内容。
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
package.lua第80行Lua错误:module 'Module:CGroup/core' not found
脚本错误:没有“High-use”这个模块。 脚本错误:没有“Shortcut”这个模块。
使用说明[编辑]
这个模版会传回日期和它距离今天的时间长度。
用法[编辑]
代码[编辑]
一般[编辑]
{{Start date and age|yyyy|mm|dd}}
完整[编辑]
{{Start date and age|yyyy|mm|dd|br=yes|p=yes}}
参数具体描述[编辑]
参数 必填? 描述 yyyy 是 四位数字,指示年份 mm 否 1至12之间的数字,指示月份。如果是一位数,前面无所谓补0与否。 dd 否 1至31之间的数字,指示日期。如果是一位数,前面无所谓补0与否。 br= 否 br设为yes时,日期和它距今天的时间之间换行;设为除了yes之外的任何值或不设置此参数时,将不强制换行。 p= 否 p设为yes时,日期距今天的时间使用括号显示。
例子[编辑]
| 代码 | 结果 |
|---|---|
| {{Start date and age|2010|10|02}} | 2010年10月2日 |
| {{Start date and age|2008|08|09}} | 2008年8月9日 |
| {{Start date and age|1999|07}} | 1999年7月 |
| {{Start date and age|2003}} | 2003年 |
| {{Start date and age|2009|9|9|br=yes}} | 2009年9月9日 |
| {{Start date and age|2016|3|1|p=yes}} | 2016年3月1日 |
| {{Start date and age|2016|3|1|p=yes|br=yes}} | 2016年3月1日 |
重定向[编辑]
以下模板重定向于此: