More actions
Torr Victros (talk | contribs) Testing new template |
Proton One (talk | contribs) No edit summary |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{| class="collapsible collapsed" style="background-color: | <includeonly>{| class="collapsible collapsed" style="background-color: var(--background-color-warning-subtle); border: 1px solid var(--color-success); padding:0.2em; width:{{{width|30%}}}" | ||
! style="text-align:left" | <span style="color: | ! style="text-align: left" | <span style="color:var(--color-success)">{{{1|}}}</span> | ||
|- | |- | ||
| style="font-size:90%; | | style="font-size: 90%; | {{{2|}}} | ||
|} | |}</includeonly><noinclude> | ||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 13:57, 30 October 2025
Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template creates a green, expandable box that displays only a title when collapsed, and both title and text when expanded. It is collapsed by default.
- Dependencies
-
- Uses
- Classes collapsible and collapsed
- Syntax
- {{CollapseBox|<title>|<text>|<width=>}}
- Parameters
-
- title
- The title of the box. This is always visible.
- text
- Contents of the box, only visible when expanded.
- width=
- The width of the box, preferably in %. Default value is 30%. (Optional)
- Sample
| {{CollapseBox|New title|Text to be shown or hidden.}} |
| New title |
|---|
| Text to be shown or hidden. |
| {{CollapseBox|New title|Text to be shown or hidden.|width=70%}} |
| New title |
|---|
| Text to be shown or hidden. |