Template:Editnotice: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Frietjes mNo edit summary |
meta>John of Reading 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> |