Template:Sidebar View history

(Copied template from Wikipedia)
 
No edit summary
 
Line 1: Line 1:
{{#ifeq:{{{child|}}}|yes||<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}};{{#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|}}}}}}">}}<!--
<table class="vertical-navbox {{#if: {{{wraplinks|}}}|{{#ifeq: {{{wraplinks|}}}|true||nowraplinks}}|nowraplinks}} {{{bodyclass|{{{class|}}}}}}" cellspacing="{{#if:{{{cellspacing|}}}|{{{cellspacing}}}|5}}" style="float: {{#if:{{{float|}}}|{{{float}}}|right}}; clear: {{#ifeq:{{{float|}}}|none|both|{{#if:{{{float|}}}|{{{float}}}|right}}}}; background-color: #f9f9f9; border: 1px solid #aaa; width:{{#if:{{{width|}}}|{{{width}}}|22em}}; {{#switch:{{{float|}}}|left = margin: 0 1em 1em 0;| none | right | #default = margin: 0 0 1em 1em;}} padding: 0.2em; border-spacing: 0.4em 0; text-align: center; line-height: 1.4em; font-size: 88%; {{{bodystyle|{{{style|}}}}}}" cellpadding="{{#if:{{{cellpadding|}}}|{{{cellpadding}}}|0}}">{{#if: {{{outertitle|}}}|<caption class="{{{outertitleclass|}}}" style="padding-bottom: 0.2em; font-size: 125%; line-height: 1.2em; font-weight: bold; {{{outertitlestyle|}}}">{{{outertitle}}}</caption>
 
}}{{#if: {{{topimage|}}}|
-->{{#ifeq:{{{child|}}}|yes||{{#if:{{{outertitle|}}}
<tr>
    |<caption class="{{{outertitleclass|}}}" style="padding-bottom:0.2em;font-size:125%;line-height:1.2em;font-weight:bold;{{{outertitlestyle|}}}">{{{outertitle}}}</caption><!--
<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>
-->{{#ifeq:{{{child|}}}|yes||{{#if:{{{topimage|}}}
</tr>
    |<tr><td class="{{{topimageclass|}}}" style="padding:0.4em 0;{{{topimagestyle|}}}">{{{topimage}}}<!--
}}{{#if: {{{pretitle|}}}|
          -->{{#if:{{{topcaption|}}} |<div style="padding-top:0.2em;line-height:1.2em;{{{topcaptionstyle|}}}">{{{topcaption}}}</div>}}</td>
<tr>
      </tr>
<td class="{{{pretitleclass|}}}" style="{{#if: {{{topimage|}}}|padding-top: 0.2em; |padding-top: 0.4em;}} line-height: 1.2em; {{{pretitlestyle|}}}">{{{pretitle}}}</td>
    }}}}<!--
</tr>
 
}}{{#if: {{{title|}}}|
-->{{#ifeq:{{{child|}}}|yes||{{#if:{{{pretitle|}}}
<tr>
    |<tr><td class="{{{pretitleclass|}}}" style="{{{basestyle|}}};{{#if:{{{topimage|}}} |padding-top:0.2em |padding-top:0.4em}};line-height:1.2em;{{{pretitlestyle|}}}">{{{pretitle}}}</td>
<th class="{{{titleclass|}}}" style="padding: 0.2em 0.4em 0.2em; {{#if: {{{pretitle|}}}|padding-top: 0;}} font-size: 145%; line-height: 1.2em; {{{titlestyle|}}}">{{{title}}}</th>
      </tr>
</tr>
    }}}}<!--
}}{{#if: {{{image|}}}|
 
<tr>
-->{{#if:{{{title|}}}
<td class="{{{imageclass|}}}" style="padding: 0.2em 0 0.4em; {{{imagestyle|}}}">{{{image}}}{{#if: {{{caption|}}}|
    |{{#ifeq:{{{child|}}}|yes||<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>
<div style="padding-top: 0.2em; line-height: 1.2em; {{{captionstyle|}}}">
      </tr>
{{{caption}}}</div>}}</td>
    }}<!--
</tr>
 
}}{{#if: {{{above|}}}|
-->{{#if:{{{image|}}}
<tr>
    |<tr><td class="{{{imageclass|}}}" style="padding:0.2em 0 0.4em;{{{imagestyle|}}}">{{{image}}}<!--
<td class="{{{aboveclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{abovestyle|}}}"><!-- newline required for bullets to work -->
          -->{{#if:{{{caption|}}} |<div style="padding-top:0.2em;line-height:1.2em;{{{captionstyle|}}}">{{{caption}}}</div>}}</td>
      </tr>
    }}<!--
 
-->{{#if:{{{above|}}}
    |<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>
{{{above}}}</td>
      </tr>
}}{{#if: {{{heading1|}}}|
    }}<!--
 
heading#/content# starts here:
 
-->{{#if: {{{heading1|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading1style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{#if: {{{image|}}}|padding-top: 0.4em;}} {{{headingstyle|}}};{{{heading1style|}}}">{{{heading1}}}</th>
{{{heading1}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content1|}}}|
{{{content1|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content1style|}}}"><!-- newline required before contents# for bullets to work -->
<td class="{{{contentclass|}}}" style="{{#if: {{{heading1|{{{heading|}}}}}}||padding-top: 0.2em;}} padding-bottom: 0.2em; {{{contentstyle|}}};{{{content1style|}}}"><!-- newline required before contents# for bullets to work -->
{{{content1}}}</td>
{{{content1}}}</td>
</tr>
</tr>
}}{{#if: {{{heading2|}}}|
}}{{#if: {{{heading2|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading2style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading2style|}}}">{{{heading2}}}</th>
{{{heading2}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content2|}}}|
{{{content2|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content2style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content2style|}}}">
{{{content2}}}</td>
{{{content2}}}</td>
</tr>
</tr>
}}{{#if: {{{heading3|}}}|
}}{{#if: {{{heading3|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading3style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading3style|}}}">{{{heading3}}}</th>
{{{heading3}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content3|}}}|
{{{content3|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content3style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content3style|}}}">
{{{content3}}}</td>
{{{content3}}}</td>
</tr>
</tr>
}}{{#if: {{{heading4|}}}|
}}{{#if: {{{heading4|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading4style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading4style|}}}">{{{heading4}}}</th>
{{{heading4}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content4|}}}|
{{{content4|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content4style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content4style|}}}">
{{{content4|}}}</td>
{{{content4|}}}</td>
</tr>
</tr>
}}{{#if: {{{heading5|}}}|
}}{{#if: {{{heading5|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading5style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading5style|}}}">{{{heading5}}}</th>
{{{heading5}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content5|}}}|
{{{content5|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content5style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content5style|}}}">
{{{content5}}}</td>
{{{content5}}}</td>
</tr>
</tr>
}}{{#if: {{{heading6|}}}|
}}{{#if: {{{heading6|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading6style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading6style|}}}">{{{heading6}}}</th>
{{{heading6}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content6|}}}|
{{{content6|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content6style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content6style|}}}">
{{{content6}}}</td>
{{{content6}}}</td>
</tr>
</tr>
}}{{#if: {{{heading7|}}}|
}}{{#if: {{{heading7|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading7style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading7style|}}}">{{{heading7}}}</th>
{{{heading7}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content7|}}}|
{{{content7|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content7style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content7style|}}}">
{{{content7}}}</td>
{{{content7}}}</td>
</tr>
</tr>
}}{{#if: {{{heading8|}}}|
}}{{#if: {{{heading8|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading8style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading8style|}}}">{{{heading8}}}</th>
{{{heading8}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content8|}}}|
{{{content8|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content8style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content8style|}}}">
{{{content8}}}</td>
{{{content8}}}</td>
</tr>
</tr>
}}{{#if: {{{heading9|}}}|
}}{{#if: {{{heading9|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading9style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading9style|}}}">{{{heading9}}}</th>
{{{heading9}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content9|}}}|
{{{content9|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content9style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content9style|}}}">
{{{content9}}}</td>
{{{content9}}}</td>
</tr>
</tr>
}}{{#if: {{{heading10|}}}|
}}{{#if: {{{heading10|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading10style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading10style|}}}">{{{heading10}}}</th>
{{{heading10}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content10|}}}|
{{{content10|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content10style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content10style|}}}">
{{{content10}}}</td>
{{{content10}}}</td>
</tr>
</tr>
}}{{#if: {{{heading11|}}}|
}}{{#if: {{{heading11|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading11style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading11style|}}}">{{{heading11}}}</th>
{{{heading11}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content11|}}}|
{{{content11|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content11style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content11style|}}}">
{{{content11}}}</td>
{{{content11}}}</td>
</tr>
</tr>
}}{{#if: {{{heading12|}}}|
}}{{#if: {{{heading12|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading12style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading12style|}}}">{{{heading12}}}</th>
{{{heading12}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content12|}}}|
{{{content12|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content12style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content12style|}}}">
{{{content12}}}</td>
{{{content12}}}</td>
</tr>
</tr>
}}{{#if: {{{heading13|}}}|
}}{{#if: {{{heading13|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading13style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading13style|}}}">{{{heading13}}}</th>
{{{heading13}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content13|}}}|
{{{content13|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content13style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content13style|}}}">
{{{content13}}}</td>
{{{content13}}}</td>
</tr>
</tr>
}}{{#if: {{{heading14|}}}|
}}{{#if: {{{heading14|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading14style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading14style|}}}">{{{heading14}}}</th>
{{{heading14}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content14|}}}|
{{{content14|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content14style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content14style|}}}">
{{{content14}}}</td>
{{{content14}}}</td>
</tr>
</tr>
}}{{#if: {{{heading15|}}}|
}}{{#if: {{{heading15|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading15style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading15style|}}}">{{{heading15}}}</th>
{{{heading15}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content15|}}}|
{{{content15|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content15style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content15style|}}}">
{{{content15}}}</td>
{{{content15}}}</td>
</tr>
</tr>
}}{{#if: {{{heading16|}}}|
}}{{#if: {{{heading16|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading16style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading16style|}}}">{{{heading16}}}</th>
{{{heading16}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content16|}}}|
{{{content16|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content16style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content16style|}}}">
{{{content16}}}</td>
{{{content16}}}</td>
</tr>
</tr>
}}{{#if: {{{heading17|}}}|
}}{{#if: {{{heading17|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading17style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading17style|}}}">{{{heading17}}}</th>
{{{heading17}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content17|}}}|
{{{content17|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content17style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content17style|}}}">
{{{content17}}}</td>
{{{content17}}}</td>
</tr>
</tr>
}}{{#if: {{{heading18|}}}|
}}{{#if: {{{heading18|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading18style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading18style|}}}">{{{heading18}}}</th>
{{{heading18}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content18|}}}|
{{{content18|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content18style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content18style|}}}">
{{{content18}}}</td>
{{{content18}}}</td>
</tr>
</tr>
}}{{#if: {{{heading19|}}}|
}}{{#if: {{{heading19|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading19style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading19style|}}}">{{{heading19}}}</th>
{{{heading19}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content19|}}}|
{{{content19|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content19style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content19style|}}}">
{{{content19}}}</td>
{{{content19}}}</td>
</tr>
</tr>
}}{{#if: {{{heading20|}}}|
}}{{#if: {{{heading20|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading20style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading20style|}}}">{{{heading20}}}</th>
{{{heading20}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content20|}}}|
{{{content20|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content20style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content20style|}}}">
{{{content20}}}</td>
{{{content20}}}</td>
</tr>
</tr>
}}{{#if: {{{heading21|}}}|
}}{{#if: {{{heading21|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading21style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading21style|}}}">{{{heading21}}}</th>
{{{heading21}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content21|}}}|
{{{content21|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content21style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content21style|}}}">
{{{content21}}}</td>
{{{content21}}}</td>
</tr>
</tr>
}}{{#if: {{{heading22|}}}|
}}{{#if: {{{heading22|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading22style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading22style|}}}">{{{heading22}}}</th>
{{{heading22}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content22|}}}|
{{{content22|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content22style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content22style|}}}">
{{{content22}}}</td>
{{{content22}}}</td>
</tr>
</tr>
}}{{#if: {{{heading23|}}}|
}}{{#if: {{{heading23|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading23style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading23style|}}}">{{{heading23}}}</th>
{{{heading23}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content23|}}}|
{{{content23|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content23style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content23style|}}}">
{{{content23}}}</td>
{{{content23}}}</td>
</tr>
</tr>
}}{{#if: {{{heading24|}}}|
}}{{#if: {{{heading24|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading24style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading24style|}}}">{{{heading24}}}</th>
{{{heading24}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content24|}}}|
{{{content24|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content24style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content24style|}}}">
{{{content24}}}</td>
{{{content24}}}</td>
</tr>
</tr>
}}{{#if: {{{heading25|}}}|
}}{{#if: {{{heading25|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading25style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading25style|}}}">{{{heading25}}}</th>
{{{heading25}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content25|}}}|
{{{content25|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content25style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content25style|}}}">
{{{content25}}}</td>
{{{content25}}}</td>
</tr>
</tr>
}}{{#if: {{{heading26|}}}|
}}{{#if: {{{heading26|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading26style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading26style|}}}">{{{heading26}}}</th>
{{{heading26}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content26|}}}|
{{{content26|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content26style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content26style|}}}">
{{{content26}}}</td>
{{{content26}}}</td>
</tr>
</tr>
}}{{#if: {{{heading27|}}}|
}}{{#if: {{{heading27|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading27style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading27style|}}}">{{{heading27}}}</th>
{{{heading27}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content27|}}}|
{{{content27|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content27style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content27style|}}}">
{{{content27}}}</td>
{{{content27}}}</td>
</tr>
</tr>
}}{{#if: {{{heading28|}}}|
}}{{#if: {{{heading28|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading28style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading28style|}}}">{{{heading28}}}</th>
{{{heading28}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content28|}}}|
{{{content28|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content28style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content28style|}}}">
{{{content28}}}</td>
{{{content28}}}</td>
</tr>
</tr>
}}{{#if: {{{heading29|}}}|
}}{{#if: {{{heading29|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading29style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading29style|}}}">{{{heading29}}}</th>
{{{heading29}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content29|}}}|
{{{content29|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content29style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content29style|}}}">
{{{content29}}}</td>
{{{content29}}}</td>
</tr>
</tr>
}}{{#if: {{{heading30|}}}|
}}{{#if: {{{heading30|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading30style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading30style|}}}">{{{heading30}}}</th>
{{{heading30}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content30|}}}|
{{{content30|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content30style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content30style|}}}">
{{{content30}}}</td>
{{{content30}}}</td>
</tr>
</tr>
}}{{#if: {{{heading31|}}}|
}}{{#if: {{{heading31|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading31style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading31style|}}}">{{{heading31}}}</th>
{{{heading31}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content31|}}}|
{{{content31|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content31style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content31style|}}}">
{{{content31}}}</td>
{{{content31}}}</td>
</tr>
</tr>
}}{{#if: {{{heading32|}}}|
}}{{#if: {{{heading32|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading32style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading32style|}}}">{{{heading32}}}</th>
{{{heading32}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content32|}}}|
{{{content32|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content32style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content32style|}}}">
{{{content32}}}</td>
{{{content32}}}</td>
</tr>
</tr>
}}{{#if: {{{heading33|}}}|
}}{{#if: {{{heading33|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading33style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading33style|}}}">{{{heading33}}}</th>
{{{heading33}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content33|}}}|
{{{content33|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content33style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content33style|}}}">
{{{content33}}}</td>
{{{content33}}}</td>
</tr>
</tr>
}}{{#if: {{{heading34|}}}|
}}{{#if: {{{heading34|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading34style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading34style|}}}">{{{heading34}}}</th>
{{{heading34}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content34|}}}|
{{{content34|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content34style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content34style|}}}">
{{{content34}}}</td>
{{{content34}}}</td>
</tr>
</tr>
}}{{#if: {{{heading35|}}}|
}}{{#if: {{{heading35|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding:0.1em;{{{basestyle|}}};{{{headingstyle|}}};{{{heading35style|}}}">
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading35style|}}}">{{{heading35}}}</th>
{{{heading35}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content35|}}}|
{{{content35|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding:0 0.1em 0.4em;{{{contentstyle|}}};{{{content35style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content35style|}}}">
{{{content35}}}</td>
{{{content35}}}</td>
</tr>
</tr>
}}<!--
}}{{#if: {{{below|}}}|
 
<tr>
-->{{#if: {{{below|}}}
<td class="{{{belowclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{belowstyle|}}}">
    |<tr><td class="{{{belowclass|}}}" style="padding:0.3em 0.4em 0.3em;font-weight:bold;{{{belowstyle|}}}">
{{{below}}}</td>
{{{below}}}</td>
    </tr>
</tr>
    }}<!--
}}{{#switch: {{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}}
 
|none |off=
-->{{#ifeq:{{{child|}}}|yes||{{#switch:{{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}}
|#default=<tr>
    |none |off=
<td style="text-align: right; font-size: 115%; {{{navbarstyle|{{{tnavbarstyle|}}}}}}">{{navbar|{{{name|{{PAGENAME}}}}}|mini=1|fontstyle={{{navbarfontstyle|{{{tnavbarfontstyle|}}}}}}}}</td>
    |#default=<tr><td style="text-align:right;font-size:115%;{{{navbarstyle|{{{tnavbarstyle|}}}}}}">{{navbar|{{{name|{{PAGENAME}}}}}|mini=1|fontstyle={{{navbarfontstyle|{{{tnavbarfontstyle|}}}}}}}}</td></tr><!--
</tr>}}
-->}}
</table><noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of Template: Sidebar/doc, not here --></noinclude>
</table>}}<noinclude>{{documentation}}<!-- Please add categories and interwikis to the bottom of Template:Sidebar/doc, not here --></noinclude>

