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.: 06 | 非必填 |
day2 6 | day 2 | day of 2. date | current day, e.g.: 10 | 非必填 |
其他資訊
該模板可以用於以下名字空間: 未指定名字空間
該模板可以由以下群組使用: 未指定群組
舉例
{{Age in days|2007|5|24|2008|4|23}}
顯示為:
335
{{Age in days|2007|5|24}}
顯示為:
6227
本地化
該模板不需要本地化。