Template:Protected page text/cascade
Why is the page protected?
What can I do?
|
| This template uses TemplateStyles: |
This template displays the text that users see when they do not have permission to edit a page. This template was created to encourage reuse of code in the MediaWiki messages that display said errors.
For convenience, there are five subtemplates already filled out with the settings for semi-protection, full protection, cascade protection, user JSON page protection, and user script protection: {{Protected page text/semi}}, {{Protected page text/full}}, {{Protected page text/cascade}}, {{Protected page text/user-json}} and {{Protected page text/interface}}. It is recommended that you use these subtemplates, as this will allow you to benefit from future updates to the templates.
Syntax
[edit source]Pre-defined settings
[edit source]Semi-protection {{protected page text/semi}}
Full protection {{protected page text/full}}
Pages transcluded in cascade-protected pages {{protected page text/cascade}}
Protection of user JSON pages {{protected page text/user-json}}
Protection of user scripts {{protected page text/interface}}
Manual settings
[edit source]{{protected page text
| image =
| protection-message =
| suggestions =
| protection-reason =
| login-message =
| main-page-links =
| template-links =
| who-can-edit =
| request-type =
}}
Parameters
[edit source]|image=– The shackle image used in the top message box. Defaults toFull-protection-shackle.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 Talk:Main Page.|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 a link to a page, e.g.An [[Wikiversity:Administrator|administrator]]. This parameter is required.|request-type=– The value to send to the|type=parameter of Template:Submit an edit request. Possible values aresemiandfull. This parameter is required.|hide-requestlower=– If this parameter is set with any text, the template will hide the message about requesting lowering of protection at WV:RCA. This is unlikely to be used except for pages subject to cascade-protection and which will have it indefinitely (requests to lower the protection on that particular page must necessarily be declined).
Example
[edit source]The following example uses the code for full protection.
Code
[edit source]{{protected page text
| image = {{#ifeq:{{{2|}}}|edit|Full|{{{2|Full}}}}}-protection-shackle.svg
| protection-message = This page is currently [[Wikiversity:Page protection#{{#switch:{{{2}}}|move=Move|create=Create|Full}} protection|protected]] so that only [[Wikiversity:Custodianship|administrators]] can {{{2}}} it.
| suggestions = {{#ifexist: {{FULLPAGENAME}} | yes}}
| protection-reason = Some [[WV:FAQ/Templates|templates]] and site interface pages are permanently [[Wikiversity:Page protection#Full protection|protected]] due to visibility. Occasionally, pages are temporarily protected because of editing disputes. Most pages can be edited by anyone.
| main-page-links = yes
| template-links = yes
| who-can-edit = An [[Wikiversity:Custodianship|administrator]]
| request-type = {{#if:{{yesno|{{{manual-editrequest|}}}}}|manual|full}}
| attempted-action = {{{2}}}
| talk-protected = {{{talk-protected|false}}}
}}
Result
[edit source]
Why is the page protected?
What can I do?
|