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

From blackwiki
Jump to navigation Jump to search
imported>Dinoguy1000
(maybe it's just me, but this sentence makes more sense if it specifies that we're on Wikipedia =) )
imported>Dinoguy1000
(should have done some proofreading)
Line 179: Line 179:
 
   | id = mw-filedelete-intro-high-risk
 
   | id = mw-filedelete-intro-high-risk
 
   | text =  
 
   | text =  
'''Warning!''' This file is used in a system message or is one of the most widely used images on Wikipedia. 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. <small>([[Wikipedia talk:Cascade-protected items#About high-risk images|more about this]])</small> {{
+
'''Warning!''' This file is used in a system message or is one of the most widely used images on the English Wikipedia. Such high-risk images should be locally uploaded and protected here. Don't delete this image, not even if it has a backup copy on Commons. <small>([[Wikipedia talk:Cascade-protected items#About high-risk images|more about this]])</small> {{
 
     #if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:create}} {{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:

Revision as of 05:38, 5 October 2011


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

This is the {{check file on delete}} template.

This template is normally only used by the system, it is called from MediaWiki:Confirmdeletetext and MediaWiki:Filedelete-intro. It displays a warning message when an admin tries to delete a protected file or a known high-risk file.

This template detects all four kinds of protection: edit, move, create and upload protection. It warns even if it is only semi-protection. It then displays a message as seen above this documentation box.

This template also checks against a list of images used in system messages and a list of the most widely used images. If a match is found it displays this message:


If the file is not protected at all and is not a known high-risk image then this template produces no output.

See also

  • {{check page on delete}} – The warning message for normal pages, and for file pages that have no locally uploaded file.