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)
 
"$2" becomes "create" when the page does not exist, so the use of "{{#ifexist:}}" is not necessary, furthermore, It would be illogical to see only "edited" when attempting to move, delete, or change protection of a protected page.
 
(43 intermediate revisions by 12 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 = This page is '''protected''' and can only be ''{{#switch:$2|create=created|edit=edited|move=moved|delete=deleted|protect=protected|#default=managed}}'' by {{#switch:$1
| {{Generic image names|protected}}
| user = '''registered users'''
| {{#switch: $1
| editsemiprotected = '''[[Test Wiki:Autoconfirmed users|autoconfirmed users]]'''
| protect | editprotected = {{protected page text/full|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Fully protected -->
| protect | editprotected = '''[[Test Wiki:Administrators|administrators]]'''
| templateeditor = {{protected page text/template|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Template protected -->
| bureaucrat = '''[[Test Wiki:Bureaucrats|bureaucrats]]'''
| extendedconfirmed = {{protected page text/extendedconfirmed|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Extendedconfirmed protected -->
| steward = '''[[Test Wiki:Stewards|stewards]]'''
| #default = {{protected page text/semi|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Semi-protected -->
| #default = users with certain privileges
}}{{#switch:$2|edit|create={{editnotice load|notice action = view}}}}
}}
}}.
|#default = <!-- defer to MediaWiki:Cascadeprotected -->
}}
}}
}}

Latest revision as of 05:41, 13 December 2025