Template:Pp-meta

From PS:1 Wiki Dev
Jump to navigationJump to search

{{#ifeq:{{#switch:{{{type}}}

 |move={{#ifeq:
     {{#switch:undefined
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:undefined
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |yes|no
   }}
 |template={{#if:
     {{#switch:undefined
       |templateeditor |template      = templateeditor
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |yes|no
   }}
 |pc1 ={{#ifeq:
     {{#switch:undefined
       |pc1                           = autoconfirmed 
       |undefined                     = Template:PENDINGCHANGELEVEL
       |#default                      = }}
     |autoconfirmed
     |yes|no
   }}
 |pc2 ={{#ifeq:
     {{#switch:undefined
       |pc2                           = review 
       |undefined                     = Template:PENDINGCHANGELEVEL
       |#default                      = }}
     |review
     |yes|no
   }}

|#default={{#if:

     {{#switch:undefined
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |{{#ifeq:{{#switch:
                |semi |autoconfirmed           = autoconfirmed
                |administrator |full |sysop    = sysop
                |#default                      = }}
        |{{#switch:undefined
           |semi |autoconfirmed           = autoconfirmed
           |administrator |full |sysop    = sysop
           |undefined                     = 
           |#default                      = }}
        |no|yes
      }}
  |no}}

}}|yes|{{#ifeq:|yes|

| {{

 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|template talk
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | project = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | book = ombox | extension = ombox | other | #default = ombox

}} | type = protection | image = [[Image:{{#switch:{{{type}}}

|full=Padlock.svg
|semi=Padlock-silver.svg
|pc1=Padlock-silver-light.svg
|pc2=Padlock-orange.svg
|move=Padlock-olive.svg
|template=Padlock-pink.svg
|indef=Padlock-red.svg
|office=Padlock-black.svg
|create=Padlock-skyblue.svg
|#default=Transparent.gif

}}|40px|{{#ifeq:{{{type}}}|template

                        |{{#switch:10
                          |10|828=This is a permanently protected {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}}
                          |#default=This page is permanently protected
                         }}
                        |This page is {{#switch:{{{type}}}
                                       |pc1=protected with pending changes level 1
                                       |pc2=protected with pending changes level 2
                                       |semi=semi-protected
                                       |move=move-protected
                                       |indef=permanently protected
                                       |create=creation-protected
                                       |office=protected
                                       |full
                                       |#default=protected
                                      }}
                       }}.]]

| imageright = | class = | style = | textstyle = | text = {{#switch:{{{type}}}

|full=This page is currently protected from editing
|semi=Editing of this {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} by new or unregistered users is currently disabled
|pc1=All edits made to this {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} by new or unregistered users are currently subject to review
|pc2=All edits made to this {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} by users who are not reviewers or administrators are currently subject to review
|move=This {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} is currently protected from page moves
|template=This is a permanently protected {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}}, as it is high-risk
|indef=This page is protected from editing indefinitely
|office=This {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} is currently protected from editing
|create=Recreation of this {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} has been disabled

}}{{#ifeq:{{{type}}}|indef||{{#if:| until {{#time:F j, Y|{{{expiry}}}}}{{#if:|,}}}}}}{{{reason}}}.
{{#ifeq:{{{dispute}}}|yes|This protection is
not an endorsement of the {{#ifeq:{{{type}}}|move|current title|current version}}.}} See the protection policy and | pc1 | pc2 = stable | #default = protect }}&page=Template:Pp-meta {{#switch:{{{type}}} | pc1 | pc2 = pending changes | #default = protection }} log for more details. {{#switch:{{{type}}}

|full|indef=Please discuss any changes on the [[Template talk:Pp-meta#{{#if:|{{{section}}}|top}}|talk page]]; you may use the {{edit protected{{#if:|

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}} template to ask an administrator to make an edit if it is supported by consensus. {{#ifeq:Template|MediaWiki||You may also request that this page be unprotected.}}

|semi=If you cannot edit this {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|Module        = module
|#default             = page}}}} and you wish to make a change, you can {{#ifeq:Template|Template talk||request an edit, discuss changes on the talk page,}} request unprotection, log in, or create an account.
|move=The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the talk page or at Wikipedia:Requested moves.  You can also request that the page be unprotected.  
|template=Please discuss any changes on the [[Template talk:Pp-meta#{{#if:|{{{section}}}|top}}|talk page]]; you may use the {{edit protected{{#if:|

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}} template to ask an administrator or template editor to make an edit if it is supported by consensus. {{#ifeq:Template|MediaWiki||You may also request that this page be unprotected.}}

|office=If you can edit this page, please discuss all changes and additions on the talk page first. Do not remove protection from this page unless you are authorized by the Wikimedia Foundation to do so.
|create=Please see the {{#if:|[[{{{xfd}}}|deletion discussion]] or the}} deletion log for details of why this page was deleted. If you would like to create a page at this title, you must first request for it to be unprotected, or contact the administrator who deleted the page for the deleted material to be restored. If unsuccessful, you can use deletion review.

}} | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = Pp-meta }} }}|}}

{{#ifeq: Pp-meta | sandbox |

Template:Template sandbox notice }}{{documentation/start box{{#if: |/}} | preload = | heading = ¬ | heading-style = | content =

| docpage =

 {{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Pp-meta | sandbox | testcases = Pp-meta | #default = Pp-meta }}/doc

 }}

| doc exist =

 {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Pp-meta | sandbox | testcases = Pp-meta | #default = Pp-meta }}/doc

   }}
 | yes
 }}

}} {{#switch: {{#if:|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:{{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Pp-meta | sandbox | testcases = Pp-meta | #default = Pp-meta }}/doc|1|0}} | 0000 | 0100 | 0010 | 0101 = | 0001 | 0011 = {{ {{#switch: Template

 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Pp-meta | sandbox | testcases = Pp-meta | #default = Pp-meta }}/doc }} | 0110 | 0111 = {{ }} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = }}

{{#if:

 {{#ifeq:  | off
 |
 | {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: Pp-meta | sandbox | testcases = Pp-meta | #default = Pp-meta }}/doc

   }}
 | yes
 }}{{
   #switch: Template
   | User
   | Module
   | Template = yes
   }}
 }}

|

{{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =

This message box is using an invalid "type=" parameter and needs fixing.

}} }}{{#if:

 {{#switch: Pp-meta
 | doc
 | testcases = strange
 }}

|

}}