Template:ShroomCollapsible

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search

Use this template to create collapsible boxes in The 'Shroom.

Parameter Description
(unnamed) The contents of this collapsible.
header The header/title to display on top of this collapsible. If omitted, the "show"/"hide" button is aligned left.
open Optional parameter to indicate that this collapsible should be expanded initially. Set to any value to expand.
width Optional CSS width of this collapsible. Defaults to use the full width of the page, or 265 pixels if align is set to floatleft or floatright.
align Optional alignment of this collapsible. Can be set to:
  • left or right, which aligns the collapsible in that direction without allowing text to flow around it (does not have any effect if width is not set),
  • centre, center, or middle, which centres the collapsible (does not have any effect if width is not set),
  • floatleft or floatright, which aligns it to that direction, and allows text to flow around it.
expandtext Optional text to show in place of "show" on the button.
collapsetext Optional text to show in place of "hide" on the button.
class Optional parameter to give a CSS class to this collapsible. Primarily for setting team styles on pages other than that team.

Examples:

{{ShroomCollapsible|Just a simple box}}

Results in:

Just a simple box
{{ShroomCollapsible
|header=Answers
|width=300px
|align=centre
|Here are the answers!}}

Results in:

Answers
Here are the answers!
{{ShroomCollapsible
|open=1
|align=floatleft
|class=sw
|The quick brown fox jumps over the lazy dog.}}

Results in:

The quick brown fox jumps over the lazy dog.

Here is some text to demonstrate it flowing around. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean varius hendrerit metus, ut bibendum orci vestibulum in. Morbi eget felis massa. In finibus sapien a dignissim aliquam. Sed at est commodo, efficitur libero vel, tincidunt libero. Donec fermentum ante et nisi convallis, eu faucibus massa feugiat. Ut in fringilla sapien. Nam ut nibh non odio ullamcorper The 'Shroom sed ut lacus. Curabitur sem magna, iaculis et bibendum ut, placerat a magna. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae.

{{ShroomCollapsible
|expandtext=Show the explanation
|collapsetext=Hide the explanation
|Explain, explain, explain...}}

Results in:

Explain, explain, explain...