|
|
Ligne 1 : |
Ligne 1 : |
− |
| + | |
− | === Collapsible tables ===
| |
− | Classes can also be used to collapse tables, so they are hidden by default. Use the style 'collapsible' to enable collapsing behaviour. By default, a collapsible table will begin expanded. To change this, include the additional class 'collapsed' or 'autocollapse' (i.e. only collapse if 3 other collapsible tables are present). You must include a header row, where the 'hide' option will be displayed. Example:
| |
− | <pre style="display: inline-block;">
| |
− | {| class="wikitable collapsible collapsed"
| |
− | ! Header
| |
− | |-
| |
− | | Content which starts hidden
| |
− | |-
| |
− | | more hidden content
| |
− | |}
| |
− | </pre>
| |
− | Gives:
| |
− | {| class="wikitable collapsible collapsed"
| |
− | |-
| |
− | ! Header
| |
− | |-
| |
− | | Content which starts hidden
| |
− | |-
| |
− | | more hidden content
| |
− | |}
| |