MediaWiki:Protectedpagetext: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Mediawiki talk>ToBeFree
Tell {{protected page text/level}} if the corresponding talk page is protected. Currently used to disable showing the blue button in this case, but useful in general. See Special:Permalink/1034886159#Changes_at_Requests_for_page_protection for details. (From the sandbox at MediaWiki talk:Protectedpagetext/sandbox; see that page's history for attribution and license)
 
consistency
Tags: Mobile edit Mobile web edit
 
(41 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Editnotice
__NOTOC__{{#switch:{{CASCADINGSOURCES}}
| type = error
| {{FULLPAGENAME}}|= {{#ifexist: Template:Editnotices/Protection/{{FULLPAGENAME}}
| style = width: 100%
| {{Template:Editnotices/Protection/{{FULLPAGENAME}}|$1|$2}}
| image = [[File:OOjs UI icon lock-destructive.svg|middle|20px|alt=|link=]]
| {{#ifeq: {{#titleparts:{{FULLPAGENAME}}|1|1}} | Special:Upload
| text = {{#ifexist: {{FULLPAGENAME}}
| {{Generic image names|protected}}
| {{#switch: $1
| {{#switch: $1 | protect
| sysop = This page is '''protected''' and can only be edited by '''[[Test Wiki:Administrators|administrators]]'''.
| protect | editprotected = {{protected page text/full|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Fully protected -->
| bureaucrat = This page is '''protected''' and can only be edited by '''[[Test Wiki:Bureaucrats|bureaucrats]]'''.
| templateeditor = {{protected page text/template|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Template protected -->
| user = This page is '''protected''' and can only be edited by '''registered users'''.
| extendedconfirmed = {{protected page text/extendedconfirmed|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Extendedconfirmed protected -->
| autoconfirmed = This page is '''protected''' and can only be edited by '''[[Test Wiki:autoconfirmed users|autoconfirmed users]]'''.
| #default = {{protected page text/semi|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Semi-protected -->
| steward = This page is '''protected''' and can only be edited by '''[[Test Wiki:Stewards|stewards]]'''.
}}{{#switch:$2|edit|create={{editnotice load|notice action = view}}}}
| #default = This page is '''protected''' and can only be edited by users with certain privileges.
}}
}}
|#default = <!-- defer to MediaWiki:Cascadeprotected -->
| <!-- creation protection --> {{#switch: {{PROTECTIONLEVEL:create}}
}}
| sysop = This page is '''protected''' and can only be created by '''[[Test Wiki:Administrators|administrators]]'''.
}}
| user = This page is '''protected''' and can only be created by '''registered users'''.
| autoconfirmed = This page is '''protected''' and can only be created by '''[[Test Wiki:autoconfirmed users|autoconfirmed users]]'''.
| bureaucrat = This page is '''protected''' and can only be created by '''[[Test Wiki:Bureaucrats|bureaucrats]]'''.
| steward = This page is '''protected''' and can only be created by '''[[Test Wiki:Stewards|stewards]]'''.
| #default = This page is '''protected''' and can only be created by users with certain privileges.}}}}}}

Latest revision as of 12:04, 7 April 2024