Difference between revisions of "Template:Editnotice/notice"

From blackwiki
Jump to navigation Jump to search
imported>JJMC89
({{pagelinks}})
imported>JJMC89
(Add move link to move the editnotice to the redirect target)
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:
+
       | <br /><span style="color:#050">Note:</span> ''[[:{{#titleparts:{{FULLPAGENAME}}|0|3}}]]'' redirects to {{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}.<!--
        {{FULLPAGENAME}} |0|3}}]]'' redirects to {{#invoke:redirect|main
+
      -->{{#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]]}}}}
        |{{#titleparts:{{FULLPAGENAME}}|0|3}}|bracket=yes}}.<!--
 
        ([[{{#titleparts: {{FULLPAGENAME}}|2}}/{{#invoke:redirect|main|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|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 =

Revision as of 02:18, 20 April 2020

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

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