MediaWiki:Protectedpagewarning: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
(Trying to fix a bug where both bureaucrats and admins have the same protected page warning using the switch function, hopefully this works and doesn't destroy everything)
m (Text replacement - "administrator =" to "sysop =")
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div style="border: solid 1px #8888aa; background-color:#f9f9f9;">
{{Editnotice
&nbsp;[[Image:Padlock.svg|20px]]<strong>Warning: This page has been protected so that only users with {{#switch: {{PROTECTIONLEVEL:edit}} | sysop = administrator | bureaucrat = bureaucrat | certain }} privileges can edit it.</strong>
| type = error
The latest log entry is provided below for reference:
| style = width: 100%
</div>
| image = [[File:OOjs UI icon lock-destructive.svg|middle|20px|alt=|link=]]
| text = '''Warning:''' {{#switch: {{PROTECTIONLEVEL:edit}}
    | sysop = This page is '''protected''' and can only be edited by '''[[Test Wiki:Administrators|administrators]]'''.
    | bureaucrat = This page is '''protected''' and can only be edited by '''[[Test Wiki:Bureaucrats|bureaucrats]]'''.
    | user = This page is '''protected''' and cannot be edited by '''unregistered users'''.
    | autoconfirmed = This page is '''protected''' and cannot be edited by '''unregistered users'''.
    | steward = This page is '''protected''' and can only be edited by '''[[Test Wiki:Stewards|stewards]]'''.
    | #default = This page is '''protected''' and can only be edited by users with certain privileges.
    }} <br/> The latest log entry is provided for reference:
}}

Latest revision as of 13:09, 2 April 2024