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

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
(Adding that this template now also warns for known high-risk files.)
imported>Davidgothberg
(Noting that this template now also detects "create" protection, and updating the test1 parameter to its new name demo1.)
Line 7: Line 7:
 
This template is normally only used by the system, it is called from [[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 is normally only used by the system, it is called from [[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 three kinds of protection: edit, move 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 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:
 
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:
  
{{check file on delete|test1=yes}}
+
{{check file on delete|demo1=yes}}
  
  

Revision as of 12:58, 2 October 2011

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

This template is normally only used by the system, it is called from 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.