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/content"
From FlightGear wiki
Red Leader (Talk | contribs) |
(doc based on https://en.wikipedia.org/w/index.php?title=Template:Sidebar_with_collapsible_lists/row&oldid=641875988; cat: Navigation templates; Note: Had to remove noinlcude tags for documentation to show) |
||
Line 1: | Line 1: | ||
− | + | {{#if: {{{heading|}}} | <tr> | |
<th class="mw-customtoggle-{{{id}}} {{{headingclass|}}}" style="text-align: center; padding-top: 0.2em; padding-bottom: 0.2em; {{{headingstyle|}}}">{{{heading}}}</th> | <th class="mw-customtoggle-{{{id}}} {{{headingclass|}}}" style="text-align: center; padding-top: 0.2em; padding-bottom: 0.2em; {{{headingstyle|}}}">{{{heading}}}</th> | ||
</tr> | </tr> | ||
Line 8: | Line 8: | ||
{{{content|}}}</td> | {{{content|}}}</td> | ||
− | </tr | + | </tr><noinclude> |
− | [[Category: | + | {{Informative template|1= |
+ | __NOTOC__ | ||
+ | == Goal == | ||
+ | This is a subtemplate to {{tl|sidebar with collapsible headers}}. | ||
+ | |||
+ | == Usage == | ||
+ | {{obr}}'''sidebar with collapsible headers/content'''{{!}}mandatory{{!}}''optional'' {{!}}mandatory= {{!}}''optional=''{{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 | ||
+ | |||
+ | == Examples == | ||
+ | Examples using different options. | ||
+ | |||
+ | == Known issues == | ||
+ | Known issues and workarounds if such are known. | ||
+ | |||
+ | == Related templates == | ||
+ | * {{tl|example}} | ||
+ | |||
+ | }} | ||
+ | |||
+ | [[Category:Navigation templates]] | ||
</noinclude> | </noinclude> |
Revision as of 11:18, 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|mandatory|optional |mandatory= |optional=}}
- 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
Examples
Examples using different options.
Known issues
Known issues and workarounds if such are known.
Related templates
- {{example}}