“模板:New”的版本间的差异

来自人工智能助力教育知识百科
跳转至: 导航搜索
(创建页面,内容为“<onlyinclude>{{#ifexpr:{{CURRENTTIMESTAMP}} < {{{expiry|99999999}}}*1000000 | 20px|link= | }}</onlyinclude> === Usage === Displays a File:New…”)
 
(没有差异)

2019年9月11日 (三) 15:51的最新版本

20px

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}}