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

  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |templateeditor=template
  |#default=template}}
|full=Full protect.svg
|semi=Semi protect.svg
|template=Padlock-pink.svg
|pc1=Padlock-silver-light.svg
|pc2=Padlock-orange.svg
|move=Move protect.svg
|indef=Permanent protect.svg
|office=Office action.svg
|create=Create protect.svg
|#default=Transparent.gif

}}|20px|link=Wikipedia:Protection policy#{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |templateeditor=template
  |#default=template}}|This {{#ifeq:Template|File|image, included in a high-risk template or message,|high-risk Template:Pp-meta/pagetype }} is permanently {{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi-protected from editing
  |move=move-protected
  |administrator
  |full
  |sysop
  |templateeditor
  |#default= protected from editing}} to prevent vandalism.|alt={{#ifeq:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |templateeditor=template
  |#default=template}}|template
|{{#switch:10
  |10|828=Permanently protected Template:Pp-meta/pagetype
  |#default=Page permanently protected
 }}
|Page {{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |templateeditor=template
  |#default=template}}
         |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=
         |full
         |#default=protected
      }}

}}]]

Template:SQID

From wikibase-docker
Jump to navigation Jump to search

{{#ifeq: SQID | sandbox

|

Template:Template sandbox notice

}}{{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Template|Template
   | template
   | other
   }}
 }}

| template = {{#ifeq: | sysop

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

|#default={{#if:

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

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

| {{#invoke:Message box|mbox}} }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}

  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |templateeditor
  |#default=}}}}{{#ifeq:template|file|[[category:{{#switch:
  |semi
  |autoconfirmed=semi-protected
  |administrator
  |full
  |sysop
  |templateeditor
  |#default=protected}} images|sqid]]}}|no||{{#ifeq:Template|Template|{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed={{#ifeq:|sysop|}}
  |move=
  |administrator
  |full
  |sysop
  |templateeditor
  |#default=}}}}{{#ifeq:Template|File|[[Category:{{#switch:
  |semi
  |autoconfirmed=Semi-protected
  |administrator
  |full
  |sysop
  |templateeditor
  |#default=Protected}} images|SQID]]}}}}
 | {{#if: 
   | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |templateeditor=template
  |#default=template}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:sqid/template|sqid/template|undefined|{{#ifeq:sqid|sandbox|sysop|undefined}}}}
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:sqid/template|sqid/template|undefined|{{#ifeq:sqid|sandbox|sysop|undefined}}}}
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |yes|no
   }}
 |template={{#if:
     {{#switch:{{#ifeq:sqid/template|sqid/template|undefined|{{#ifeq:sqid|sandbox|sysop|undefined}}}}
       |templateeditor |template      = templateeditor
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |yes|no
   }}
 |pc1 ={{#ifeq:
     {{#switch:{{#ifeq:sqid/template|sqid/template|undefined|{{#ifeq:sqid|sandbox|sysop|undefined}}}}
       |pc1                           = autoconfirmed 
       |undefined                     = Template:PENDINGCHANGELEVEL
       |#default                      = }}
     |autoconfirmed
     |yes|no
   }}
 |pc2 ={{#ifeq:
     {{#switch:{{#ifeq:sqid/template|sqid/template|undefined|{{#ifeq:sqid|sandbox|sysop|undefined}}}}
       |pc2                           = review 
       |undefined                     = Template:PENDINGCHANGELEVEL
       |#default                      = }}
     |review
     |yes|no
   }}

|#default={{#if:

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

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

| {{#invoke:Message box|mbox}} }}|}}{{#ifeq:{{#ifeq:template|template|{{#switch:{{#ifeq:-|-sysop|move|}}

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

| other | #default =

}}

{{#ifeq: ¬ |

|

|
{{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = Documentation icon Template documentation
   | Template:Ns:Module = Documentation icon Module documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
 }}{{
 #if: 
 | 
 | 
   {{
   #if: {{#ifexist: 
   {{#if: 
   |    
   | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

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

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

 }}|view]]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

 }}|action=edit}} edit]] [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

 }}|action=history}} history]] [purge] 
   | 
     [[{{fullurl:{{#if: 
 | 
 | {{#switch: Template
 | 
 | File
 | MediaWiki
 | Category = Template talk
 | #default = Template

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}{{#ifexist:Template:SQID/text|[⧼translate⧽ ⧼Templates⧽]}} 
}}

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

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

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ {{#switch: Template

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

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:

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

}}:{{#switch: SQID | sandbox | testcases = SQID | #default = SQID }}/doc

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

| {{#invoke:Message box|fmbox}} }}{{#if:

 {{#switch: SQID
 | doc
 | testcases = strange
 }}

| [[Category:Wikipedia pages with strange ((documentation)) usage|Template:Main otherTemplate:SQID]]

}} {{#ifexist:{{#titleparts:Template:SQID|1}}/doc | | }}{{#if:|{{#if:{{{Q}}} |

 {{#invoke:Wikidata label|getLabel
   |item={{{Q}}} 
   |lang=⧼lang⧽  
   |link=wikidata
   |capitalization=
   |show_id=1
 }} 

}} }}{{#if:|{{#ifeq: { | P

| {{#if:|}}[[Property:{{{P}}}|{{#if:{{{P}}} |
 {{#invoke:Wikidata label|getLabel
   |item={{{P}}} 
   |lang=⧼lang⧽  
   |link=-
   |capitalization=none
   |show_id=
 }} 

}}{{#ifeq:|no|| ({{{P}}})}}]]

| {{#if:|}}[[Property:P{{{P}}}|{{#if:P{{{P}}} |
 {{#invoke:Wikidata label|getLabel
   |item=P{{{P}}} 
   |lang=⧼lang⧽  
   |link=-
   |capitalization=none
   |show_id=
 }} 

}}{{#ifeq:|no|| (P{{{P}}})}}]] }} }}//tools.wmflabs.org/sqid/}}