Content deleted Content added
→Collapsible tables: fix 'click hide to see' to 'click hide to collapse' and 'click show to see' |
→Collapsible tables: move {{shortcut}} up (as it redirects to the entire section rather than an anchor within it) |
||
Line 677:
== Collapsible tables ==
{{see also|Help:Collapsing#Collapsible tables|mw:Manual:Collapsible elements}}
{{shortcut|WP:TABLECOLLAPSE}}▼
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.
Line 839 ⟶ 840:
'''Sorting and collapsing'''
▲{{shortcut|WP:TABLECOLLAPSE}}
It is possible to collapse a sortable table. To do so, you need to use this code:
:<code>'''class="wikitable sortable mw-collapsible"'''</code>
|