Template:Namespace detect

From MultimediaWiki
Jump to navigation Jump to search

{{#switch:

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

| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =

}}

{{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}
 |pending={{#if:
     {{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=autoconfirmed
       |#default=}}
     |yes|no
   }}
 |pending2={{#if:
     {{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=autoconfirmed
       |#default=}}
     |yes|no
   }}

|#default={{#if:

     {{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:namespace detect/template|namespace detect/template|undefined|{{#ifeq:namespace detect|sandbox|sysop|undefined}}}}
           |semi
           |autoconfirmed=autoconfirmed
           |administrator
           |full
           |sysop=sysop
           |undefined=
           |#default=}}
        |no|yes
      }}
  |no}}

}}|yes|{{#ifeq:yes|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:{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
|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 {{#ifeq:Template|File|image, included in a high-risk template or message,|high-risk template}} is indefinitely {{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed=semi-protected from editing
  |move=move-protected
  |administrator
  |full
  |sysop
  |#default=protected from editing}} to prevent vandalism.]]

| imageright = | style = | textstyle = | text = This {{#switch:Template

 |File=image, used in one or more high-risk templates{{#switch:
  |semi
  |autoconfirmed=
  |administrator
  |full
  |sysop= and/or system messages,
  |#default=}}
 |#default=high-risk template

}} has been {{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi- |move=move- |administrator |full |sysop |#default=}}protected{{#ifeq:-|-sysop|| from editing}} to prevent vandalism. {{#switch:

  |semi
  |autoconfirmed=
  |administrator
  |full
  |sysop
  |#default={{#switch:Template|File=
Do not move this image to Wikimedia Commons.}}}}
{{#ifeq:no|yes|This protection is
not an endorsement of the {{#ifeq:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}}|move|current title|current version}}.}} See the protection policy and protection log for more details. {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}} |semi |autoconfirmed=semi |administrator |full |sysop=indef |move=move |#default=indef}} |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:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
  |semi
  |autoconfirmed=semi-protected
  |administrator
  |full
  |sysop
  |#default=protected}} images|namespace detect]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
  |semi
  |autoconfirmed=Semi-protected
  |administrator
  |full
  |sysop
  |#default=Protected}} images|Namespace detect]]}}}}

{{#ifeq: Namespace detect | sandbox

|

Template:Template sandbox notice

}}Template:Template otherTemplate:Documentation/core2