Difference between pages "Template:Editnotice/notice" and "Template:Editnotice/notice/sandbox"
(Difference between pages)
Jump to navigation
Jump to search
imported>Jackmcbarn (try that again, this time without somehow nuking most of the content) |
imported>Andy M. Wang (conditional link to redirect editnotice?) |
||
Line 6: | Line 6: | ||
| #default = editnotice | | #default = editnotice | ||
}} {{#switch:{{lc:{{{expiry|¬}}}}} | }} {{#switch:{{lc:{{{expiry|¬}}}}} | ||
+ | |infinite|never | ||
|indefinite = is set never to expire | |indefinite = is set never to expire | ||
| | | | ||
|¬ = does not have an expiry time set | |¬ = does not have an expiry time set | ||
|#default = {{#iferror:{{#time:U|{{{expiry}}}}} | |#default = {{#iferror:{{#time:U|{{{expiry}}}}} | ||
− | |{{error|has an invalid expiry time | + | |{{error|has an invalid expiry time}} |
|{{#ifexpr:{{#time:U|{{{expiry}}}}}>{{#time:U|{{CURRENTTIMESTAMP}}}} | |{{#ifexpr:{{#time:U|{{{expiry}}}}}>{{#time:U|{{CURRENTTIMESTAMP}}}} | ||
|will expire {{#time:H:i, j F Y|{{{expiry}}}}} (UTC) | |will expire {{#time:H:i, j F Y|{{{expiry}}}}} (UTC) | ||
Line 21: | Line 22: | ||
| Template:Editnotices/Protection = {{#ifexist:{{#titleparts:{{FULLPAGENAME}}|0|3}} | | Template:Editnotices/Protection = {{#ifexist:{{#titleparts:{{FULLPAGENAME}}|0|3}} | ||
|{{#ifeq:{{#invoke:redirect|isRedirect|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|yes | |{{#ifeq:{{#invoke:redirect|isRedirect|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|yes | ||
− | | <br /><span style="color:#050">Note:</span> ''[[:{{#titleparts:{{FULLPAGENAME}}|0|3}}]]'' redirects to {{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}} | + | | <br /><span style="color:#050">Note:</span> ''[[:{{#titleparts: |
+ | {{FULLPAGENAME}} |0|3}}]]'' redirects to {{#invoke:redirect|main | ||
+ | |{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}{{#ifexist:{{#titleparts: {{FULLPAGENAME}}|2}}/{{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}}} | ||
+ | |, which [[{{#titleparts: {{FULLPAGENAME}}|2}}/{{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|has an editnotice]]. | ||
+ | |. | ||
+ | }} | ||
+ | {{#ifeq:{{{redirect}}}|yes||[[Category:Editnotices whose targets are redirects]]}}}} | ||
|{{ #switch: {{#invoke:Effective protection level|create|{{#titleparts: {{FULLPAGENAME}} |0|3}}}} | |{{ #switch: {{#invoke:Effective protection level|create|{{#titleparts: {{FULLPAGENAME}} |0|3}}}} | ||
| sysop | templateeditor | extendedconfirmed | autoconfirmed = | | sysop | templateeditor | extendedconfirmed | autoconfirmed = |