Template:Collapsible: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div | --><div class="pp-collapsible mw-collapsible {{#if:{{{collapsed|}}}|mw-collapsed}}" style="{{{style|}}}" data-expandtext="{{{expand_text|{{{2|Expand Button}}}}}}" data-collapsetext="{{{collapse_text|{{{2|Collapse Button}}}}}}"><!-- | ||
--><div class="mw-collapsible-content" {{#if:{{{collapsed|}}}|style="display: none"}}>{{{1|Placeholder Content}}}</div><!-- | |||
--></div></includeonly><noinclude>{{Documentation|type=Design}}</noinclude> | |||
--><div class="mw-collapsible-content" {{#if:{{{collapsed|}}}|style="display: none"}}> | |||
Latest revision as of 21:24, 3 September 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Create a collapsible using collapsible elements.
Syntax
[edit source]{{Collapsible|collapsible content|button text|collapsed = set to 1 to collapsed}}
Examples
[edit source]Placeholder Content
This content is visible by default
Template Data
[edit source]Create a collapsible using Collapsible elements.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Collapsible Content | 1 | The content to display in collapsible.
| String | suggested |
| Button Text | 2 | Text to display on collapsible toggle.
| String | suggested |
| Set Collapsed | collapsed | Set to "1" to display content as collapsed. | Boolean | optional |
| Expand Button Text | expand_text | Text prompt on button text expand.
| String | optional |
| Collapse Button Text | collapse_text | Text prompt on button to collapse.
| String | optional |
| Expand Arrow Text | expand_arrow | Text on sides of button text to expand.
| String | optional |
| Collapse Arrow Text | collapse_arrow | Text on sides of button text to collapse.
| String | optional |
| No Arrow Text | no_arrow | Set to "1" to hide sides of button text. | Boolean | optional |
| No Left Arrow Text | no_left_arrow | Set to "1" to hide left side of button text. | Boolean | optional |
| No Right Arrow Text | no_right_arrow | Set to "1" to hide right side of button text. | Boolean | optional |
| Collapsible's CSS | style | Custom CSS to apply on the collapsible element, without enclosing quotation marks
| String | suggested |