Template:Togglebox/doc

From Wikipedia, the free encyclopedia
Description
This template is used to create a styled header/body container with a collapsible property, toggled by selecting the header section.
Syntax
{{Togglebox
 |header =
 |body =
}}
Inserting a pipe '|' directly after the template name will expand the body by default.
Inserting a second pipe directly after the first pipe will disable the collapsible property and indicative text highlight (second sample).
The indicative text highlight upon hovering over the header section will not function if the togglebox is positioned such that it displays the first subheading of the page. Include the behaviour switch __NOTOC__ on the page to resolve this.
Sample
{{Togglebox
 |header = Secret intelligence
 |body = You must possess all items in addition to the briefcase to escape the embassy.
*Disguise
*Key
*Money bag
*Passport
}}

{{Togglebox||
 |header = Today's Specials
 |body = Welcome to ''Costello's Tavern''! We are now selling:
*Razzled sphinx
*Sophoring lemondress
*Unfaven roijenberry
}}
Sample output

Secret intelligence

You must possess all items in addition to the briefcase to escape the embassy.
  • Disguise
  • Key
  • Money bag
  • Passport

Today's Specials

Welcome to Costello's Tavern! We are now selling:
  • Razzled sphinx
  • Sophoring lemondress
  • Unfaven roijenberry