2,732
edits
Red Leader (talk | contribs) (From Template:Sidebar and https://en.wikipedia.org/w/index.php?title=Template:Sidebar_with_collapsible_lists&oldid=544228431) |
Red Leader (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<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> | <includeonly><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|}}}| | }}{{#if: {{{topimage|}}}| | ||
<tr> | <tr> | ||
Line 24: | Line 24: | ||
<td class="{{{aboveclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{abovestyle|}}}"><!-- newline required for bullets to work --> | <td class="{{{aboveclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{abovestyle|}}}"><!-- newline required for bullets to work --> | ||
{{{above}}}</td> | {{{above}}}</td> | ||
}}{{#if: {{{ | }}<!-- | ||
<tr> | -->{{#if: {{{content1|}}} | ||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
}}{{#if: | | id = 1 | ||
{{{ | | content = | ||
<tr> | {{{content1}}} | ||
<td | | heading = {{{heading1|}}} | ||
{{{ | | state = {{{state|}}} | ||
</tr> | | headingclass = {{{headingclass|}}} | ||
}}{{#if: {{{ | | headingstyle = {{{headingstyle|}}}; {{{heading1style|}}} | ||
<tr> | | contentclass = {{{contentclass|}}} | ||
< | | contentstyle = {{{contentstyle|}}}; {{{content1style|}}} | ||
}} | |||
}}{ | </td></tr> | ||
{{ | }}<!-- | ||
-->{{#if: {{{content2|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
</tr> | | id = 2 | ||
}}{{#if: {{{ | | content = | ||
<tr> | {{{content2}}} | ||
| heading = {{{heading2|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
{ | | headingstyle = {{{headingstyle|}}}; {{{heading2style|}}} | ||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content2style|}}} | |||
}} | |||
</tr> | </td></tr> | ||
}} | }}<!-- | ||
<tr> | -->{{#if: {{{content3|}}} | ||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
}}{{ | | id = 3 | ||
{ | | content = | ||
{{{content3}}} | |||
| heading = {{{heading3|}}} | |||
| state = {{{state|}}} | |||
</tr> | | headingclass = {{{headingclass|}}} | ||
}}{{#if: {{{ | | headingstyle = {{{headingstyle|}}}; {{{heading3style|}}} | ||
<tr> | | contentclass = {{{contentclass|}}} | ||
| contentstyle = {{{contentstyle|}}}; {{{content3style|}}} | |||
}} | |||
}} | </td></tr> | ||
{{{ | }}<!-- | ||
-->{{#if: {{{content4|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
</tr> | | id = 4 | ||
}}{{#if: {{{ | | content = | ||
<tr> | {{{content4}}} | ||
| heading = {{{heading4|}}} | |||
| state = {{{state|}}} | |||
}}{{ | | headingclass = {{{headingclass|}}} | ||
| headingstyle = {{{headingstyle|}}}; {{{heading4style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content4style|}}} | |||
}} | |||
</tr> | </td></tr> | ||
}} | }}<!-- | ||
<tr> | -->{{#if: {{{content5|}}} | ||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
}}{{ | | id = 5 | ||
{ | | content = | ||
{{{content5}}} | |||
| heading = {{{heading5|}}} | |||
| state = {{{state|}}} | |||
</tr> | | headingclass = {{{headingclass|}}} | ||
}}{{#if: {{{ | | headingstyle = {{{headingstyle|}}}; {{{heading5style|}}} | ||
<tr> | | contentclass = {{{contentclass|}}} | ||
| contentstyle = {{{contentstyle|}}}; {{{content5style|}}} | |||
}} | |||
}} | </td></tr> | ||
{{{ | }}<!-- | ||
-->{{#if: {{{content6|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
</tr> | | id = 6 | ||
}}{{#if: {{{ | | content = | ||
<tr> | {{{content6}}} | ||
| heading = {{{heading6|}}} | |||
| state = {{{state|}}} | |||
}}{{ | | headingclass = {{{headingclass|}}} | ||
| headingstyle = {{{headingstyle|}}}; {{{heading6style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content6style|}}} | |||
}} | |||
</tr> | </td></tr> | ||
}} | }}<!-- | ||
<tr> | -->{{#if: {{{content7|}}} | ||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
}}{{ | | id = 7 | ||
{ | | content = | ||
{{{content7}}} | |||
| heading = {{{heading7|}}} | |||
| state = {{{state|}}} | |||
</tr> | | headingclass = {{{headingclass|}}} | ||
}}{{#if: {{{ | | headingstyle = {{{headingstyle|}}}; {{{heading7style|}}} | ||
<tr> | | contentclass = {{{contentclass|}}} | ||
| contentstyle = {{{contentstyle|}}}; {{{content7style|}}} | |||
}} | |||
}} | </td></tr> | ||
{{{ | }}<!-- | ||
-->{{#if: {{{content8|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
</tr> | | id = 8 | ||
}}{{#if: {{{ | | content = | ||
<tr> | {{{content8}}} | ||
| heading = {{{heading8|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
{ | | headingstyle = {{{headingstyle|}}}; {{{heading8style|}}} | ||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content8style|}}} | |||
}} | |||
</tr> | </td></tr> | ||
}} | }}<!-- | ||
<tr> | -->{{#if: {{{content9|}}} | ||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
}}{{ | | id = 9 | ||
{ | | content = | ||
{{{content9}}} | |||
| heading = {{{heading9|}}} | |||
| state = {{{state|}}} | |||
</tr> | | headingclass = {{{headingclass|}}} | ||
}}{{#if: {{{ | | headingstyle = {{{headingstyle|}}}; {{{heading9style|}}} | ||
<tr> | | contentclass = {{{contentclass|}}} | ||
| contentstyle = {{{contentstyle|}}}; {{{content9style|}}} | |||
}} | |||
}} | </td></tr> | ||
{{{ | }}<!-- | ||
-->{{#if: {{{content10|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
</tr> | | id = 10 | ||
}} | | content = | ||
{{{content10}}} | |||
| heading = {{{heading10|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading10style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content10style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{content11|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
| id = 11 | |||
| content = | |||
{{{content11}}} | |||
| heading = {{{heading11|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading11style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content1style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{content12|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
| id = 12 | |||
| content = | |||
{{{content12}}} | |||
| heading = {{{heading12|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading12style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content12style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{content13|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
| id = 13 | |||
| content = | |||
{{{content13}}} | |||
| heading = {{{heading13|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading13style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content13style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{content14|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
| id = 14 | |||
| content = | |||
{{{content14}}} | |||
| heading = {{{heading14|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading14style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content14style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
-->{{#if: {{{content15|}}} | |||
| <tr><td> | |||
{{Sidebar with collapsible headers/content | |||
| id = 15 | |||
| content = | |||
{{{content15}} | |||
| heading = {{{heading15|}}} | |||
| state = {{{state|}}} | |||
| headingclass = {{{headingclass|}}} | |||
| headingstyle = {{{headingstyle|}}}; {{{heading15style|}}} | |||
| contentclass = {{{contentclass|}}} | |||
| contentstyle = {{{contentstyle|}}}; {{{content15style|}}} | |||
}} | |||
</td></tr> | |||
}}<!-- | |||
Below | |||
-->{{#if: {{{below|}}}| | |||
<tr> | <tr> | ||
<td class="{{{belowclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{belowstyle|}}}"> | <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>}}}}}} | }}<!-- | ||
-->{{#if: {{{heading1|}}}{{{heading2|}}}{{{heading3|}}}{{{heading4|}}}{{{heading5|}}}{{{heading6|}}}{{{heading7|}}}{{{heading8|}}}{{{heading9|}}}{{{heading10|}}}{{{heading11|}}}{{{heading12|}}}{{{heading13|}}}{{{heading14|}}}{{{heading15|}}} | |||
| <tr><td style="text-align: center; font-size: 85%; color: grey"><i>(click on headings to toggle)</i></td></tr> | |||
}}<!-- | |||
-->{{#switch: {{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}} | |||
|none |off= | |none |off= | ||
|#default=<tr> | |#default=<tr> | ||
<td style="text-align: right; font-size: 115%; {{{navbarstyle|{{{tnavbarstyle|}}}}}}">{{navbar|{{{name|{{PAGENAME}}}}}|mini=1|fontstyle={{{navbarfontstyle|{{{tnavbarfontstyle|}}}}}}}}</td> | <td style="text-align: right; font-size: 115%; {{{navbarstyle|{{{tnavbarstyle|}}}}}}">{{navbar|{{{name|{{PAGENAME}}}}}|mini=1|fontstyle={{{navbarfontstyle|{{{tnavbarfontstyle|}}}}}}}}</td> | ||
</tr>}} | </tr>}} | ||
</table><noinclude>{{Informative template |1= | </table></includeonly><noinclude>{{Informative template |1= | ||
== Goal == | == Goal == | ||
This is a template used by right side navigation box templates used for navigating article series and otherwise related articles. Unlike {{tl|sidebar}}, this template has collapsible headers (which are collapsed by default). | This is a template used by right side navigation box templates used for navigating article series and otherwise related articles. Unlike {{tl|sidebar}}, this template has collapsible headers (which are collapsed by default). |