Help:Table/Advanced: Difference between revisions

Content deleted Content added
Collapsible tables: rewrite the hatnote
Line 648:
 
== Collapsible tables ==
''See{{see also: [[|Help:Collapsing]], and more examples at#Collapsible [[tables|mw:Manual:Collapsible elements]].''}}
 
Classes can also be used to collapse tables, so they are hidden by default. Use the class {{nowrap|<code>mw-collapsible</code>}} to enable collapsing behaviour. Collapsible tables can be sortable, too, by also including the <code>sortable</code> class {{See below|{{section link||Sortable tables}}}}. By default, a collapsible table begins expanded. To change this, add the additional class {{nowrap|<code>mw-collapsed</code>}}. Alternatively, you can add <code>autocollapse</code>, instead of {{nowrap|<code>mw-collapsed</code>}}, which will automatically collapse the table if two or more collapsible elements are present on the page.