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>
}}
collapsedwill collapse the contents by default if it's set totrue.expand-textis the text that will display the collapsible button when its contents are hidden.collapse-textis 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 = Afficher
| collapse-text = Masquer
| 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. |
[view] [edit] [history] [refresh]The above documentation is transcluded from Template:CollapseTable/doc.