Template:Sidebar: Difference between revisions

From SprezzOSWiki
(Created page with "{{documentation subpage}} This template is intended to be a metatemplate for sidebar templates, which are vertically-aligned Wi...")
 
No edit summary
 
Line 1: Line 1:
{{documentation subpage}}
<table class="vertical-navbox {{#ifeq:{{{wraplinks|}}}|true||nowraplinks}} {{{bodyclass|{{{class|}}}}}}" <!--
    -->cellspacing="{{#if:{{{cellspacing|}}} |{{{cellspacing}}} |5}}" <!--
    -->cellpadding="{{#if:{{{cellpadding|}}} |{{{cellpadding}}} |0}}" <!--
    -->style="float:{{#if:{{{float|}}} |{{{float}}} |right}};<!--
          -->clear:{{#ifeq:{{{float|}}}|none |both |{{#if:{{{float|}}} |{{{float}}} |right}}}};<!--
          -->width:{{#if:{{{width|}}} |{{{width}}} |22.0em}};<!--
            (margins:)-->{{#switch:{{{float|}}} |left=margin:0 1.0em 1.0em 0; |none|right|#default=margin:0 0 1.0em 1.0em;}}<!--
          -->background:#f9f9f9;border:1px solid #aaa;padding:0.2em;border-spacing:0.4em 0;text-align:center;line-height:1.4em;font-size:88%;{{{bodystyle|{{{style|}}}}}}"><!--


This template is intended to be a [[wikt:metatemplate|metatemplate]] for sidebar templates, which are [[Vertical direction|vertically]]-aligned [[Wikipedia:Navigation templates|navigation templates]]. The sidebar is usually positioned on the right-hand side of a page, in the same way as the {{tlx|infobox}} template is aligned for [[Wikipedia:Manual of Style/Infoboxes|infoboxes]].
-->{{#if:{{{outertitle|}}}
    |<caption class="{{{outertitleclass|}}}" style="padding-bottom:0.2em;font-size:125%;line-height:1.2em;font-weight:bold;{{{outertitlestyle|}}}">{{{outertitle}}}</caption><!--
-->}}<!--


{{tl|Sidebar with collapsible lists}} adds collapsibility to a sidebar's sections, i.e., the means to show or hide sections by clicking links beside their headings.
-->{{#if:{{{topimage|}}}
    |<tr><td class="{{{topimageclass|}}}" style="padding:0.4em 0;{{{topimagestyle|}}}">{{{topimage}}}<!--
          -->{{#if:{{{topcaption|}}} |<div style="padding-top:0.2em;line-height:1.2em;{{{topcaptionstyle|}}}">{{{topcaption}}}</div>}}</td>
      </tr>
    }}<!--


== Usage ==
-->{{#if:{{{pretitle|}}}
{{Sidebar
    |<tr><td class="{{{pretitleclass|}}}" style="{{{basestyle|}}};{{#if:{{{topimage|}}} |padding-top:0.2em |padding-top:0.4em}};line-height:1.2em;{{{pretitlestyle|}}}">{{{pretitle}}}</td>
| name = {{PAGENAME}}
      </tr>
| outertitle = {{{outertitle}}}
    }}<!--
| topimage = {{{topimage}}}
| topcaption = {{{topcaption}}}
| pretitle = {{{pretitle}}}
| title = {{{title}}}
| image = {{{image}}}
| above = {{{above}}}
| heading1 = {{{heading1}}}
| content1 = {{{content1}}}
| heading2 = {{{heading2}}}
| content2 = {{{content2}}}
| heading3 = {{{heading3}}}
| content3 = {{{content3}}}
| content4 = ... up to 35th ...
| heading35 = {{{heading35}}}
| content35 = {{{content35}}}
| below = {{{below}}}
}}


(parameters with infrequent use omitted)
-->{{#if:{{{title|}}}
<pre style="overflow:auto;">
    |<tr><th class="{{{titleclass|}}}" style="{{{basestyle|}}};padding:0.2em 0.4em 0.2em;{{#if:{{{pretitle|}}} |padding-top:0}};font-size:145%;line-height:1.2em;{{{titlestyle|}}}">{{{title}}}</th>
{{Sidebar
      </tr>
| name = {{subst:PAGENAME}}
    }}<!--
| outertitle =
| topimage =
| pretitle =
| title =
| image =


| headingstyle =  
-->{{#if:{{{image|}}}
| contentstyle =  
    |<tr><td class="{{{imageclass|}}}" style="padding:0.2em 0 0.4em;{{{imagestyle|}}}">{{{image}}}<!--
          -->{{#if:{{{caption|}}} |<div style="padding-top:0.2em;line-height:1.2em;{{{captionstyle|}}}">{{{caption}}}</div>}}</td>
      </tr>
    }}<!--


| heading1 =  
-->{{#if:{{{above|}}}
| content1 =  
    |<tr><td class="{{{aboveclass|}}}" style="padding:0.3em 0.4em 0.3em;font-weight:bold;{{{abovestyle|}}}"><!--newline required for bullet-points to work:-->
{{{above}}}</td>
      </tr>
    }}<!--


| heading2 =
heading#/content# starts here:
| content2 =


| heading3 =  
-->{{#if: {{{heading1|}}}|
| content3 =  
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading1style|}}}">{{{heading1}}}</th>
</tr>
}}{{#if:
{{{content1|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content1style|}}}"><!-- newline required before contents# for bullets to work -->
{{{content1}}}</td>
</tr>
}}{{#if: {{{heading2|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading2style|}}}">{{{heading2}}}</th>
</tr>
}}{{#if:
{{{content2|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content2style|}}}">
{{{content2}}}</td>
</tr>
}}{{#if: {{{heading3|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading3style|}}}">{{{heading3}}}</th>
</tr>
}}{{#if:
{{{content3|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content3style|}}}">
{{{content3}}}</td>
</tr>
}}{{#if: {{{heading4|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading4style|}}}">{{{heading4}}}</th>
</tr>
}}{{#if:
{{{content4|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content4style|}}}">
{{{content4|}}}</td>
</tr>
}}{{#if: {{{heading5|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading5style|}}}">{{{heading5}}}</th>
</tr>
}}{{#if:
{{{content5|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content5style|}}}">
{{{content5}}}</td>
</tr>
}}{{#if: {{{heading6|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading6style|}}}">{{{heading6}}}</th>
</tr>
}}{{#if:
{{{content6|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content6style|}}}">
{{{content6}}}</td>
</tr>
}}{{#if: {{{heading7|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading7style|}}}">{{{heading7}}}</th>
</tr>
}}{{#if:
{{{content7|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content7style|}}}">
{{{content7}}}</td>
</tr>
}}{{#if: {{{heading8|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading8style|}}}">{{{heading8}}}</th>
</tr>
}}{{#if:
{{{content8|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content8style|}}}">
{{{content8}}}</td>
</tr>
}}{{#if: {{{heading9|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading9style|}}}">{{{heading9}}}</th>
</tr>
}}{{#if:
{{{content9|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content9style|}}}">
{{{content9}}}</td>
</tr>
}}{{#if: {{{heading10|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading10style|}}}">{{{heading10}}}</th>
</tr>
}}{{#if:
{{{content10|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content10style|}}}">
{{{content10}}}</td>
</tr>
}}{{#if: {{{heading11|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading11style|}}}">{{{heading11}}}</th>
</tr>
}}{{#if:
{{{content11|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content11style|}}}">
{{{content11}}}</td>
</tr>
}}{{#if: {{{heading12|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading12style|}}}">{{{heading12}}}</th>
</tr>
}}{{#if:
{{{content12|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content12style|}}}">
{{{content12}}}</td>
</tr>
}}{{#if: {{{heading13|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading13style|}}}">{{{heading13}}}</th>
</tr>
}}{{#if:
{{{content13|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content13style|}}}">
{{{content13}}}</td>
</tr>
}}{{#if: {{{heading14|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading14style|}}}">{{{heading14}}}</th>
</tr>
}}{{#if:
{{{content14|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content14style|}}}">
{{{content14}}}</td>
</tr>
}}{{#if: {{{heading15|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading15style|}}}">{{{heading15}}}</th>
</tr>
}}{{#if:
{{{content15|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content15style|}}}">
{{{content15}}}</td>
</tr>
}}{{#if: {{{heading16|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading16style|}}}">{{{heading16}}}</th>
</tr>
}}{{#if:
{{{content16|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content16style|}}}">
{{{content16}}}</td>
</tr>
}}{{#if: {{{heading17|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading17style|}}}">{{{heading17}}}</th>
</tr>
}}{{#if:
{{{content17|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content17style|}}}">
{{{content17}}}</td>
</tr>
}}{{#if: {{{heading18|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading18style|}}}">{{{heading18}}}</th>
</tr>
}}{{#if:
{{{content18|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content18style|}}}">
{{{content18}}}</td>
</tr>
}}{{#if: {{{heading19|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading19style|}}}">{{{heading19}}}</th>
</tr>
}}{{#if:
{{{content19|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content19style|}}}">
{{{content19}}}</td>
</tr>
}}{{#if: {{{heading20|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading20style|}}}">{{{heading20}}}</th>
</tr>
}}{{#if:
{{{content20|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content20style|}}}">
{{{content20}}}</td>
</tr>
}}{{#if: {{{heading21|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading21style|}}}">{{{heading21}}}</th>
</tr>
}}{{#if:
{{{content21|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content21style|}}}">
{{{content21}}}</td>
</tr>
}}{{#if: {{{heading22|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading22style|}}}">{{{heading22}}}</th>
</tr>
}}{{#if:
{{{content22|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content22style|}}}">
{{{content22}}}</td>
</tr>
}}{{#if: {{{heading23|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading23style|}}}">{{{heading23}}}</th>
</tr>
}}{{#if:
{{{content23|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content23style|}}}">
{{{content23}}}</td>
</tr>
}}{{#if: {{{heading24|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading24style|}}}">{{{heading24}}}</th>
</tr>
}}{{#if:
{{{content24|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content24style|}}}">
{{{content24}}}</td>
</tr>
}}{{#if: {{{heading25|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading25style|}}}">{{{heading25}}}</th>
</tr>
}}{{#if:
{{{content25|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content25style|}}}">
{{{content25}}}</td>
</tr>
}}{{#if: {{{heading26|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading26style|}}}">{{{heading26}}}</th>
</tr>
}}{{#if:
{{{content26|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content26style|}}}">
{{{content26}}}</td>
</tr>
}}{{#if: {{{heading27|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading27style|}}}">{{{heading27}}}</th>
</tr>
}}{{#if:
{{{content27|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content27style|}}}">
{{{content27}}}</td>
</tr>
}}{{#if: {{{heading28|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading28style|}}}">{{{heading28}}}</th>
</tr>
}}{{#if:
{{{content28|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content28style|}}}">
{{{content28}}}</td>
</tr>
}}{{#if: {{{heading29|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading29style|}}}">{{{heading29}}}</th>
</tr>
}}{{#if:
{{{content29|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content29style|}}}">
{{{content29}}}</td>
</tr>
}}{{#if: {{{heading30|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading30style|}}}">{{{heading30}}}</th>
</tr>
}}{{#if:
{{{content30|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content30style|}}}">
{{{content30}}}</td>
</tr>
}}{{#if: {{{heading31|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading31style|}}}">{{{heading31}}}</th>
</tr>
}}{{#if:
{{{content31|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content31style|}}}">
{{{content31}}}</td>
</tr>
}}{{#if: {{{heading32|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading32style|}}}">{{{heading32}}}</th>
</tr>
}}{{#if:
{{{content32|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content32style|}}}">
{{{content32}}}</td>
</tr>
}}{{#if: {{{heading33|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading33style|}}}">{{{heading33}}}</th>
</tr>
}}{{#if:
{{{content33|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content33style|}}}">
{{{content33}}}</td>
</tr>
}}{{#if: {{{heading34|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading34style|}}}">{{{heading34}}}</th>
</tr>
}}{{#if:
{{{content34|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content34style|}}}">
{{{content34}}}</td>
</tr>
}}{{#if: {{{heading35|}}}|
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading35style|}}}">{{{heading35}}}</th>
</tr>
}}{{#if:
{{{content35|}}}|
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em; {{{contentstyle|}}};{{{content35style|}}}">
{{{content35}}}</td>
</tr>
}}<!--


<!-- ... up to 35th -->
-->{{#if: {{{below|}}}
    |<tr><td class="{{{belowclass|}}}" style="padding:0.3em 0.4em 0.3em;font-weight:bold;{{{belowstyle|}}}">
{{{below}}}</td>
    </tr>
    }}<!--


| heading35 =  
-->{{#switch:{{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}}
| content35 =  
    |none |off=
}}
    |#default=<tr><td style="text-align:right;font-size:115%;{{{navbarstyle|{{{tnavbarstyle|}}}}}}">{{navbar|{{{name|{{PAGENAME}}}}}|mini=1|fontstyle={{{navbarfontstyle|{{{tnavbarfontstyle|}}}}}}}}</td></tr><!--
</pre>
-->}}


== Parameters ==
</table><noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of Template:Sidebar/doc, not here --></noinclude>
No parameters are required unless {{tl|navbar}} links ({{small|V - T - E}}) are to appear at the bottom of the sidebar, in which case the {{para|name}} parameter is needed (see entry in the table immediately below).
 
=== Principal ===
{| class="wikitable" style="line-height: 1.4em;"
! style="width: 7.0em;" | Parameter !! Explanation
|- style="vertical-align: top;"
| {{para|name}}
| The sidebar's name, i.e., the name following "Template:" in the page's name. Required for the {{tl|navbar}} links at the bottom of the sidebar to function correctly, unless these are omitted (see {{para|navbar}} at the bottom of this table). It is recommended to use ''<nowiki>{{subst:PAGENAME}}</nowiki>'' for this field.
|- style="vertical-align: top;"
| {{para|outertitle}}
| Use to place a title for the sidebar immediately above the sidebar.
|- style="vertical-align: top;"
| {{para|topimage}}
| Use to place an image at the top of the sidebar, i.e., above any {{para|title}} included.<br />
Full wikisyntax expected (i.e., <code><nowiki>[[File:...]]</nowiki></code>).<br />
To add a caption below the image, use {{para|topcaption}}.
|- style="vertical-align: top;"
| {{para|pretitle}}
| Use to place a line such as "Part of the ''X'' series on" before the title.
|- style="vertical-align: top;"
| {{para|title}}
| Use to place a title for the sidebar at the top of the sidebar (immediately below the {{para|topimage}}, if used).
|- style="vertical-align: top;"
| {{para|image}}
| Use to place an image between the {{para|title}} (if used) and first section.<br />
As with {{para|topimage}}, full wikisyntax expected (i.e., <code><nowiki>[[File:...]]</nowiki></code>).<br />
To add a caption below the image, use {{para|caption}}.
|- style="vertical-align: top;"
| {{para|headingstyle}}
| Use to alter the default [[Help:Cascading Style Sheets|CSS]] styling set for section headings.<br />
To alter the CSS styling for a specific section's heading, use {{para|heading<sub>n</sub>style}}, where ''n'' is the number of the section.
|- style="vertical-align: top;"
| {{para|contentstyle}}
| Use to alter the default CSS styling set for section content.<br />
To alter the CSS styling for a particular section's content, use {{para|content<sub>n</sub>style}}, where ''n'' is the number of the section.
|- style="vertical-align: top;"
| {{para|heading1}} || First section's heading (if needed).
|-
| {{para|'''content1'''}} || First section's content (required).
|- style="vertical-align: top;"
| {{para|heading2}} || Second section's heading (if needed).
|-
| {{para|content2}} || Second section's content (if needed).
|- style="vertical-align: top;"
| {{para|heading3}} || Third section's heading (if needed).
|-
| {{para|content3}} || Third section's content (if needed).
|-
| colspan="2" | ...... etc ......
|-
| {{para|heading35}} || rowspan="2" | Currently, the last possible section heading and/or content (if needed).
|-
| {{para|content35}}
|}
 
=== Other parameters ===
{| class="wikitable plainlist" style="line-height: 1.4em;"
! style="width: 10.0em;" | Parameter !! Explanation
|- style="vertical-align: top;"
| {{para|above}}
| Corresponds to {{para|above}} offered by {{tl|navbox}}.
|-
|
*{{para|bodyclass}} (or {{para|class}})
*{{para|outertitleclass}}
*{{para|topimageclass}}
*{{para|pretitleclass}}
*{{para|titleclass}}
*{{para|imageclass}}
*{{para|aboveclass}}
*{{para|headingclass}}
*{{para|contentclass}}
*{{para|belowclass}}
|
[[Wikipedia:WikiProject Microformats#What are microformats?|Microformat]] classes for the corresponding parameters.<br />
({{para|bodyclass}} (or {{para|class}}) applies to the sidebar as a whole.)
|- style="vertical-align: top;"
| {{para|below}}
| Use to, e.g., add one or more portal links to the bottom of the template (by default in bold).
|-
|
*{{para|bodystyle}} (or {{para|style}})
*{{para|outertitlestyle}}
*{{para|topimagestyle}}
*{{para|topcaptionstyle}}
*{{para|pretitlestyle}}
*{{para|titlestyle}}
*{{para|imagestyle}}
*{{para|captionstyle}}
*{{para|abovestyle}}
*{{para|headingstyle}}
*{{para|heading<sub>n</sub>style}}
*{{para|contentstyle}}
*{{para|content<sub>n</sub>style}}
*{{para|belowstyle}}
*{{para|navbarstyle}} (or {{para|tnavbarstyle}})
|
Use to alter default [[Help:Cascading Style Sheets|CSS]] styling for the corresponding parameters.<br />
({{para|bodystyle}} (or {{para|style}}) applies to the sidebar as a whole.)
|- style="vertical-align: top;"
| {{para|cellspacing}}
| Use to amend the default cellspacing set for the infobox-class table with which the sidebar is built.
|- style="vertical-align: top;"
| {{para|cellpadding}}
| Ditto the default cellpadding.
|- style="vertical-align: top;"
| {{para|navbar}} (or {{para|tnavbar}})
| Set to "none" (without the quotes) to remove the [[navigation bar]] links appearing at the bottom of the sidebar.
|- style="vertical-align: top;"
| {{para|navbarfontstyle}} (or {{para|tnavbarfontstyle}})
| Use to specify the font style used by the navbar at the bottom of the sidebar (see {{tl|navbar}} for options available).
|}
 
== Handling long links ==
{{tl|Normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap, in order to prevent the sidebar from becoming too wide. Use {{tlx|normalwraplink|''longlinkname''}}, where {{para||''longlinkname''}} is the long link without its square brackets.
 
Use the {{para|wraplinks|true}} parameter to turn link wrapping off for the whole template.
 
== Full blank syntax ==
(omitting sections 4 to penultimate)
 
<pre style="overflow: auto;">
{{Sidebar
| name        = {{subst:PAGENAME}}
| bodyclass  = <!-- or class -->
| bodystyle  = <!-- or style -->
| width      =
| cellspacing =
| cellpadding =
 
| outertitle      =
| outertitleclass =
| outertitlestyle =
 
| topimage        =
| topimageclass  =
| topimagestyle  =
| topcaption      =
| topcaptionstyle =
 
| pretitle      =
| pretitleclass =
| pretitlestyle =
| title        =
| titleclass    =
 
| image        =
| imageclass  =
| imagestyle  =
| caption      =
| captionstyle =
 
| above      =
| aboveclass =
| abovestyle =
 
| headingclass =
| headingstyle =
| contentclass =
| contentstyle =
 
| heading1style =
| heading1      =
| content1style =
| content1      =
 
| heading2style =
| heading2      =
| content2style =
| content2      =
 
| heading3style =
| heading3      =
| content3style =
| content3      =
 
<!-- ... up to 35th -->
 
| heading35style =
| heading35      =
| content35style =
| content35      =
 
| below      =
| belowclass =
| belowstyle =
 
| navbar          = <!-- or tnavbar -->
| navbarstyle    = <!-- or tnavbarstyle -->
| navbarfontstyle = <!-- or tnavbarfontstyle -->
 
| wraplinks = true/false
}}
</pre>
 
== Supplementary documentation ==
Supplementary documentation relevant to navigational functionality through 'navbar' coding in a sidebar is at [[Template:Navbar/doc]].
 
== See also ==
* {{tl|Infobox}}
* {{tl|Sidebar with collapsible lists}}
* [[Wikipedia:UBLIST]] – for help in using unbulleted lists in fields
<includeonly>{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|
[[Category:Exclude in print]]
[[Category:Wikipedia metatemplates]]
 
[[ar:قالب:Sidebar]]
[[arc:ܩܠܒܐ:Sidebar]]
[[az:Şablon:Məlumat qutusu]]
[[bg:Шаблон:Страничен панел]]
[[bn:টেমপ্লেট:Sidebar]]
[[bs:Šablon:Bočni stubac]]
[[ca:Plantilla:Barra lateral]]
[[es:Plantilla:Barra Lateral]]
[[hi:साँचा:Sidebar]]
[[hu:Sablon:Navoszlop]]
[[id:Templat:Sidebar]]
[[ja:Template:Sidebar]]
[[ka:თარგი:გვერდითი ნავდაფა]]
[[km:ទំព័រគំរូ:Sidebar]]
[[ko:틀:사이드바]]
[[mk:Шаблон:Странична лента]]
[[ne:ढाँचा:Sidebar]]
[[no:Mal:Sideboks]]
[[or:ଟେମ୍ପଲେଟ:Sidebar]]
[[pt:Predefinição:Sidebar]]
[[ro:Format:Sidebar]]
[[ru:Шаблон:Боковая навигационная таблица]]
[[sl:Predloga:Sidebar]]
[[sk:Šablóna:Bočný panel]]
[[ckb:داڕێژە:Sidebar]]
[[da:Skabelon:Sidebar]]
[[et:Mall:Külgteemakast]]
[[fi:Malline:Sivupalkki]]
[[th:แม่แบบ:Sidebar]]
[[tr:Şablon:Sidebar]]
[[uk:Шаблон:Бічна навігація]]
[[ur:سانچہ:Sidebar]]
[[yo:Àdàkọ:Sidebar]]
[[zh:Template:Sidebar]]
}}</includeonly>

Latest revision as of 11:54, 8 February 2013

{{#if: |}}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#if: | }}{{#switch:off |none |off= |#default=}}
{{{outertitle}}}
{{{topimage}}}{{#if: |
{{{topcaption}}}
}}
{{{pretitle}}}
{{{title}}}
{{{image}}}{{#if: |
{{{caption}}}
}}
{{{above}}}
{{{heading1}}}
{{{content1}}}
{{{heading2}}}
{{{content2}}}
{{{heading3}}}
{{{content3}}}
{{{heading4}}}
{{{heading5}}}
{{{content5}}}
{{{heading6}}}
{{{content6}}}
{{{heading7}}}
{{{content7}}}
{{{heading8}}}
{{{content8}}}
{{{heading9}}}
{{{content9}}}
{{{heading10}}}
{{{content10}}}
{{{heading11}}}
{{{content11}}}
{{{heading12}}}
{{{content12}}}
{{{heading13}}}
{{{content13}}}
{{{heading14}}}
{{{content14}}}
{{{heading15}}}
{{{content15}}}
{{{heading16}}}
{{{content16}}}
{{{heading17}}}
{{{content17}}}
{{{heading18}}}
{{{content18}}}
{{{heading19}}}
{{{content19}}}
{{{heading20}}}
{{{content20}}}
{{{heading21}}}
{{{content21}}}
{{{heading22}}}
{{{content22}}}
{{{heading23}}}
{{{content23}}}
{{{heading24}}}
{{{content24}}}
{{{heading25}}}
{{{content25}}}
{{{heading26}}}
{{{content26}}}
{{{heading27}}}
{{{content27}}}
{{{heading28}}}
{{{content28}}}
{{{heading29}}}
{{{content29}}}
{{{heading30}}}
{{{content30}}}
{{{heading31}}}
{{{content31}}}
{{{heading32}}}
{{{content32}}}
{{{heading33}}}
{{{content33}}}
{{{heading34}}}
{{{content34}}}
{{{heading35}}}
{{{content35}}}
{{{below}}}

{{#ifeq: Sidebar | sandbox |

{{#ifexpr:0+{{#ifeq:sidebar|sandbox

 |1
 |0
}}
|{{#ifeq:|yes

|

{{#ifeq:{{#if:| {{{smallimage}}} | }}|none | | }} {{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none | |
 }}

}}

{{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =

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

}}

|

{{#ifeq:|none | | }} {{#if: | {{#ifeq:|none | |
 }}

}}

{{#switch:

| | speedy | delete | content | style | move | protection | notice =

| #default =

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

}} }}{{#ifeq:sidebar|testcases

 | 
 |
}}
| 

}} }}{{#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
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}

|#default={{#if:

     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|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.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 {{#switch:{{#ifeq:-|-sysop|move|}}

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

| imageright = | class = | 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 [[Template talk:Sidebar#{{#if:|{{{section}}}|top}}|talk page]]; you may use the {{editprotected{{#if:|

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}} template to ask an administrator to make an 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 {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|#default             = page}}}} 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 can edit this page, please discuss all changes and additions on the talk page first. Do not remove protection from this page 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 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 = | subst = | date = | name = Pp-meta }} }}|}}{{#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|sidebar]]}}|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|Sidebar]]}}}}
 | {{#if: 
   | {{#ifeq:{{#switch:{{#switch:{{#ifeq:-|-sysop|move|}}
  |semi
  |autoconfirmed=semi
  |administrator
  |full
  |sysop=indef
  |move=move
  |#default=indef}}
 |move={{#ifeq:
     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |sysop|yes|no
   }}
 |create={{#if:
     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |yes|no
   }}

|#default={{#if:

     {{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|sandbox|sysop|undefined}}}}
       |semi
       |autoconfirmed=autoconfirmed
       |administrator
       |full
       |sysop=sysop
       |undefined=
       |#default=}}
     |{{#ifeq:{{#switch:
                |semi
                |autoconfirmed=autoconfirmed
                |administrator
                |full
                |sysop=sysop
                |#default=}}
        |{{#switch:{{#ifeq:sidebar/template|sidebar/template|undefined|{{#ifeq:sidebar|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.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 {{#switch:{{#ifeq:-|-sysop|move|}}

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

| imageright = | class = | 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 [[Template talk:Sidebar#{{#if:|{{{section}}}|top}}|talk page]]; you may use the {{editprotected{{#if:|

|{{{2}}} }}{{#if:| |{{{3}}} }}{{#if:| |{{{4}}} }}{{#if:| |{{{5}}} }}{{#if:| |... }}}} template to ask an administrator to make an 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 {{#ifeq:Template talk|Template|talk page|

{{#switch:Template

|              = article
|File          = file
|Template      = template
|Category      = category
|#default             = page}}}} 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 can edit this page, please discuss all changes and additions on the talk page first. Do not remove protection from this page 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 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 = | subst = | date = | name = Pp-meta }} }}|}}{{#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|sidebar]]}}|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|Sidebar]]}}}}
   | 
   }}
 }}

| other | #default =

}}

{{#ifeq: ¬ |

|

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

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

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

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

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

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

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

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

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

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

 }}| action=edit&preload={{
       #if:  
       | 
       | {{#ifeq: Template | File
         | Template:Documentation/preload-filespace
         | Template:Documentation/preload
         }} }} }} create]]
   }}
 }} {{#switch: ¬
 | ¬ =   
   {{#switch: Template 
   | Template = Documentation icon Template documentation
   | File = Summary
   | #default = Documentation
   }}
 | #default = 
   ¬
}}

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

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

}}:{{#switch: Sidebar | sandbox | testcases = Sidebar | #default = Sidebar }}/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: Sidebar | sandbox | testcases = Sidebar | #default = Sidebar }}/doc }} | 0000 | 0100 | 0010 | 0101 = }}

{{#if:

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

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

   }}
 | 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: Sidebar
 | doc
 | testcases = strange
 }}

|

}}