Difference between revisions of "Template:Check file on delete/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(This should solve the white space problem.)
imported>Davidgothberg
(Adding detection of "create" protection.)
Line 55: Line 55:
 
   | Padlock-black.svg
 
   | Padlock-black.svg
 
   | Padlock-skyblue.svg
 
   | Padlock-skyblue.svg
 +
  | Cscr-featured.svg
  
 
   <!-- The 50 most used images on Wikipedia: -->
 
   <!-- The 50 most used images on Wikipedia: -->
Line 160: Line 161:
 
   | Baseball (crop).jpg = high-risk
 
   | Baseball (crop).jpg = high-risk
  
   }} {{{test1|}}} <noinclude>aaa</noinclude>
+
   }} {{{demo1|}}} <noinclude>aaa</noinclude>
  
 
| {{fmbox
 
| {{fmbox
Line 168: Line 169:
 
   | text =  
 
   | text =  
 
'''Warning!''' This file is used in a system message or is one of the most widely used images. Such high-risk images should be locally uploaded and protected here at the English Wikipedia. Don't delete this image, not even if it has a backup copy on Commons. {{
 
'''Warning!''' This file is used in a system message or is one of the most widely used images. Such high-risk images should be locally uploaded and protected here at the English Wikipedia. Don't delete this image, not even if it has a backup copy on Commons. {{
     #if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:upload}}
+
     #if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:create}} {{PROTECTIONLEVEL:upload}}
 
     | <br />This file has the following protections set:
 
     | <br />This file has the following protections set:
 
       {{#if: {{PROTECTIONLEVEL:edit}}
 
       {{#if: {{PROTECTIONLEVEL:edit}}
Line 174: Line 175:
 
       }}{{#if: {{PROTECTIONLEVEL:move}}  
 
       }}{{#if: {{PROTECTIONLEVEL:move}}  
 
       | * Move: {{PROTECTIONLEVEL:move}}
 
       | * Move: {{PROTECTIONLEVEL:move}}
 +
      }}{{#if: {{PROTECTIONLEVEL:create}}
 +
      | * Create: {{PROTECTIONLEVEL:create}}
 
       }}{{#if: {{PROTECTIONLEVEL:upload}}  
 
       }}{{#if: {{PROTECTIONLEVEL:upload}}  
 
       | * Upload: {{PROTECTIONLEVEL:upload}}
 
       | * Upload: {{PROTECTIONLEVEL:upload}}
Line 181: Line 184:
 
   }}
 
   }}
 
| <!-- Not listed as high-risk, so check if protected -->
 
| <!-- Not listed as high-risk, so check if protected -->
   {{#if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:upload}} {{{test2|}}}
+
   {{#if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:create}} {{PROTECTIONLEVEL:upload}} {{{demo2|}}}
 
   | {{fmbox
 
   | {{fmbox
 
     | type = warning
 
     | type = warning
Line 192: Line 195:
 
       }}{{#if: {{PROTECTIONLEVEL:move}}  
 
       }}{{#if: {{PROTECTIONLEVEL:move}}  
 
       | * Move: {{PROTECTIONLEVEL:move}}
 
       | * Move: {{PROTECTIONLEVEL:move}}
 +
      }}{{#if: {{PROTECTIONLEVEL:create}}
 +
      | * Create: {{PROTECTIONLEVEL:create}}
 
       }}{{#if: {{PROTECTIONLEVEL:upload}}  
 
       }}{{#if: {{PROTECTIONLEVEL:upload}}  
 
       | * Upload: {{PROTECTIONLEVEL:upload}}
 
       | * Upload: {{PROTECTIONLEVEL:upload}}

Revision as of 12:26, 2 October 2011