模板:New
Kangjf(讨论 | 贡献)2019年9月11日 (三) 15:51的版本 (创建页面,内容为“<onlyinclude>{{#ifexpr:{{CURRENTTIMESTAMP}} < {{{expiry|99999999}}}*1000000 | 20px|link= | }}</onlyinclude> === Usage === Displays a File:New…”)
Usage
Displays a 20px icon if the current date is before the expiry date defined in the expiry
template parameter.
The expiry date parameter is a single number defined in the form of YYYYMMDD. For example, an expiry date of November 4, 2012
would be 20121104
.
If no expiry date is provided, expiry
defaults to 99999999
, effectively negating an expiry date for the display of the 20px tag.
Example
To create a 20px tag that expires on August 18, 2014, insert the following code into your document:
{{New|expiry=20140818}}