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

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Adding detection of "create" protection.)
imported>Davidgothberg
(Adding check for the images from the image upload interface, since they are obvious targets.)
Line 56: Line 56:
 
   | Padlock-skyblue.svg
 
   | Padlock-skyblue.svg
 
   | Cscr-featured.svg
 
   | Cscr-featured.svg
 +
 +
  <!-- Images from the image upload interface: -->
 +
  | Icon - upload photo.svg
 +
  | Commons-logo-en.svg
 +
  | Questionmark copyright.svg
 +
  | Gtk-go-back-ltr.svg
 +
  | Emblem-important.svg
 +
  | Searchtool.svg
 +
  | Cc-nc white.svg
 +
  | Cc-nd white.svg
 +
  | Green check.png
  
 
   <!-- The 50 most used images on Wikipedia: -->
 
   <!-- The 50 most used images on Wikipedia: -->

Revision as of 19:53, 2 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.