Difference between revisions of "Template:Documentation/end box"

From MediaWiki
Jump to: navigation, search
(Created page with "<noinclude><div></noinclude><div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.--> </div><!--End of green doc box--><!-- Link...")
 
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 23: Line 23:
 
     | {{#if: {{{doc exist|yes}}}
 
     | {{#if: {{{doc exist|yes}}}
 
       | <!--/doc exists, link to it-->
 
       | <!--/doc exists, link to it-->
         The above [[w:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br>
+
         The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br />
 
       }}<!--  
 
       }}<!--  
 
         Add links to /sandbox and /testcases when appropriate:
 
         Add links to /sandbox and /testcases when appropriate:
Line 37: Line 37:
 
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
 
         | [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
 
         | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small>
 
         | testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small>
         }} pages. <br>
+
         }} pages. <br />
 
       }}<!--
 
       }}<!--
         Show the cats and interwiki text, but not  
+
         Show the cats text, but not  
 
         if "content" fed or "docname fed" since then it is  
 
         if "content" fed or "docname fed" since then it is  
         unclear where to add the cats and interwikis.
+
         unclear where to add the cats.
 
   -->{{#if: {{{content|}}} {{{docname fed|}}}
 
   -->{{#if: {{{content|}}} {{{docname fed|}}}
 
       |  
 
       |  
       | Please add categories and interwikis to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage.
+
       | Please add categories to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage.
 
       }}<!--
 
       }}<!--
 
         Show the "Subpages" link:
 
         Show the "Subpages" link:
Line 53: Line 53:
 
       }}
 
       }}
 
     }}{{#ifexist:{{FULLPAGENAME}}/Print
 
     }}{{#ifexist:{{FULLPAGENAME}}/Print
     |</br>A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]
+
     |<br />A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]
 
     }}
 
     }}
 
   }}
 
   }}
Line 70: Line 70:
 
       to make the surrounding if-case trigger-->
 
       to make the surrounding if-case trigger-->
  
| <includeonly>[[w:Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
+
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
  
}}
+
}}<noinclude>
 +
{{pp-template|small=yes}}
 +
</noinclude>

Latest revision as of 04:46, 30 March 2013

{{#if:
 {{#ifeq:  | off
 |
 | yes{{
   #switch: Template
   | User
   | Template = yes
   }}
 }}
| {{#ifeq:none|none | | }} {{#if: |

}}

{{#switch:

| | warning | editnotice | system =

| #default =
This message box is using an invalid "type=" parameter and needs fixing.

}} }}{{#if:

 {{#switch: Documentation/end box
 | doc
 | testcases = strange
 }}

|

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

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

|#default={{#if:

     {{#switch:{{#ifeq:documentation/end box/template|documentation/end box/template|undefined|{{#ifeq:documentation/end box|sandbox|sysop|undefined}}}}
       |semi |autoconfirmed           = autoconfirmed
       |administrator |full |sysop    = sysop
       |undefined                     = 
       |#default                      = }}
     |{{#ifeq:{{#switch:
                |semi |autoconfirmed           = autoconfirmed
                |administrator |full |sysop    = sysop
                |#default                      = }}
        |{{#switch:{{#ifeq:documentation/end box/template|documentation/end box/template|undefined|{{#ifeq:documentation/end box|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:documentation/end box/template|documentation/end box/template|undefined|{{#ifeq:documentation/end box|sandbox|sysop|undefined}}}}|templateeditorundefined|{{#switch:Template|Template|Module=|}}}}{{#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|documentation/end box]]}}|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|Documentation/end box]]}}}}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox