Changes

Help:Tables

1,041 bytes added, 08:28, 3 October 2011
Added sortable tables
** Line breaks (<nowiki><br></nowiki>) are automatically inserted before sortable column icon.
** Tweaks improving how dates and numbers are parsed.
 
===Sortable Tables===
Sometimes a table becomes too large, or contains information that isn't always wanted on a page. In such cases, the table can be made '''collapsible'''. This places a link at the top right of the first column that allows the user to show or hide the contents of the table. Additionally, tables can be marked as '''collapsed''', which causes the table to start in a hidden state.
{| width=100%
|-
|width=50%|
<nowiki>
{| class="wikitable collapsible"
!Name!!Value!!Price
|-
|Alpha||42||$500.00
|-
|Beta||27||$2000.00
|-
|Gamma||3||$10.00
|}</nowiki>
|width=50%|
{| class="wikitable collapsible"
!Name!!Value!!Price
|-
|Alpha||42||$500.00
|-
|Beta||27||$2000.00
|-
|Gamma||3||$10.00
|}
|}
 
{| width=100%
|-
|width=50%|
<nowiki>
{| class="wikitable collapsible collapsed"
!Name!!Value!!Price
|-
|Alpha||42||$500.00
|-
|Beta||27||$2000.00
|-
|Gamma||3||$10.00
|}</nowiki>
|width=50%|
{| class="wikitable collapsible collapsed"
!Name!!Value!!Price
|-
|Alpha||42||$500.00
|-
|Beta||27||$2000.00
|-
|Gamma||3||$10.00
|}
|}
 
==Examples==
78,952
edits