This template makes use of ParserFunctions in the MediaWiki software to calculate the amount of days past since a specified date. Its main usage is on the Main Page to display how long the latest patch, test patch, blog post and version has been released.
Usage[]
{{Days ago|YYYY-MM-DD}}
Example[]
{{Days ago|2010-12-08}}
generates 4881天前
TemplateData[]
Display the days since the given date.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Date | 1 | 无描述
| 日期 | 必需 |