Difference between revisions of "Template:Editnotice/notice/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Andy M. Wang
m (2 sp)
imported>Andy M. Wang
(note needs to be after expiry; move down along with switch)
Line 1: Line 1:
{{#switch:{{#titleparts: {{FULLPAGENAME}}|2}}
+
{{Notice|This editnotice {{#switch:{{#titleparts: {{FULLPAGENAME}}|2}}
  | Template:Editnotices/Page
 
  | Template:Editnotices/Protection = {{#ifexist:{{#titleparts:{{FULLPAGENAME}}|0|3}}
 
    |{{#ifeq:{{#invoke:redirect|isRedirect|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|yes
 
      | <br /><span style="color:#090">Note:</span> ''[[:{{#titleparts:
 
        {{FULLPAGENAME}} |0|3}}]]'' redirects to {{#invoke:redirect|main
 
        |{{#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}}}}
 
    | sysop | templateeditor | extendedconfirmed | autoconfirmed =
 
    | #default = [[Category:Editnotices with unsalted non-existent targets]]
 
    }}
 
  }}
 
}} {{Notice|This editnotice {{#switch:{{#titleparts: {{FULLPAGENAME}}|2}}
 
 
   | Template:Editnotices/Namespace  = (for [[Wikipedia:Namespace|the {{#titleparts: {{FULLPAGENAME}} |1|3}} namespace]])
 
   | Template:Editnotices/Namespace  = (for [[Wikipedia:Namespace|the {{#titleparts: {{FULLPAGENAME}} |1|3}} namespace]])
 
   | Template:Editnotices/Group      = (for [[:{{#titleparts: {{FULLPAGENAME}} |0|3}}]] and its subpages)
 
   | Template:Editnotices/Group      = (for [[:{{#titleparts: {{FULLPAGENAME}} |0|3}}]] and its subpages)
Line 32: Line 17:
 
   }}
 
   }}
 
  }}. To adjust this setting, please update the {{para|expiry}} parameter.
 
  }}. To adjust this setting, please update the {{para|expiry}} parameter.
 +
{{#switch:{{#titleparts: {{FULLPAGENAME}}|2}}
 +
  | Template:Editnotices/Page
 +
  | Template:Editnotices/Protection = {{#ifexist:{{#titleparts:{{FULLPAGENAME}}|0|3}}
 +
    |{{#ifeq:{{#invoke:redirect|isRedirect|{{#titleparts:{{FULLPAGENAME}}|0|3}}}}|yes
 +
      | <br /><span style="color:#090">Note:</span> ''[[:{{#titleparts:
 +
        {{FULLPAGENAME}} |0|3}}]]'' redirects to {{#invoke:redirect|main
 +
        |{{#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}}}}
 +
    | sysop | templateeditor | extendedconfirmed | autoconfirmed =
 +
    | #default = [[Category:Editnotices with unsalted non-existent targets]]
 +
    }}
 +
  }}
 +
}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:41, 7 September 2016

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

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