Template:Namespace detect

From NewgonWiki
Jump to navigation Jump to search

{{#switch:

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

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

}}

{{#ifeq:yes|yes|

| {{

 {{#switch:
 {{#if: 
   | 
   | {{#ifeq:template|
     | main
     | {{#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 | other | #default = ombox

}} | type = protection | image = [[Image:{{#switch: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
|#default=Transparent.gif

}}|40px|This {{#ifeq:Template|File|image, included in a high-risk template or message,|high-risk template}} is indefinitely protected from editing to prevent vandalism.]] | imageright = | style = | textstyle = | text = This {{#switch:Template

 |File=image, used in one or more high-risk templates and/or system messages,
 |#default=high-risk template

}} has been protected from editing to prevent vandalism. {{#switch:Template|File=
Do not move this image to Wikimedia Commons.}}
{{#ifeq:no|yes|This protection is
not an endorsement of the {{#ifeq:indef|move|current title|current version}}.}} See the protection policy and protection log for more details. {{#switch: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 {{#switch:Template|=article|File=image|#default=page}} and you wish to make a change, you can {{#ifeq:Template|Template talk||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.
|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 for the deleted material to be restored via deletion review.

}} | small = | smallimage = | smallimageright = | smalltext = }} }}{{#ifeq:{{#ifeq:template|template|}}{{#ifeq:template|file|}}|no||{{#ifeq:Template|Template|}}{{#ifeq:Template|File|}}}}

{{#ifeq:μ|
 |
|
{{#ifeq:μ|μ
  |{{#ifexist: {{#switch: Namespace detect
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Namespace detect/doc

}}

   |[[{{fullurl:{{#switch: Namespace detect
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Namespace detect/doc

}}|action=edit}} edit]]

   |[[{{fullurl:{{#switch: Namespace detect
 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Namespace detect/doc

}}|action=edit&preload=Template:Documentation/preload}} create]]

  }}
}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|File:Template-info.svg Template documentation|Documentation}}}}
}}

{{#if:|{{{content}}}|{{#ifexist:{{#switch: Namespace detect

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Namespace detect/doc

}} | {{ {{#switch: Namespace detect

 |sandbox|testcases={{ #rel2abs: ../doc }}
 |#default=Template:Namespace detect/doc

}} }} }}}}