Template:Main

From Main Street Museum Catalog Wiki
Jump to: navigation, search
Main article{{#if:|s}}: [[{{{1}}}|{{{1}}}]]{{#if:
|{{#if:|, | and }}[[{{{2}}}|{{{2}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{3}}}|{{{3}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{4}}}|{{{4}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{5}}}|{{{5}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{6}}}|{{{6}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{7}}}|{{{7}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{8}}}|{{{8}}}]]}}{{#if:
|{{#if:|, |, and }}[[{{{9}}}|{{{9}}}]]}}{{#if:
|, and [[{{{10}}}|{{{10}}}]]}}{{#if: | (too many parameters in {{main}})}}

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

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

|#default={{#if:

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

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

| Template:Mbox }}|}}{{#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|main]]}}|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|Main]]}}}}

Template:Template doc