打开主菜单
Ballance Wiki
β
搜索
查看“模板:AgeD”的源代码
←
模板:AgeD
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您必须确认您的电子邮件地址才能编辑页面。请通过
系统设置
设置并确认您的电子邮件地址。
您可以查看与复制此页面的源代码。
{{#invoke:age|age_generic|template=age_days}}<noinclude> ==Usage== ====Full dates==== To use, type: :{| |- |<code><nowiki>{{AgeD|date1|date2}}</nowiki></code> ||(number of days between dates 1 and 2), |- |<code><nowiki>{{AgeD|date1}}</nowiki></code> ||(number of days since date 1) or |- |<code><nowiki>{{AgeD||date2}}</nowiki></code> ||(number of days until date 2) |} Examples: :{| |- |<code><nowiki>{{AgeD|19 Aug 2008|4 Sep 2010}}</nowiki></code> ||gives {{AgeD|19 Aug 2008|4 Sep 2010}} |- |<code><nowiki>{{AgeD|27 May 2002}}</nowiki></code> ||gives {{AgeD|27 May 2002}} |} ====Year, month and day==== To use, type: :{| |- |<code><nowiki>{{AgeD|year1|month1|day1|year2|month2|day2}}</nowiki></code> ||(number of days between dates 1 and 2), |- |<code><nowiki>{{AgeD|year1|month1|day1}}</nowiki></code> ||(number of days since date 1) or |- |<code><nowiki>{{AgeD||||year2|month2|day2}}</nowiki></code> ||(number of day until date 2) |} Or with named parameters: :{| |- |<code><nowiki>{{AgeD|month1= |day1= |year1= |month2= |day2= | year2= }}</nowiki></code> ||(number of days between dates 1 and 2), |- |<code><nowiki>{{AgeD|month1= |day1= |year1= }}</nowiki></code> ||(number of days since date 1) or |- |<code><nowiki>{{AgeD|month2= |day2= | year2= }}</nowiki></code> ||(number of day until date 2) |} Examples: {| |- |<code><nowiki>{{AgeD|2007|5|24|2008|4|23}}</nowiki></code> ||gives {{AgeD|2007|5|24|2008|4|23}} |- |<code><nowiki>{{AgeD|2007|5|24}}</nowiki></code> ||gives {{AgeD|2007|5|24}} |} ===Formatting=== Three styles of formatting are possible. :{| |- |<code>format=raw</code> ||gives unformatted numbers with hyphens as minus signs (negative days will occur if the first date is after the second, for use in further calculations). |} </noinclude>
该页面使用的模板:
模板:AgeD
(
查看源代码
)
模块:Age
(
查看源代码
)
模块:Date
(
查看源代码
)
返回至
模板:AgeD
。