MediaWiki:Protectedpagetext: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
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:
__NOTOC__{{#switch:{{CASCADINGSOURCES}}
{{Editnotice
| {{FULLPAGENAME}}|= {{#ifexist: Template:Editnotices/Protection/{{FULLPAGENAME}}
| type = error
    | {{Template:Editnotices/Protection/{{FULLPAGENAME}}|$1|$2}}
| style = width: 100%
    | {{#ifeq: {{#titleparts:{{FULLPAGENAME}}|1|1}} | Special:Upload
| image = [[File:OOjs UI icon lock-destructive.svg|middle|20px|alt=|link=]]
      | {{Generic image names|protected}}
| text = {{#ifexist: {{FULLPAGENAME}}
      | {{#switch: $1
| {{#switch: $1 | protect  
          | protect | editprotected = {{protected page text/full|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Fully protected -->
    | sysop = This page is '''protected''' and can only be edited by '''[[Test Wiki:Administrators|administrators]]'''.
          | templateeditor          = {{protected page text/template|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Template protected -->
    | bureaucrat = This page is '''protected''' and can only be edited by '''[[Test Wiki:Bureaucrats|bureaucrats]]'''.
          | extendedconfirmed      = {{protected page text/extendedconfirmed|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Extendedconfirmed protected -->
    | user = This page is '''protected''' and can only be edited by '''registered users'''.
          | #default                = {{protected page text/semi|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Semi-protected -->
    | autoconfirmed = This page is '''protected''' and can only be edited by '''[[Test Wiki:autoconfirmed users|autoconfirmed users]]'''.
        }}{{#switch:$2|edit|create={{editnotice load|notice action = view}}}}
    | 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.
|#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