Difference between revisions of "Template:Editnotice"
From Timelines
(should be fine) |
(fixing in case of invalid expiry) |
||
Line 36: | Line 36: | ||
{{{text|{{{1}}}}}} | {{{text|{{{1}}}}}} | ||
}} | }} | ||
− | }}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 | + | }}<includeonly>{{#ifeq:{{FULLROOTPAGENAME}}|Template:Editnotice|{{#iferror:{{#time:U|{{{expiry}}}}} |
− | | | + | | <!-- Invalid expiry time --> |
− | |[[Category:Expired | + | |{{#ifexpr:{{#time:U|{{{expiry}}}}}-{{#time:U|{{CURRENTTIMESTAMP}}}}>0 |
+ | | <!-- Notice current --> | ||
+ | |[[Category:Expired editnotice]] <!-- Notice expired --> | ||
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 12:26, 1 July 2013
{{{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. |