• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Beta Wikipedia

Template:Protected page text/template

  • Template
  • Discussion
  • Language
  • Watch
  • Edit
< Template:Protected page text
This page is currently protected and can be edited only by template editors and administrators.

Why is the page protected?

  • Some templates and site interface pages are permanently protected due to visibility. Most templates can be edited by anyone.
  • The reason for protection can be found in the protection log. If there are no relevant entries in the protection log, the page may have been moved after being protected.

What can I do?

  • This template has a documentation page – Template:Protected page text/template/doc – which may be freely edited.
  • Discuss this page with others.
  • For move-protected pages, see requested moves.
  • Request that the page's protection level be reduced.
  • Find out more about how to get started editing Wikipedia.
  • If you have noticed an error or have a suggestion for a simple, non-controversial change, you can submit an edit request, by clicking the button below and following instructions. An administrator or template editor may then make the change on your behalf. Please check the talk page first in case the issue is already being discussed.
  • Submit an edit request

Template documentation[view] [edit] [history] [purge]
This template is used in MediaWiki:Protectedpagetext and MediaWiki:Cascadeprotected.
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 at the talk page before implementing them.

This template displays the text that users see when they do not have permission to edit a page. Specifically, it is used in MediaWiki:Protectedpagetext and MediaWiki:Cascadeprotected, the system messages that are shown when users cannot edit a page due to normal protection (semi, template or full) or cascading protection. Other system messages are also shown in this situation, but the display from this template is the largest and most visible. This template was created to encourage reuse of code in both messages.

For convenience, there are three subtemplates already filled out with the settings for semi-protection, template protection and full protection: {{Protected page text/semi}}, {{Protected page text/template}} and {{Protected page text/full}}. It is recommended that you use these subtemplates, as this will allow you to benefit from future updates to the templates.

Syntax

edit

Pre-defined settings

edit
Semi-protection
{{protected page text/semi}}
Extended confirmed protection
{{protected page text/extendedconfirmed}}
Template protection
{{protected page text/template}}
Full protection
{{protected page text/full}}

Manual settings

edit
{{protected page text
| image = 
| protection-message = 
| suggestions = 
| protection-reason = 
| login-message = 
| main-page-links = 
| template-links = 
| who-can-edit = 
| request-type = 
}}

Parameters

edit
  • image - The padlock image used in the top message box. Defaults to Padlock.svg.
  • protection-message - The message inside the top message box. This should explain that the page is protected, and who can edit it. This parameter is required.
  • suggestions - If this parameter is set with any text, the template shows the "Why is the page protected?" and "What can I do?" headings with a list of suggestions on what actions editors can take upon discovering that they can't edit the page. This parameter can be used with the #ifexist parser function to display the suggestions only on existing pages (i.e. to disable them on create-protected pages).
  • protection-reason - The general reasons why pages of a given protection level might be protected. This is the first bullet point under the "Why is the page protected?" heading. This parameter is required.
  • log-text - Optional text to use instead of the protection log explanation in the "Why is the page protected?" heading.
  • login-message - If this parameter is set with any text, the template displays a message about logging in and becoming autoconfirmed.
  • main-page-links - If this parameter is set with any text, and the current page is the Main Page, the template displays advice for new editors and a link to Wikipedia:Main Page/Errors.
  • template-links - If this parameter is set with any text, and the current page is in the template namespace, the template will display links to the documentation and the template sandbox if they exist.
  • who-can-edit - The users that can edit pages protected at this level. This should start with a capital letter and include an article, e.g. An [[Wikipedia:Administrator|administrator]]. This parameter is required.
  • request-type - The value to send to the |type= parameter of Template:Submit an edit request. Possible values are semi, template and full. This parameter is required.

Example

edit

The following example uses the code for full protection.

Code

edit
{{protected page text
| protection-message = This page is currently [[Wikipedia:Protection policy#Full protection|protected]] and can be edited only by [[Wikipedia:Administrators|administrators]].
| suggestions = {{#ifexist: {{FULLPAGENAME}} | yes}}
| protection-reason = Some [[Wikipedia:Template messages|templates]] and site interface pages are permanently [[Wikipedia:Protection policy#Full protection|protected]] due to visibility. Occasionally, articles are temporarily protected because of [[Wikipedia:Edit war|editing disputes]]. Most articles can be edited by anyone.
| main-page-links = yes
| template-links = yes
| who-can-edit = An [[Wikipedia:Administrators|administrator]]
| request-type = full
}}

Result

edit
This page is currently protected and can be edited only by administrators.

Why is the page protected?

  • Some templates and site interface pages are permanently protected due to visibility. Occasionally, articles are temporarily protected because of editing disputes. Most articles can be edited by anyone.
  • The reason for protection can be found in the protection log. If there are no relevant entries in the protection log, the page may have been moved after being protected.

What can I do?

  • This template has a documentation page – Template:Protected page text/template/doc – which may be freely edited.
  • Discuss this page with others.
  • For move-protected pages, see requested moves.
  • Request that the page's protection level be reduced.
  • Find out more about how to get started editing Wikipedia.
  • If you have noticed an error or have a suggestion for a simple, non-controversial change, you can submit an edit request, by clicking the button below and following instructions. An administrator may then make the change on your behalf. Please check the talk page first in case the issue is already being discussed.
  • Submit an edit request

The above documentation is transcluded from Template:Protected page text/template/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.beta.wmcloud.org/w/index.php?title=Template:Protected_page_text/template&oldid=596259"
Last edited on 21 July 2023, at 22:12

Languages

      This page is not available in other languages.

      Beta Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited 22:12, 21 July 2023 by Beta Wikipedia user No se. Based on work by Beta Wikipedia users Protected interface and Jackmcbarn and Beta Wikipedia anonymous user imported>Mr. Stradivarius.
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of use
      • Desktop