MediaWiki:Protectedpagetext: Difference between revisions
From Test Wiki
Content deleted Content added
Updated. |
"$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. |
||
| Line 3: | Line 3: | ||
| style = width: 100% |
| style = width: 100% |
||
| image = [[File:OOjs UI icon lock-destructive.svg|middle|20px|alt=|link=]] |
| image = [[File:OOjs UI icon lock-destructive.svg|middle|20px|alt=|link=]] |
||
| 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 |
|||
| text = {{#ifexist: {{FULLPAGENAME}} |
|||
| user = '''registered users''' |
|||
| {{#switch: $1 | protect |
|||
| ⚫ | |||
| editprotected = This page is '''protected''' and can only be edited by '''[[Test Wiki:Administrators|administrators]]'''. |
|||
| protect | editprotected = '''[[Test Wiki:Administrators|administrators]]''' |
|||
| ⚫ | |||
| user = This page is '''protected''' and can only be edited by '''registered users'''. |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}}. |
|||
| ⚫ | |||
}} |
|||
| <!-- 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'''. |
|||
| editsemiprotected = This page is '''protected''' and can only be created by '''[[Test Wiki:Autoconfirmed users|autoconfirmed users]]'''. |
|||
| ⚫ | |||
| 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.}}}} |
|||
}} |
}} |
||