Description
- This template is used for a collapsible section including section title.
- Syntax
- Insert this template using
{{Collapsible_begin}}, positioned immediately before the collapsible content.
- Works in conjunction with
{{Collapsible_end}}, positioned immediately after the collapsible content.
- Params
|text= To add a section title and additional text in the Show/Hide link.
|hide= The default state is not-collapsed, if instead you want the section hidden on page load, then use hide=1.
Examples
- Notes
- The default state of the collaspible content is not-collapsed, requiring user input to hide the collapsible content on each page visit or refresh.
- Example 1 - with title
{{Collapsible_begin|members}}
{|class="wikitable sortable" {{Prettytable}}
!Callsign!!Name!!Vehicle
|-
|Red Five||Luke Skywalker||X-wing
|}
{{Collapsible_end}}
- Example 1 result
Members
- Example 2 - without title
{{Collapsible_begin}}
{|class="wikitable sortable" {{Prettytable}}
!Callsign!!Name!!Vehicle
|-
|Red Five||Luke Skywalker||X-wing
|}
{{Collapsible_end}}
- Example 2 result
- Example 3 - using hide=1
{{Collapsible_begin||hide=1}}
{|class="wikitable sortable" {{Prettytable}}
!Callsign!!Name!!Vehicle
|-
|Red Five||Luke Skywalker||X-wing
|}
{{Collapsible_end}}
- Example 3 result