Template:Collapsible box/doc
This is a documentation subpage for Template:Collapsible box. It contains usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
Usage
editGeneric template for a collapsible box. Can be used to format templates with specific purposes. Little default formatting is provided; calling templates should set this as they see fit.
Generally, you should wrap this template in another template for a specific purpose.
- title: The box title, optional (always show if given)
- content: The box's main content (this can be collapsed)
- collapsed:
yes
to collapse the box by default - style_outer: CSS style for the outer box
- class_outer: CSS classes for the outer box
- attribs_outer: Additional CSS attributes for the outer box
- style_title: CSS style for the title
- class_title: CSS classes for the title
- style_content: CSS style for the content box
- class_content: CSS classes for the content box
- closing_divs: Whether to include closing divs for the outer box; defaults to yes.
- {{Collapsible box/e}} provides the appropriate number of closing divs.
Example
{{collapsible box | title = Box title | content = {{lorem ipsum}} }}
Box title
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Example
{{collapsible box | title = Box title | content = {{lorem ipsum}} | style_outer = border: 1px solid blue; | style_content = border: 1px solid red; }}
Box title
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Example
{{collapsible box | content = {{lorem ipsum}} | style_outer = border: 1px solid blue; | style_content = border: 1px solid red; }}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
See also
edit- Users of {{collapsible box}}:
- {{doc example}}: uses this template for documentation examples
- {{closed}}: uses this template for closed discussions
- {{collapsed section}}: uses this to hide sections of books and other texts.
- {{Advertisements}}
- {{Front matter}}
- {{license container begin}} and {{license container end}}