Latest revision as of 20:50, 23 February 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is intended as a metatemplate for sidebar templates (vertically-aligned navigation (navbox) templates usually positioned on the right-hand sides of pages) in the same spirit as {{Infobox}} for infobox templates and {{Navbox}} for navbox templates.

{{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.

Usage

Parameters with infrequent use omitted.

{{sidebar
| name       = {{subst:PAGENAME}}
| outertitle = 
| topimage   = 
| pretitle   = 
| title      = 
| image      = 

| headingstyle = 
| contentstyle = 

| heading1 = 
| content1 = 

| heading2 = 
| content2 = 

| heading3 = 
| content3 = 

...

| heading35 = 
| content35 = 

}}

Parameters

No parameters are required unless {{navbar}} links (V - T - E) are to appear at the bottom of the sidebar, in which case the |name= parameter is needed (see entry in the table immediately below).

Principal

Parameter Explanation
|name= The sidebar's name, i.e., the name following "Template:" in the page's name. Required for the {{navbar}} links at the bottom of the sidebar to function correctly, unless these are omitted (see |navbar= at the bottom of this table). It is recommended to use {{subst:PAGENAME}} for this field.
|outertitle= Use to place a title for the sidebar immediately above the sidebar.
|topimage= Use to place an image at the top of the sidebar, i.e., above any |title= included.

Full wikisyntax expected (i.e., [[File:...]]).
To add a caption below the image, use |topcaption=.

|pretitle= Use to place a line such as "Part of the X series on" before the title.
|title= Use to place a title for the sidebar at the top of the sidebar (immediately below the |topimage=, if used).
|image= Use to place an image between the |title= (if used) and first section.

As with |topimage=, full wikisyntax expected (i.e., [[File:...]]).
To add a caption below the image, use |caption=.

|headingstyle= Use to alter the default CSS styling set for section headings.

To alter the CSS styling for a specific section's heading, use |headingnstyle=, where n is the number of the section.

|contentstyle= Use to alter the default CSS styling set for section content.

To alter the CSS styling for a particular section's content, use |contentnstyle=, where n is the number of the section.

|heading1= First section's heading (if needed).
|content1= First section's content (required).
|heading2= Second section's heading (if needed).
|content2= Second section's content (if needed).
|heading3= Third section's heading (if needed).
|content3= Third section's content (if needed).
...... etc ......
|heading35= Currently, the last possible section heading and/or content (if needed).
|content35=

Other parameters

Parameter Explanation
|above= Corresponds to |above= offered by {{Navbox}}.
  • |bodyclass= (or |class=)
  • |outertitleclass=
  • |topimageclass=
  • |pretitleclass=
  • |titleclass=
  • |imageclass=
  • |aboveclass=
  • |headingclass=
  • |contentclass=
  • |belowclass=

Microformat classes for the corresponding parameters.
(|bodyclass= (or |class=) applies to the sidebar as a whole.)

|below= Use to, e.g., add one or more portal links to the bottom of the template (by default in bold).
  • |bodystyle= (or |style=)
  • |outertitlestyle=
  • |topimagestyle=
  • |topcaptionstyle=
  • |pretitlestyle=
  • |titlestyle=
  • |imagestyle=
  • |captionstyle=
  • |abovestyle=
  • |headingstyle=
  • |headingnstyle=
  • |contentstyle=
  • |contentnstyle=
  • |belowstyle=
  • |navbarstyle= (or |tnavbarstyle=)

Use to alter default CSS styling for the corresponding parameters.
(|bodystyle= (or |style=) applies to the sidebar as a whole.)

|cellspacing= Use to amend the default cellspacing set for the infobox-class table with which the sidebar is built.
|cellpadding= Ditto the default cellpadding.
|navbar= (or |tnavbar=) Set to "none" (without the quotes) to remove the {{navbar}} links appearing at the bottom of the sidebar.
|navbarfontstyle= (or |tnavbarfontstyle=) Use to specify the font style used by the navbar at the bottom of the sidebar (see {{navbar}} for options available).

Handling long links

{{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 becoming too wide. Use {{Normalwraplink|longlinkname}}, where |longlinkname is the long link without its square brackets.

Use the |wraplinks=true parameter to turn link wrapping off for the whole template.

Full blank syntax

(omitting sections 4 to penultimate)

{{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      = 

<!--etc.-->

| heading35style = 
| heading35      = 
| content35style = 
| content35      = 

| below      = 
| belowclass = 
| belowstyle = 

| navbar          = <!--or tnavbar-->
| navbarstyle     = <!--or tnavbarstyle-->
| navbarfontstyle = <!--or tnavbarfontstyle-->

| wraplinks = true/false
}}
The above documentation is transcluded from Template:Sidebar/doc.
Please add categories to the /doc subpage.
Subpages of this template.