Utilisateur:Raymond SÉNÈQUE/Article en cours : Différence entre versions

De WikiGenWeb
Aller à : navigation, rechercher
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 alternance" style="text-align:center; width:80%;"
+
<pre style="display: inline-block;">
|+ Titre du tableau
+
{| class="wikitable collapsible collapsed"
 +
! Header
 
|-
 
|-
|
+
| Content which starts hidden
! scope=col | Titre col. A
 
! scope=col | Titre col. B
 
! scope=col | Titre col. C
 
! scope=col | Titre col. D
 
 
|-
 
|-
! scope=row | Titre ligne 1
+
| more hidden content
|donnée L1-A
+
|}
|donnée L1-B
+
</pre>
|donnée L1-C
+
Gives:
|donnée L1-D
+
{| class="wikitable collapsible collapsed"
 
|-
 
|-
! scope=row | Titre ligne 2
+
! Header
|donnée L2-A
 
|donnée L2-B
 
|donnée L2-C
 
|donnée L2-D
 
 
|-
 
|-
! scope=row |Titre ligne 3
+
| Content which starts hidden
|donnée L3-A
 
|donnée L3-B
 
|donnée L3-C
 
|donnée L3-D
 
 
|-
 
|-
! scope=row | Titre ligne 4
+
| more hidden content
|donnée L4-A
 
|donnée L4-B
 
|donnée L4-C
 
|donnée L4-D
 
 
|}
 
|}

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: