Difference between revisions of "Module:Editnotice"
Jump to navigation
Jump to search
Module documentation[create]
blackwiki>Frietjes m |
blackwiki>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> | ||
Revision as of 12:33, 10 September 2014
| {{{1}}} |
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |