Template:Collapse/doc
Jump to navigation
Jump to search
Usage
{{Collapse | 1 = content of collapsible box | 2 = title of collapsible box | bg = background color CSS parameter, #RRGGBB value | padding = cell padding CSS parameter, defaults to 1px | float = float CSS parameter, defaults to none | width = width CSS parameter, defaults to 100% | clear = clear CSS parameter, defaults to both | expand = yes/no - if collapse box should start expanded }}
Note on Talk pages
If you use this template in discussions (for example Talk pages), it is highly recommended that you use this template using substitution. Substed template is a way to make sure that timestamps (for example ~~~~
) will work correctly.
Usage with subst
Simply add subst:
before naming a template:
{{subst:Collapse...}
Examples
Simple example
{{Collapse|text|Header}}
Header |
---|
text |
Named parameters
{{Collapse|2=text|1=Header}}
text |
---|
Header |
Different colors and padding
{{Collapse|2=Header|1=text|bg=#379|color=#f93|padding=8px}}
Header |
---|
text |
See Also
- Template:Spoiler – for inline spoilers
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.