Difference between revisions of "Template:Check file on delete/sandbox"
imported>Davidgothberg (Adding check for the images from the image upload interface, since they are obvious targets.) |
imported>Adem20 m (+template) |
||
| (One intermediate revision by one other user not shown) | |||
| 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. 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. <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: | ||
| Line 211: | Line 211: | ||
| * Upload: {{PROTECTIONLEVEL:upload}} | | * Upload: {{PROTECTIONLEVEL:upload}} | ||
}} | }} | ||
| − | Images are usually locally uploaded and protected here at the English Wikipedia since they are used in an interface message or in some widely used template. Don't delete such images, not even if it has a backup copy on Commons. | + | Images are usually locally uploaded and protected here at the English Wikipedia since they are used in an interface message or in some widely used template. Don't delete such images, not even if it has a backup copy on Commons. <small>([[Wikipedia talk:Cascade-protected items#About high-risk images|more about this]])</small> |
}} | }} | ||
| <!-- Not protected, do nothing --> | | <!-- Not protected, do nothing --> | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
| − | + | {{documentation}} | |
| − | |||
| − | {{ | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:07, 9 May 2017
| 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. (more about this) Unfortunately this file is currently not protected. |
| This is the template sandbox page for Template:Check file on delete (diff). See also the companion subpage for test cases. |
| This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes on the talk page before implementing them. |
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:
| 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. (more about this) Unfortunately this file is currently not protected. |
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.
| The above documentation is transcluded from Template:Check file on delete/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |