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

From blackwiki
Jump to navigation Jump to search
imported>Davidgothberg
m (Changed protection level of Template:Check page on delete: Highly visible template: Called from the system mesage MediaWiki:Confirmdeletetext. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
imported>Davidgothberg
(Now also detecting create protection. Should never happen, but doesn't hurt to detect everything.)
Line 1: Line 1:
{{#if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:upload}} {{{test|}}}
+
{{#if: {{PROTECTIONLEVEL:edit}} {{PROTECTIONLEVEL:move}} {{PROTECTIONLEVEL:create}} {{PROTECTIONLEVEL:upload}} {{{demo|}}}  
 
| {{fmbox
 
| {{fmbox
 
   | type = warning
 
   | type = warning
Line 10: Line 10:
 
     }}{{#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 17:19, 2 October 2011


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

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

This template is normally only used by the system, it is called from MediaWiki:Confirmdeletetext. It displays a warning message when an admin tries to delete a protected page, for instance a protected article.

This template detects all three kinds of protection: edit, move and upload protection. It warns even if it is only semi-protection.

If the page is not protected at all this template produces no output.

This template is sometimes also called in file space. That is, MediaWiki:Confirmdeletetext and thus this template is also called when deleting file pages that have no locally uploaded file.

See also

  • {{check file on delete}} – The warning message for file pages that do have a locally uploaded file.