Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TheOpenRoad Support
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Collapse/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==TemplateData== {{TemplateData header}} <templatedata> { "description": "Creates a collapsible box that allows its content to be hidden or revealed on user's command. It is used to reduce clutter.", "params": { "1": { "label": "Contents", "description": "Contents of the box", "type": "content", "required": true, "aliases": [ "content", "text" ] }, "2": { "label": "Title", "description": "Text of title bar. Defaults to \"Extended contents\".", "type": "string", "suggested": true, "aliases": [ "title", "heading", "header", "reason", "result" ], "default": "Extended content" }, "expand": { "label": "Expanded by default?", "description": "Setting to \"yes\" (or \"y\", \"expand\", \"expanded\", \"uncollapse\", or \"uncollapsed\") will cause the box to show its contents by default. Any other value (and omitting this parameter) causes the box to be expanded by default. If not set or set to another value (e.g. \"no\") the box will be collapsed by default (its contents hidden).", "type": "string", "default": "no" }, "border": { "label": "Border width", "description": "Width of the outermost border. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \"px\") Example: 2px.", "type": "string", "default": "1px" }, "bg": { "label": "Title bar's color", "description": "Color of the title bar. Can be set any valid CSS color value but please take care that text would remain black.", "type": "string", "aliases": [ "background" ], "default": "#F0F2F5" }, "padding": { "label": "Padding", "description": "Width of the padding, the empty space between border and the contents. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. \"px\") Example: 2px.", "default": "8px" }, "bg1": { "label": "Outer background", "description": "Color of the space between the inner and outer border. Can be set to any valid CSS color.", "type": "string", "default": "transparent" }, "b-color": { "label": "Outer border color", "description": "Color of the outer border. Can be any valid CSS color.", "type": "string", "default": "silver" }, "width": { "label": "Collapse box width", "description": "The width of the entire collapsed box.", "type": "string", "default": "100%" }, "center": { "label": "Center-align title", "description": "If set to any value, the title will be centered.", "type": "boolean" }, "fc": { "label": "Font color", "description": "Font color for the title. Also sets the color of the [show]/[hide] link. Can be any valid CSS color", "type": "string" }, "class": { "label": "CSS class", "description": "Additional CSS class to add", "type": "string" }, "float": { "label": "CSS float", "description": "CSS float, one of \"left\", \"right\", \"none\", \"center\"/\"centre\", or blank.", "type": "string" }, "clear": { "label": "CSS clear", "description": "CSS clear value. The default depends on the selected float. Usually one of \"none\", \"left\", \"right\", or \"both\"", "type": "string" }, "left": { "label": "Left-align title", "description": "Left-aligns the title. Takes precedence over center.", "type": "boolean" }, "border2": { "label": "Content border", "description": "CSS border styling to add to the content.", "type": "string", "default": "1px silver" }, "bg2": { "label": "Content background color", "description": "Background color to use for expanded content.", "type": "string", "default": "white" }, "fc2": { "label": "Font color for inside box", "description": "The color of the font inside the collapsed box. Can be any valid CSS color.", "example": "inherit", "type": "string" } } } </templatedata>
Summary:
Please note that all contributions to TheOpenRoad Support may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TheOpenRoad Support:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)