Difference between revisions of "Template:Editnotice/notice"

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
(space)
imported>JJMC89
(only show the move link to those that can move it)
Line 22: 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}}. {{#ifeq:{{{redirect}}}|yes||[{{fullurl:Special:MovePage|wpOldTitle={{urlencode:{{FULLPAGENAME}}}}&wpNewTitle={{urlencode:{{#titleparts:{{FULLPAGENAME}}|2|1}}/{{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}}}&wpReason={{urlencode:Page now at {{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}}}&wpMovetalk=1&wpLeaveRedirect=0}} Move this editnotice to that page.][[Category:Editnotices whose targets are redirects]]}}}}
+
       | <br /><span style="color:#050">Note:</span> ''[[:{{#titleparts:{{FULLPAGENAME}}|0|3}}]]'' redirects to {{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}. {{#ifeq:{{{redirect}}}|yes||<span class="sysop-show templateeditor-show extendedmover-show">[{{fullurl:Special:MovePage|wpOldTitle={{urlencode:{{FULLPAGENAME}}}}&wpNewTitle={{urlencode:{{#titleparts:{{FULLPAGENAME}}|2|1}}/{{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}}}&wpReason={{urlencode:Page now at {{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}}}&wpMovetalk=1&wpLeaveRedirect=0}} Move this editnotice to that page.]</span>[[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 =

Revision as of 03:01, 20 April 2020

Template documentation[view] [edit] [history] [purge]

Called from {{Editnotice}}. For more details, see {{Editnotice/doc}}.