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
(Begin editing; still need to add more rows)
(15 rows should be plenty)
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 178: Line 178:
 
             | contentclass = {{{contentclass|}}}
 
             | contentclass = {{{contentclass|}}}
 
             | contentstyle = {{{contentstyle|}}}; {{{content12style|}}}
 
             | contentstyle = {{{contentstyle|}}}; {{{content12style|}}}
 +
            }}</td></tr>
 +
  }}
 +
}}<!--
 +
-->{{#if: {{{heading13|x}}}
 +
| {{#if: {{{content13|x}}}
 +
  | <tr><td>{{Sidebar with collapsible headers/content
 +
            | {{{heading12}}}
 +
            | {{{content12}}}
 +
            | {{{state|}}}
 +
            | headingclass = {{{headingclass|}}}
 +
            | headingstyle = {{{headingstyle|}}}; {{{heading13style|}}}
 +
            | contentclass = {{{contentclass|}}}
 +
            | contentstyle = {{{contentstyle|}}}; {{{content13style|}}}
 +
            }}</td></tr>
 +
  }}
 +
}}<!--
 +
-->{{#if: {{{heading14|x}}}
 +
| {{#if: {{{content14|x}}}
 +
  | <tr><td>{{Sidebar with collapsible headers/content
 +
            | {{{heading14}}}
 +
            | {{{content14}}}
 +
            | {{{state|}}}
 +
            | headingclass = {{{headingclass|}}}
 +
            | headingstyle = {{{headingstyle|}}}; {{{heading14style|}}}
 +
            | contentclass = {{{contentclass|}}}
 +
            | contentstyle = {{{contentstyle|}}}; {{{content14style|}}}
 +
            }}</td></tr>
 +
  }}
 +
}}<!--
 +
-->{{#if: {{{heading15|x}}}
 +
| {{#if: {{{content15|x}}}
 +
  | <tr><td>{{Sidebar with collapsible headers/content
 +
            | {{{heading15}}}
 +
            | {{{content15}}}
 +
            | {{{state|}}}
 +
            | headingclass = {{{headingclass|}}}
 +
            | headingstyle = {{{headingstyle|}}}; {{{heading15style|}}}
 +
            | contentclass = {{{contentclass|}}}
 +
            | contentstyle = {{{contentstyle|}}}; {{{content15style|}}}
 
             }}</td></tr>
 
             }}</td></tr>
 
   }}
 
   }}
Line 192: Line 231:
 
<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).

Revision as of 07:37, 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