Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Micro Pedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Protected page text/doc
Template
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{used in system|in {{#switch:{{#titleparts:{{PAGENAME}}|1|2}}|interface=[[MediaWiki:Customcssprotected]] and [[MediaWiki:Customjsprotected]]|cascade=[[MediaWiki:cascadeprotected]]|user-json=[[MediaWiki:customjsonprotected]]|doc|sandbox|=system messages|#default=[[MediaWiki:Protectedpagetext]]}}}} {{Uses TemplateStyles|Template:Protected page text/styles.css}} 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 seven subtemplates already filled out with the settings for semi-protection, extended-confirmed protection, template protection, full protection, cascade protection, user JSON page protection, and user script protection: {{tl|Protected page text/semi}}, {{tl|Protected page text/extendedconfirmed}}, {{tl|Protected page text/template}}, {{tl|Protected page text/full}}, {{tl|Protected page text/cascade}}, {{tl|Protected page text/user-json}} and {{tl|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. __TOC__ == Syntax == === Pre-defined settings === ''' Semi-protection ''' {{tl|protected page text/semi}} ''' Extendedconfirmed protection ''' {{tl|protected page text/extendedconfirmed}} ''' Template protection ''' {{tl|protected page text/template}} ''' Full protection ''' {{tl|protected page text/full}} '''Pages transcluded in cascade-protected pages''' {{tl|protected page text/cascade}} ''' Protection of user JSON pages''' {{tl|protected page text/user-json}} ''' Protection of user scripts ''' {{tl|protected page text/interface}} === Manual settings === <syntaxhighlight lang="wikitext"> {{protected page text | image = | protection-message = | suggestions = | protection-reason = | login-message = | main-page-links = | template-links = | who-can-edit = | request-type = }} </syntaxhighlight> == Parameters == * {{para|image}} β The shackle image used in the top message box. Defaults to {{pval|Full-protection-shackle.svg}}. * {{para|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. * {{para|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 [[mw:Help:Extension:ParserFunctions##ifexist|#ifexist parser function]] to display the suggestions only on existing pages (i.e. to disable them on [[WP:SALT|create-protected]] pages). * {{para|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. * {{para|log-text}} β Optional text to use instead of the protection log explanation in the "Why is the page protected?" heading. * {{para|login-message}} β If this parameter is set with any text, the template displays a message about logging in and becoming [[WP:AUTOCONFIRMED|autoconfirmed]]. * {{para|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]]. * {{para|template-links}} β If this parameter is set with any text, and the current page is in the [[Wikipedia:Template namespace|template namespace]], the template will display links to the documentation and the template sandbox if they exist. * {{para|who-can-edit}} β The users that can edit pages protected at this level. This should start with a capital letter and include a grammatical article, e.g. <code><nowiki>An [[Wikipedia:Administrator|administrator]]</nowiki></code>. This parameter is required. * {{para|request-type}} β The value to send to the {{para|type}} parameter of [[Template:Submit an edit request]]. Possible values are {{pval|semi}}, {{pval|template}} and {{pval|full}}. This parameter is required. * {{para|hide-requestlower}} β If this parameter is set with any text, the template will hide the message about requesting lowering of protection at [[WP:RFPP]]. This is unlikely to be used except for pages subject to [[WP:Cascade-protection|cascade-protection]] and which will have it indefinitely (requests to lower the protection on that particular page must necessarily be declined). == Example == The following example uses the code for full protection. === Code === <syntaxhighlight lang="wikitext" style="white-space: pre-wrap;"> {{protected page text | protection-message = This page is currently [[Wikipedia:Protection policy#Full protection|protected]] so that only [[Wikipedia:Administrators|administrators]] can edit it. | 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 }} </syntaxhighlight> === Result === {{protected page text | protection-message = This page is currently [[Wikipedia:Protection policy#Full protection|protected]] so that only [[Wikipedia:Administrators|administrators]] can edit it. | 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 }} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here, and interwikis go in Wikidata --> {{uncat}} }}</includeonly>
Summary:
Please note that all contributions to Micro Pedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Micro Pedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:Fmbox
(
edit
)
Template:Mbox
(
edit
)
Template:Para
(
edit
)
Template:Param value
(
edit
)
Template:Protected page text
(
edit
)
Template:Pval
(
edit
)
Template:Replace
(
edit
)
Template:Sandbox other
(
edit
)
Template:Submit an edit request
(
edit
)
Template:Tl
(
edit
)
Template:Used in system
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Template talk:Protected page text/doc
(
edit
)
Module:Arguments
(
edit
)
Module:Clickable button 2
(
edit
)
Module:Effective protection level
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:Redirect
(
edit
)
Module:String
(
edit
)
Module:Submit an edit request
(
edit
)
Module:Submit an edit request/config
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/P
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Yesno
(
edit
)