Changes

Help:Tables

159 bytes added, 06:30, 15 September 2007
m
Sortable Tables: minor tweaks
You can exlcude a column from sorting by giving the header the "unsortable" class, like so:
{|
|-valign=top
|
<nowiki>{| class="wikitable sortable"</nowiki>
<nowiki>|Gamma||3||$10.00||Above the dresser</nowiki>
<nowiki>|}</nowiki>
|-
|
{| class="wikitable sortable"
 
{|
|-valign=top
|
<nowiki>{| class="wikitable sortable"</nowiki>
<nowiki>|'''Totals:'''||'''72'''||'''$2510'''</nowiki>
<nowiki>|}</nowiki>
|-
{| class="wikitable sortable"
!Name!!Value!!Price
|}
|}
Keep in mind that only ''one'' row can be bottom-sorted in this way, and there is no way to top-sort a columnrow. Also, tables with row-spanning or column-spanning cells may not behave properly as sortable tables.
 
==TD==
{| border=1
|+ '''This is the caption.''' Example taken from Afghanistan table.
|[[Help:Independence|Independence]]||[[Help:August 19|August 19]], [[Help:1919|1919]]
|-
|[[Help:Currency|Currency]]||[[Help:Afghani|Afghani]]
|-
|[[Help:Time zone|Time zone]]||[[Help:UTC|UTC]]+4:30
|-
|[[Help:National anthem|National anthem]]||[[Help:Sououd-e-Melli|Sououd-e-Melli]]
|-
|[[Help:Top-level domain|Internet TLD]]||.AF
|}