Utilisateur:Raymond SÉNÈQUE/Article en cours : Différence entre versions
De WikiGenWeb
m |
m |
||
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: | |
− | {| class="wikitable | + | <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 | |
− | |||
− | |||
− | |||
− | |||
|} | |} |
Version du 26 février 2011 à 13:35
=== 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:
{| class="wikitable collapsible collapsed" ! Header |- | Content which starts hidden |- | more hidden content |}
Gives:
Header |
---|
Content which starts hidden |
more hidden content |