Template:Collapsible START



Like {{Collapse top}}, but easier to customize.
For readability the |} at the end should be added with {{Collapsible END}}.

numbered parameters:

  • 1: title
  • 2: any classes, especially collapsed or open

optional parameter:

  • style: any styles for the whole table (without quotes!)

styles: {{Collapsible with classes/style.css}}

These classes are defined in the styles:

  • wide: make table as wide as the page
  • followed: remove bottom border
  • center: center content of all cells
  • light, strong: lighter or stronger colors (and thicker border if strong)
  • gap-above, gap-below: add a small margin

(There is also the special class boolf-np for salmon colored wrapper tables in Studies of Euler diagrams/NP tables.)

examples

simple, one strong

{{Collapsible START|Foo|collapsed gap-below}}
Foo foo foo foo foo foo foo foo foo foo foo foo.
{{Collapsible END}}

{{Collapsible START|Bar!|open strong}}
Bar bar bar bar bar bar!
{{Collapsible END}}
The boxes will climb up to the right of an image, unless it is followed by {{clear}}.
Bar!

Bar bar bar bar bar bar!


all wide, one light

{{Collapsible START|First|open followed wide}}
Open on page load. Without bottom border.
{{Collapsible END}}

{{Collapsible START|Second|collapsed followed wide}}
Closed on page load. Without bottom border.
{{Collapsible END}}

{{Collapsible START|Third (with nested box)|collapsed wide}}
Closed on page load. With bottom border.
{{Collapsible START|Nested|collapsed light wide}}
Nested box with class <code>light</code>.
{{Collapsible END}}
{{Collapsible END}}
First

Open on page load. Without bottom border.

color classes