Template:Pp-meta

From MultimediaWiki
Jump to navigation Jump 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
   }}
 |pending={{#if:
     {{#switch:undefined
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=autoconfirmed
       |#default=}}
     |yes|no
   }}
 |pending2={{#if:
     {{#switch:undefined
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=autoconfirmed
       |#default=}}
     |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 | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

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

|full=Padlock.svg
|semi=Padlock-silver-medium.svg
|move=Padlock-olive.svg
|indef=Padlock-red.svg
|office=Padlock-black.svg
|create=Padlock-skyblue.svg
|pending=Padlock-silver-light.svg
|pending2=Padlock-orange.svg
|#default=Transparent.gif

}}|40px|This page is {{#switch:{{{type}}}

|semi=semi-
|move=move-
|indef=permanently 
|create=creation-
|office=
|pending=pending changes 
|pending2=Level II pending changes 
|full
|#default=

}}protected.]] | imageright = | style = | textstyle = | text = {{#switch:{{{type}}}

|full=This page is currently protected from editing
|semi=Editing of this Template:Pagetype by new or unregistered users is currently disabled
|move=This Template:Pagetype is currently protected from page moves
|indef=This page is protected from editing indefinitely
|office=This Template:Pagetype is currently protected from editing
|pending=Latest edits to this Template:Pagetype by new or unregistered users may be delayed before being made public (what's this?)
|pending2=Edits to this Template:Pagetype by non-reviewers may be delayed before being made public
|create=Recreation of this Template:Pagetype has been disabled

}}{{#ifeq:{{{type}}}|indef||{{#if:| until {{#time:F j, Y|{{{expiry}}}}}}}}}{{{reason}}}.
{{#ifeq:{{{dispute}}}|yes|This protection is
not an endorsement of the {{#ifeq:{{{type}}}|move|current title|current version}}.}} See the protection policy and protection log for more details. {{#switch:{{{type}}}

|full|indef=Please discuss any changes on the talk page; you may use the Template:Tlx template to ask an administrator to make the 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 Template:Pagetype 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.  
|office=If you are able to edit this page, please discuss all changes and additions on the talk page first. Do not remove protection from this article unless you are authorized by the Wikimedia Foundation to do so.
|pending=You are welcome to make changes to this page, but they may not be publicly visible until they have been reviewed. You may also request unprotection, log in, or create an account.
|pending2=You are welcome to make changes to this page, but they may not be publicly visible until they have been reviewed. You may also request that this page be unprotected.
|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 = }} }}|}}

{{#ifeq: Pp-meta | sandbox

|

Template:Template sandbox notice

}}Template:Template otherTemplate:Documentation/core2