Template:Collapse top/doc: Difference between revisions
Jump to navigation
Jump to search
>TheFrz mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Template shortcut|Cot}} | {{Template shortcut|Cot}} | ||
Line 54: | Line 54: | ||
{{collapse bottom}} | {{collapse bottom}} | ||
{{Documentation categories| | |||
<!-- Categories | <!-- Categories and interwikis go here. --> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
}} | }} |
Revision as of 11:05, 1 December 2020
This subpage provides documentation for Template:Collapse top.
The {{collapse top}}
template (or {{cot}}
), and its paired template {{collapse bottom}}
(or {{cob}}
), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}}
can be used instead.
Parameters
This template takes the following parameters, all of which are optional
Parameter | Description |
---|---|
expand | |
border | |
margin | |
width | |
bg-header | |
left | |
padding-header | |
1 or header | |
padding-content | |
bg-content |
Usage
Place {{collapse top}}
(or {{cot}}
), and {{collapse bottom}}
(or {{cob}}
), around the text to be collapsed. For example:
{{collapse top|This is the title text}} Sample contents text {{collapse bottom}}
produces:
This is the title text ▾
[Expand] ▾
Sample contents text