Editing Help:Tables

From Guild of Archivists
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 217: Line 217:


== Other table classes ==
== Other table classes ==
=== Sortable ===
There is also a '''sortable''' class that can be added to make a table sortable:
Using the '''sortable''' class will add sorting buttons to the column headers:


<pre>
<pre>
Line 234: Line 233:


{| class="wikitable sortable"
{| class="wikitable sortable"
|-
! Column A !! Column B
|-
| Alpha || Sigma
|-
| Beta || Epsilon
|-
| Gamma || Omega
|}
=== Collapsible ===
The '''mw-collapsible''' class adds a "collapse" link in the table header, enabling you to collapse large tables. To show the table collapsed by default, also include the '''mw-collapsed''' class. You may wish to add a separate table header row with the name of the table, so that the "collapse" link doesn't get appended to the last column's header.
<pre>
{| class="wikitable mw-collapsible mw-collapsed"
|-
! colspan="2" | Table name
|-
! Column A !! Column B
|-
| Alpha || Sigma
|-
| Beta || Epsilon
|-
| Gamma || Omega
|}
</pre>
{| class="wikitable mw-collapsible mw-collapsed"
|-
! colspan="2" | Table name
|-
|-
! Column A !! Column B
! Column A !! Column B
Line 277: Line 245:
== See also ==
== See also ==
* [[w:Help:Sorting|Wikipedia's Help:Sorting]] page, for all details about sortable tables.
* [[w:Help:Sorting|Wikipedia's Help:Sorting]] page, for all details about sortable tables.
* [[mw:MediaWiki talk:CollapsibleTables.js]] - For tables that can be collapsed via show/hide buttons to show or hide the content apart from the table headers.
* [[GoArch:Color schemes]]
* [[GoArch:Color schemes]]


{{Help navbox}}
{{Help navbox}}
Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see GoArch:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)