Template:Expire: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: 1 | {{#expr:{{{1}}}<={{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}}}} | | {{{2}}} }} | {{#ifeq: 1 | {{#expr:{{{1}}}<={{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}}}} | [[Category:Expired content that needs to be removed]] | {{{2}}}<includeonly>[[Category:Content with an expiration date]]</includeonly> }}<noinclude>{{doc}}</noinclude> |
Latest revision as of 01:38, 24 April 2016
{{{2}}}
Used to hide content using an expiration date.
Usage
{{expire| YYYYMMDD | Content goes here }}
Where YYYYMMDD is the year + month + day where you want the content to disappear. For example, 20160423
would hide the "content goes here
" part after April 23rd, 2016.
If the content has an equals sign then you might need to use this alternative formatting:
{{expire| YYYYMMDD |2= Content goes here }}
You can place other templates within this template. For example:
{{expire| 20160423 | {{warning| Look out for falling rocks }} }}
Tracking
Pages using this template that have a pending expiration date will show up in Category:Content with an expiration date.
Pages using this template that have already expired will show up in Category:Expired content that needs to be removed.