MediaWiki talk:Protectedpagetext

Latest comment: 2 months ago by 2604:3D08:9476:BE00:54CE:32F2:7EBC:42BF in topic Protected edit request on 25 August 2024

Protected edit request on 25 August 2024

edit

I have created some protection templates similar to the ones used on sister projects Wikipedia and Meta (the latter of which is based on the former). Here’s the code I suggest:

<div class="mw-parser-output">
__NOTOC__{{#switch:{{CASCADINGSOURCES}}
 | {{FULLPAGENAME}}|= {{#ifexist:Template:Editnotices/Protection/{{FULLPAGENAME}}
    | {{Editnotices/Protection/{{FULLPAGENAME}}|$1|$2}}
    | {{#ifeq: {{#titleparts:{{FULLPAGENAME}}|1|1}} | Special:Upload
       | {{Generic image names|protected}}
       | {{#switch: $1
          | protect | editprotected = {{protected page text/full|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Fully protected -->
          | #default                = {{protected page text/semi|$1|$2|talk-protected={{#if:{{PROTECTIONLEVEL:edit|{{TALKPAGENAME}}}}|true|false}}}} <!-- Semi-protected -->
         }}{{#switch:$2|edit|create={{editnotice load|notice action = view}}}}
      }}
 |#default =
   }}
}}
</div>

2604:3D08:9476:BE00:54CE:32F2:7EBC:42BF 23:55, 25 August 2024 (UTC)Reply

Return to "Protectedpagetext" page.