Difference between revisions of "Template:Editnotice"
From Timelines
m |
(Fix, was adding Category:Expired editnotice to all edit notices with a blank "expiry" parameter. See Template talk:Editnotice#Incorrect category) |
||
Line 36: | Line 36: | ||
{{{text|{{{1}}}}}} | {{{text|{{{1}}}}}} | ||
}} | }} | ||
− | }} | + | }}{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotices|{{#switch:{{{expiry|¬}}} |
+ | |indefinite | ||
+ | | | ||
+ | |¬ = <!-- Expiry not specified --> | ||
+ | |#default = {{#iferror:{{#time:U|{{{expiry}}}}} | ||
| <!-- Invalid expiry time --> | | <!-- Invalid expiry time --> | ||
|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | ||
| <!-- Notice current --> | | <!-- Notice current --> | ||
|[[Category:Expired editnotice]] <!-- Notice expired --> | |[[Category:Expired editnotice]] <!-- Notice expired --> | ||
− | }}}}}} | + | }} |
+ | }} | ||
+ | }} | ||
+ | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 04:33, 10 September 2014
{{{1}}} |
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |