Template:Age in days
跳转到导航
跳转到搜索
This documentation is transcluded from Template:Age in days/doc.
(本说明文件的该部分只有有限数量的语言版本。)
This template returns the number of days between two dates. If the second set of parameters is not included it will calculate the days between the given date and today.
用法
{{Age in days |year1= |month1= |day1= |year2= |month2= |day2= }}
模板参数
参数 | 描述 | 默认值 | 状态 | |
---|---|---|---|---|
year1 1 | year 1 | year of 1. date | empty | 必需 |
month1 2 | month 1 | month of 1. date | empty | 必需 |
day1 3 | day 1 | day of 1. date | empty | 必需 |
year2 4 | year 2 | year of 2. date | current year, e.g.: 2024 | 可选 |
month2 5 | month 2 | month of 2. date | current month, e.g.: 08 | 可选 |
day2 6 | day 2 | day of 2. date | current day, e.g.: 2 | 可选 |
附加信息
本模板可以用于以下名字空间: 未指定名字空间
本模板可以被以下用户组使用: 未指定用户组
实例
{{Age in days|2007|5|24|2008|4|23}}
生成:
335
{{Age in days|2007|5|24}}
生成:
6280
本地化
本模板不用本地化。