Template:Expire/doc: Difference between revisions
(Created page with "Used to hide content using an expiration date. == Usage == <code><nowiki>{{expire| YYYYMMDD | Content goes here }}</nowiki></code> Where YYYYMMDD is the year + month + day w...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
<code><nowiki>{{expire| YYYYMMDD |2= Content goes here }}</nowiki></code> | <code><nowiki>{{expire| YYYYMMDD |2= Content goes here }}</nowiki></code> | ||
You can place other templates within this template. For example: | |||
<code><nowiki>{{expire| 20160423 | {{warning| Look out for falling rocks }} }}</nowiki></code> | |||
== 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]]'''. | |||
<includeonly> | <includeonly> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[Category:Maintenance templates]] | |||
</includeonly> | </includeonly> |
Latest revision as of 01:45, 24 April 2016
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.