Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Difference between revisions of "Template:Sidebar with collapsible headers"

From FlightGear wiki
Jump to: navigation, search
m (Remove some testing relics)
(Updates + fixes)
Line 25: Line 25:
 
{{{above}}}</td>
 
{{{above}}}</td>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading1|}}}
+
-->{{#if: {{{content1|}}}
| {{#if: {{{content1|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading1}}}
+
  | {{{content1}}}
            | {{{content1}}}
+
  | {{{heading1|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading1style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading1style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content1style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content1style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading2|}}}
+
-->{{#if: {{{content2|}}}
| {{#if: {{{content2|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading2}}}
+
  | {{{content2}}}
            | {{{content2}}}
+
  | {{{heading2|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading2style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading2style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content2style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content2style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading3|}}}
+
-->{{#if: {{{content3|}}}
| {{#if: {{{content3|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading3}}}
+
  | {{{content3}}}
            | {{{content3}}}
+
  | {{{heading3|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading3style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading3style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content3style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content3style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading4|}}}
+
-->{{#if: {{{content4|}}}
| {{#if: {{{content4|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading4}}}
+
  | {{{content4}}}
            | {{{content4}}}
+
  | {{{heading4|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading4style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading4style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content4style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content4style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading5|}}}
+
-->{{#if: {{{content5|}}}
| {{#if: {{{content5|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading5}}}
+
  | {{{content5}}}
            | {{{content5}}}
+
  | {{{heading5|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading5style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading5style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content5style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content5style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading6|}}}
+
-->{{#if: {{{content6|}}}
| {{#if: {{{content6|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading6}}}
+
  | {{{content6}}}
            | {{{content6}}}
+
  | {{{heading6|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading6style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading6style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content6style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content6style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading7|}}}
+
-->{{#if: {{{content7|}}}
| {{#if: {{{content7|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading7}}}
+
  | {{{content7}}}
            | {{{content7}}}
+
  | {{{heading7|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading7style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading7style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content7style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content7style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading8|}}}
+
-->{{#if: {{{content8|}}}
| {{#if: {{{content8|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading8}}}
+
  | {{{content8}}}
            | {{{content8}}}
+
  | {{{heading8|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading8style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading8style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content8style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content8style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading9|}}}
+
-->{{#if: {{{content1|}}}
| {{#if: {{{content9|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading9}}}
+
  | {{{content9}}}
            | {{{content9}}}
+
  | {{{heading9|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading9style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading9style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content9style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content9style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading10|}}}
+
-->{{#if: {{{content10|}}}
| {{#if: {{{content10|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading10}}}
+
  | {{{content10}}}
            | {{{content10}}}
+
  | {{{heading10|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading10style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading10style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content10style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content10style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading11|}}}
+
-->{{#if: {{{content11|}}}
| {{#if: {{{content11|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading11}}}
+
  | {{{content11}}}
            | {{{content11}}}
+
  | {{{heading11|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading11style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading11style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content11style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content1style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading12|}}}
+
-->{{#if: {{{content12|}}}
| {{#if: {{{content12|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading12}}}
+
  | {{{content12}}}
            | {{{content12}}}
+
  | {{{heading12|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading12style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading12style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content12style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content12style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading13|}}}
+
-->{{#if: {{{content13|}}}
| {{#if: {{{content13|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading12}}}
+
  | {{{content13}}}
            | {{{content12}}}
+
  | {{{heading13|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading13style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading13style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content13style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content13style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading14|}}}
+
-->{{#if: {{{content14|}}}
| {{#if: {{{content14|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading14}}}
+
  | {{{content14}}}
            | {{{content14}}}
+
  | {{{heading14|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading14style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading14style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content14style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content14style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
-->{{#if: {{{heading15|}}}
+
-->{{#if: {{{content15|}}}
| {{#if: {{{content15|}}}
+
| <tr><td>
  | <tr><td>{{Sidebar with collapsible headers/content
+
  {{Sidebar with collapsible headers/content
            | {{{heading15}}}
+
  | {{{content15}}
            | {{{content15}}}
+
  | {{{heading15|}}}
            | {{{state|}}}
+
  | state = {{{state|}}}
            | headingclass = {{{headingclass|}}}
+
  | headingclass = {{{headingclass|}}}
            | headingstyle = {{{headingstyle|}}}; {{{heading15style|}}}
+
  | headingstyle = {{{headingstyle|}}}; {{{heading15style|}}}
            | contentclass = {{{contentclass|}}}
+
  | contentclass = {{{contentclass|}}}
            | contentstyle = {{{contentstyle|}}}; {{{content15style|}}}
+
  | contentstyle = {{{contentstyle|}}}; {{{content15style|}}}
            }}</td></tr>
+
 
   }}
 
   }}
 +
  </td></tr>
 
}}<!--
 
}}<!--
 
  Below
 
  Below

Revision as of 09:27, 11 December 2015

The following template description is not displayed when the template is inserted in an article.

Goal

This is a template used by right side navigation box templates used for navigating article series and otherwise related articles. Unlike {{sidebar}}, this template has collapsible headers (which are collapsed by default).

For more documentation, see Template:Sidebar.

Related templates

External links