MediaWiki:Protectedpagewarning: Difference between revisions

From Test Wiki
Content deleted Content added
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
Updating per Miraheze's Public Test Wiki.
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<strong>Warning:</strong> {{#switch: {{PROTECTIONLEVEL:edit}}
<div style="border: solid 1px #8888aa; background-color:#f9f9f9;">
| sysop = This page is '''protected''' and can only be edited by '''[[Test Wiki:Administrators|administrators]]'''.
&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>
| bureaucrat = This page is '''protected''' and can only be edited by '''[[Test Wiki:Bureaucrats|bureaucrats]]'''.
The latest log entry is provided below for reference:
| editsemiprotected = This page is '''protected''' and can only be edited by '''[[Test Wiki:Autoconfirmed users|autoconfirmed users]]'''.
</div>
| 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.
}} The latest log entry is provided for reference: