Template:Collapsible: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "<includeonly><!-- --><div <!-- -->class="<!-- -->pp-collapsible mw-collapsible <!-- -->{{#if:{{{collapsed|}}}|mw-collapsed}}<!-- -->" <!-- -->style="<!-- -->{{{style|}}}<!-- -->" <!-- -->data-expandtext="<!-- -->{{#if:{{{no_arrow|}}}{{{no_left_arrow|}}}||{{{expand_arrow|▼}}}}}<!-- -->{{{expand_text|{{{2|Placeholder Button}}}}}}<!-- -->{{#if:{{{no_arrow|}}}{{{no_right_arrow|}}}||{{{expand_arrow|▼}}}}}<!-- -->" <!--..." |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
--><div <!-- | --><div <!-- | ||
-->class="<!-- | -->class="<!-- | ||
--> | -->giw-collapsible mw-collapsible <!-- | ||
-->{{#if:{{{collapsed|}}}|mw-collapsed}}<!-- | -->{{#if:{{{collapsed|}}}|mw-collapsed}}<!-- | ||
-->" <!-- | -->" <!-- | ||
| Line 19: | Line 19: | ||
-->"<!-- | -->"<!-- | ||
-->><!-- | -->><!-- | ||
--> | --><div class="mw-collapsible-content" {{#if:{{{collapsed|}}}|style="display: none"}}><!-- | ||
-->{{#if:{{{openonly|}}}||{{{1|Placeholder Content}}}<!-- | |||
{{{1|Placeholder Content}}}<!-- | |||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
-->}}</includeonly><noinclude>{{Documentation|type=Design}}</noinclude> | -->}}</includeonly><noinclude>{{Documentation|type=Design}}</noinclude> | ||
Revision as of 21:01, 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
{{Collapsible|collapsible content|button text|collapsed = set to 1 to collapsed}}
Examples
Placeholder Content
This content is visible by default
Template Data
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 |