Template:Sidebar with collapsible headers/content: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (New param and change to content for lists)
m (doc: dito)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="NavFrame {{{state|collapsed}}}" style="border: none; padding-top: 0.2em;">
{{#if: {{{heading|}}} | <tr>
    <div class="NavHead {{{headingclass|}}}" style="font-size: 105%; background: transparent; text-align: center; {{{headingstyle|}}}"><!--
  <th class="mw-customtoggle-{{{id}}} {{{headingclass|}}}" style="text-align: center; padding-top: 0.2em; padding-bottom: 0.2em; {{{headingstyle|}}}">{{{heading}}}</th>
    -->{{{1}}}<!-- Title/heading
</tr>
--></div>
}}<!--
    <div class="NavContent {{{headingclass|}}}" style="font-size: 105%; padding-bottom: 0.2em; text-align: left; {{{headingstyle|}}}">
 
{{{2}}}<!-- Content
--><tr>
    --></div>
  <td class="{{#if: {{{heading|}}} | mw-collapsible {{#ifeq: {{{state|}}} | collapsed | mw-collapsed }} }} {{{contentclass|}}}" style="padding-top: 0.2em; padding-bottom: 0.2em; {{{contentstyle|}}}" {{#if: {{{heading|}}} | id="mw-customcollapsible-{{{id}}}" }}>
</div></includeonly><noinclude>
 
[[Category:Undocumented templates]]
{{{content|}}}</td>
</tr><noinclude>
{{Informative template|1=
__NOTOC__
== Goal ==
This is a subtemplate to {{tl|sidebar with collapsible headers}}.
 
== Usage ==
{{obr}}'''sidebar with collapsible headers/content'''
{{!}} ''state=''
{{!}} ''headingstyle=''
{{!}} ''contentstyle=''
{{!}} ''headingclass=''
{{!}} ''contentclass=''
{{!}} ''heading=''
{{!}} ''content=''
{{cbr}}
 
; state
: If not empty the section will be expanded by default.
 
; headingstyle
: Alternative style to use for the section.
 
; contentstyle
: Alternative style to use for the contents
 
; headingclass
: Alternative style class to use for the section.
 
; contentclass
: Alternative style class to use for the contents
 
; heading
: Heading for the section
 
; content
: Content of the section
 
}}
 
[[Category:Navigation templates]]
</noinclude>
</noinclude>

Latest revision as of 16:24, 13 June 2019

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

Goal

This is a subtemplate to {{sidebar with collapsible headers}}.

Usage

{{sidebar with collapsible headers/content
| state=
| headingstyle=
| contentstyle=
| headingclass=
| contentclass=
| heading=
| content=
}}
state
If not empty the section will be expanded by default.
headingstyle
Alternative style to use for the section.
contentstyle
Alternative style to use for the contents
headingclass
Alternative style class to use for the section.
contentclass
Alternative style class to use for the contents
heading
Heading for the section
content
Content of the section