Template:CollapsibleStart

From Book of Travels Wiki
Jump to navigation Jump to search

Usage

Simple

{{CollapsibleStart}}
I was hiding!
{{CollapsibleEnd}}

I was hiding!

Starting open

{{CollapsibleStart|start_open=true}}
You can see me on page load!
{{CollapsibleEnd}}

You can see me on page load!


Custom text

{{CollapsibleStart|toggle=Toggle shown/hidden}}
You can see me on page load!
{{CollapsibleEnd}}

I was hiding!


{{CollapsibleStart|collapsetext=Hide me|expandtext=Show me}}
I was hiding
{{CollapsibleEnd}}

I was hiding


Parameters

No description.

Template parameters

ParameterDescriptionTypeStatus
Start Openstart_open

Should the element start out open?

Booleanoptional
Expand Textexpandtext

Text to display on the toggle button when the element is closed

Default
Show Hidden Information
Example
Show Info
Stringoptional
Collapse Textcollapsetext

Text to display on the toggle button when the element is open

Example
Hide Information
Stringoptional
Toggle Texttoggle

Text to use instead of expandtext and collapsetext to show on both open and collapsed states. Will be used as a default for expandtext or collapsetext

Example
Toggle Visibility
Stringoptional