Template:CollapseTable
Jump to navigation
Jump to search
{{{1}}} |
Usage
Used to add collapsible tables on pages where the contents would be too long to display otherwise.
- Syntax
{{CollapseTable | collapsed = true | expand-text = | collapse-text = | <Contents here> }}
collapsed
will collapse the contents by default if it's set totrue
.expand-text
is the text that will display the collapsible button when its contents are hidden.collapse-text
is the text that will display the collapsible button when its contents are shown.- If a parameter name is not set, anything put in that nameless parameter will be the collapsible contents.
Note: in the contents' parameter, there should not be a space between the pipe ( |
) character and the text, as it will automatically parse into a <pre> element.
- So, for example:
{{CollapseTable | expand-text = Open contents | collapse-text = Close contents | Recusandae harum animi dolores quo corporis cupiditate. Quia iusto aut quia maiores sequi unde corporis. }}
gives:
Recusandae harum animi dolores quo corporis cupiditate. Quia iusto aut quia maiores sequi unde corporis. |