Widget:ExpandableBoxStart

From Open Energy Information

The widget creates an expandable text box which can contain any standard wiki content. The box will be collapsed upon page load and can be expanded by clicking anywhere on the box. Once expanded, the box can be collapsed by clicking anywhere on the box header (the original box).

Users of this widget must use the Start and End variants of the widget, as shown below. While slightly less convenient for the wiki content developer to use two widgets, this allows full wikitext in the expandable text area, which would otherwise just be limited to plaintext.

Note: You must also use the accompanying variant of this widget: Widget:ExpandableBoxEnd

Parameters
  • label - text label of the box header (optional, default "More Information")
  • style - any additional css style to apply to the label (optional)
  • color - the css background-color to apply to the container (optional, default OpenEI green)
  • autoExpand - expand the expandable content on page load (optional, default "false")
  • icon - name of icon to display (optional)
    • Acceptable values: info, help, alert, comment, plus, lightbulb, and more..
      Supports all icons featured on Widget:IconContainer, simply omit the ui-icon portion of the icon name.
  • cleanMode - A varient on the display of the expandable box which hides the containing 'box', opting for a simple line instead.
    • In cleanMode, the color param specifies the color of the line.
Usage
{{#Widget:ExpandableBoxStart|label=Expandable Content|icon=info}}
Lorem ipsum stet dicant volumus vim no. Electram deseruisse vix no, eum modus soluta minimum at, est te aperiri dissentiunt.

'''Wiki Text Works Too!'''

Ea possim scaevola vix, aperiri percipit mediocritatem eam cu, te vel dolores reprimique.
Mea eruditi appetere conceptam te, quo et illud elitr, ne modo ornatus periculis per.
{{#Widget:ExpandableBoxEnd}}


{{#Widget:ExpandableBoxStart|label=Expandable Content (Clean Mode)|cleanMode=on}}
Lorem ipsum stet dicant volumus vim no. Electram deseruisse vix no, eum modus soluta minimum at, est te aperiri dissentiunt.

'''Wiki Text Works Too!'''

Ea possim scaevola vix, aperiri percipit mediocritatem eam cu, te vel dolores reprimique.
Mea eruditi appetere conceptam te, quo et illud elitr, ne modo ornatus periculis per.
{{#Widget:ExpandableBoxEnd}}


 
Expandable Content

 
Expandable Content (Clean Mode)