User:Tcncv/Table Sort Demo#An example from MediaWiki talk:Common.js

This page contains several tables used to demonstrate proposed colspan/rowspan enhancements to Wikipedia table sorting functions. To view the enhancements in operation, you must add importScript('User:Tcncv/sorttables.js'); to your monobook.js file (or appropriate xxx.js file for your chosen skin).

In addition to these tables, you can try the functionality on your own tables (on a suitable test page - not mainspace) by adding class="wikitable tsx_sortable" to the table header. The class="autorowspan" attribute can also be added to columns or the entire table to maximize cell merge operations.

__TOC__

Test table adapted from [[Swimming at the 2008 Summer Olympics]]

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example-->
align=center|

{| class="wikitable tsx_sortable" style=text-align:center

class="autorowspan"| autorowspan
Gender

!class="autorowspan"| autorowspan
Event

!class="autorowspan"| autorowspan
Date

! Round

!class="autorowspan"| autorowspan
Name

!class="autorowspan"| autorowspan
Nationality

! Time

! OR

! WR

rowspan=37 class="xxx" bgcolor=ccffcc| Men's

| align=left rowspan=4 | Men's 50 m freestyle

| August 14

Heat 11César Cieloalign=left | {{flagIOC|BRA|2008 Summer}}21.47OR
August 14Heat 12Amaury Leveauxalign=left | {{flagIOC|FRA|2008 Summer}}21.46OR
August 15Semifinal 1César Cieloalign=left | {{flagIOC|BRA|2008 Summer}}21.34OR
August 16FinalCésar Cieloalign=left | {{flagIOC|BRA|2008 Summer}}21.30OR
align=left rowspan=4 | Men's 100 m freestyle

| August 10

4×100 m freestyle relay
Heat 1 leadoff
Amaury Leveauxalign=left | {{flagIOC|FRA|2008 Summer}}47.76OR
August 114×100 m freestyle relay
Final leadoff
Eamon Sullivanalign=left | {{flagIOC|AUS|2008 Summer}}47.24ORWR
August 13Semifinal 1Alain Bernardalign=left | {{flagIOC|FRA|2008 Summer}}47.20ORWR
August 13Semifinal 2Eamon Sullivanalign=left | {{flagIOC|AUS|2008 Summer}}47.05ORWR
align=left rowspan=1 | Men's 200 m freestyle

| August 12

FinalMichael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}1:42.96ORWR
align=left rowspan=2 | Men's 1500 m freestyle

| August 15

Heat 3Ryan Cochranealign=left | {{flagIOC|CAN|2008 Summer}}14:40.84OR
August 15Heat 5Grant Hackettalign=left | {{flagIOC|AUS|2008 Summer}}14:38.92OR
align=left rowspan=4 | Men's 100 m backstroke

| August 10

Heat 4Matt Greversalign=left | {{flagIOC|USA|2008 Summer}}53.41OR
August 11Semifinal 1Arkady Vyatchaninalign=left | {{flagIOC|RUS|2008 Summer}}53.06OR
August 11Semifinal 2Hayden Stoeckelalign=left | {{flagIOC|AUS|2008 Summer}}52.97OR
August 12FinalAaron Peirsolalign=left | {{flagIOC|USA|2008 Summer}}52.54ORWR
align=left rowspan=1 | Men's 200 m backstroke

| August 15

FinalRyan Lochtealign=left | {{flagIOC|USA|2008 Summer}}1:53.94ORWR
align=left rowspan=3 | Men's 100 m breaststroke

| August 9

Heat 7Alexander Dale Oenalign=left | {{flagIOC|NOR|2008 Summer}}59.41OR
August 10Semifinal 2Alexander Dale Oenalign=left | {{flagIOC|NOR|2008 Summer}}59.16OR
August 11FinalKosuke Kitajimaalign=left | {{flagIOC|JPN|2008 Summer}}58.91ORWR
align=left rowspan=4 | Men's 200 m breaststroke

| August 12

Heat 5Paolo Bossinialign=left | {{flagIOC|ITA|2008 Summer}}2:08.98OR
August 12Heat 7Dániel Gyurtaalign=left | {{flagIOC|HUN|2008 Summer}}2:08.68OR
August 13Semifinal 1Kosuke Kitajimaalign=left | {{flagIOC|JPN|2008 Summer}}2:08.61OR
August 14FinalKosuke Kitajimaalign=left | {{flagIOC|JPN|2008 Summer}}2:07.64OR
align=left rowspan=3 | Men's 100 m butterfly

| August 14

Heat 7Jason Dunfordalign=left | {{flagIOC|KEN|2008 Summer}}51.14OR
August 14Heat 9Milorad Čavićalign=left | {{flagIOC|SRB|2008 Summer}}50.76OR
August 16FinalMichael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}50.58OR
align=left rowspan=3 | Men's 200 m butterfly

| August 11

Heat 6Michael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}1:53.70OR
August 12Semifinal 2Michael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}1:53.70=OR
August 13FinalMichael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}1:52.03ORWR
align=left rowspan=1 | Men's 200 m individual medley

| August 15

FinalMichael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}1:54.23ORWR
align=left rowspan=2 | Men's 400 m individual medley

| August 9

Heat 4Michael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}4:07.82OR
bgcolor=yellow| August 10FinalMichael Phelpsalign=left | {{flagIOC|USA|2008 Summer}}4:03.84ORWR
align=left rowspan=2 | Men's 4×100 m freestyle relay

| August 10

Heat 1Nathan Adrian
Cullen Jones
Ben Wildman-Tobriner
Matt Grevers
align=left | {{flagIOC|USA|2008 Summer}}3:12.23ORWR
August 11FinalMichael Phelps
Garrett Weber-Gale
Cullen Jones
Jason Lezak
align=left | {{flagIOC|USA|2008 Summer}}3:08.24ORWR
align=left rowspan=2 | Men's 4×200 m freestyle relay

| August 12

Heat 2David Walters
Ricky Berens
Erik Vendt
Klete Keller
align=left | {{flagIOC|USA|2008 Summer}}7:04.66OR
August 13FinalMichael Phelps
Ryan Lochte
Ricky Berens
Peter Vanderkaay
align=left | {{flagIOC|USA|2008 Summer}}6:58.56ORWR
align=left rowspan=1 | Men's 4×100 m medley relay

| August 17

FinalAaron Peirsol
Brendan Hansen
Michael Phelps
Jason Lezak
align=left | {{flagIOC|USA|2008 Summer}}3:29.34ORWR
rowspan=29 bgcolor=ffa0ff | Women's

| align=left rowspan=1 | Women's 50 m freestyle

| August 17

FinalBritta Steffenalign=left | {{flagIOC|GER|2008 Summer}}24.06OR
align=left rowspan=2 | Women's 100 m freestyle

| August 14

4×100 m freestyle relay
Final lead off
Britta Steffenalign=left | {{flagIOC|GER|2008 Summer}}53.38OR
August 15FinalBritta Steffenalign=left | {{flagIOC|GER|2008 Summer}}53.12OR
align=left rowspan=4 | Women's 200 m freestyle

| August 11

Heat 4Pang Jiayingalign=left | {{flagIOC|CHN|2008 Summer}}1:57.37OR
August 11Heat 5Sara Isakovicalign=left | {{flagIOC|SLO|2008 Summer}}1:55.86OR
August 11Heat 6Federica Pellegrinialign=left | {{flagIOC|ITA|2008 Summer}}1:55.45ORWR
August 13FinalFederica Pellegrinialign=left | {{flagIOC|ITA|2008 Summer}}1:54.82ORWR
align=left rowspan=2 | Women's 400 m freestyle

| August 10

Heat 5Katie Hoffalign=left | {{flagIOC|USA|2008 Summer}}4:03.71OR
August 10Heat 6Federica Pellegrinialign=left | {{flagIOC|ITA|2008 Summer}}4:02.19OR
align=left rowspan=2 | Women's 800 m freestyle

| August 14

Heat 4Rebecca Adlingtonalign=left | {{flagIOC|GBR|2008 Summer}}8:18.06OR
August 16FinalRebecca Adlingtonalign=left | {{flagIOC|GBR|2008 Summer}}8:14.10ORWR
align=left rowspan=4 | Women's 100 m backstroke

| August 10

Heat 5Anastasia Zuyevaalign=left | {{flagIOC|RUS|2008 Summer}}59.61OR
August 10Heat 6Reiko Nakamuraalign=left | {{flagIOC|JPN|2008 Summer}}59.36OR
August 10Heat 7Kirsty Coventryalign=left | {{flagIOC|ZIM|2008 Summer}}59.00OR
August 11Semifinal 2Kirsty Coventryalign=left | {{flagIOC|ZIM|2008 Summer}}58.77ORWR
align=left rowspan=2 | Women's 200 m backstroke

| August 14

Heat 4Kirsty Coventryalign=left | {{flagIOC|ZIM|2008 Summer}}2:06.76OR
August 16FinalKirsty Coventryalign=left | {{flagIOC|ZIM|2008 Summer}}2:05.24ORWR
align=left rowspan=2 | Women's 100 m breaststroke

| August 10

Heat 7Leisel Jonesalign=left | {{flagIOC|AUS|2008 Summer}}1:05.64OR
August 12FinalLeisel Jonesalign=left | {{flagIOC|AUS|2008 Summer}}1:05.17OR
align=left rowspan=2 | Women's 200 m breaststroke

| August 13

Heat 5Rebecca Sonialign=left | {{flagIOC|USA|2008 Summer}}2:22.17OR
August 15FinalRebecca Sonialign=left | {{flagIOC|USA|2008 Summer}}2:20.22ORWR
align=left rowspan=1 | Women's 200 m butterfly

| August 14

FinalLiu Zigealign=left | {{flagIOC|CHN|2008 Summer}}2:04.18ORWR
align=left rowspan=2 | Women's 200 m individual medley

| August 12

Semifinal 1Kirsty Coventryalign=left | {{flagIOC|ZIM|2008 Summer}}2:09.53OR
August 13FinalStephanie Ricealign=left | {{flagIOC|AUS|2008 Summer}}2:08.45ORWR
align=left rowspan=1 | Women's 400 m individual medley

| August 10

FinalStephanie Ricealign=left | {{flagIOC|AUS|2008 Summer}}4:29.45ORWR
align=left rowspan=1 | Women's 4×100 m freestyle relay

| August 10

FinalInge Dekker
Ranomi Kromowidjojo
Femke Heemskerk
Marleen Veldhuis
align=left | {{flagIOC|NED|2008 Summer}}3:33.76OR
align=left rowspan=2 | Women's 4×200 m freestyle relay

| August 13

Heat 1Alena Popchanka
Celine Couderc
Camille Muffat
Coralie Balmy
align=left | {{flagIOC|FRA|2008 Summer}}7:50.37OR
August 14FinalStephanie Rice
Bronte Barratt
Kylie Palmer
Linda Mackenzie
align=left | {{flagIOC|AUS|2008 Summer}}7:44.31ORWR
align=left rowspan=1 | Women's 4×100 m medley relay

| August 17

FinalEmily Seebohm
Leisel Jones
Jessicah Schipper
Libby Trickett
align=left | {{flagIOC|AUS|2008 Summer}}3:52.69ORWR

|}

Another example: 2008 Olympics Medal table

Note that the Rank column has a number of merged cells, but when the table is sorted, they are split, so that the table layout is not corrupted. If you sort by Rank again, previously merged cells are recombined. Also, if you sort a number of adjacent columns right to left (uch as Bronze, Silver, then Gold), cells are merged in all these columns. (That may not be desirable in all cases, but for this example, its been enabled.)

class="wikitable collapsible collapsed"

!Test procedure

#Click sort icon in total column and observe results.

  1. Column sorts correctly ascending or descending
  2. Header and footer rows remain in place
  3. Repeated values are merged (due to use of table-wide autorowspan option).
  4. Click same sort icon and note that sort order reverses.
  5. Click sort icon in Silver column.
  6. Review table sort and cell merge in that column.
  7. Observe that cells in total column are no longer merged.
  8. Click sort icon in Gold column.
  9. Review table sort and cell merge.
  10. The adjacent Silver column also has some merged cells.
  11. (Note: It is normal if adjacent columns are sorted in opposite orders. This is dependent on the overall sequence of sort operations selected by the user.)
  12. Click sort icon in Gold column again.
  13. Gold column sort order reverses.
  14. The adjacent Silver column still has some merged cells.
  15. Now click the sort icons in Total, Bronze, Silver, and Gold columns in succession once or twice each to achieve descending sort order.
  16. All four columns have merges cells.
  17. Cells in the Silver, Bronze, and Total columns are merged only if the corresponding cells to their left are also merged.
  18. Click the sort icon in the Rank column.
  19. Rank column is sorted and matching cells are merged.
  20. Cells in the Gold, Silver, Bronze, and Total column are no longer merged.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example-->
align=center|

{| class="wikitable sortable plainrowheaders" style="text-align: center"

scope="col" | Rank

!scope="col" | Nation

!scope="col" style="background-color:gold; width:6em;" | Gold

!scope="col" style="background-color:silver; width:6em;" | Silver

!scope="col" style="background-color:#cc9966; width:6em;" | Bronze

!scope="col" style="width:6em;" | Total

bgcolor=ccccff

| 1

align=left| {{flagIOCteam|CHN|2008 Summer}}512128100
2align=left| {{flagIOCteam|USA|2008 Summer}}363836110
3align=left| {{flagIOCteam|RUS|2008 Summer}}23212872
4align=left| {{flagIOCteam|GBR|2008 Summer}}19131547
5align=left| {{flagIOCteam|GER|2008 Summer}}16101541
6align=left| {{flagIOCteam|AUS|2008 Summer}}14151746
7align=left| {{flagIOCteam|KOR|2008 Summer}}1310831
8align=left| {{flagIOCteam|JPN|2008 Summer}}961126
9align=left| {{flagIOCteam|ITA|2008 Summer}}8101028
10align=left| {{flagIOCteam|FRA|2008 Summer}}7161740
11align=left| {{flagIOCteam|UKR|2008 Summer}}751527
12align=left| {{flagIOCteam|NED|2008 Summer}}75416
13align=left| {{flagIOCteam|JAM|2008 Summer}}63211
14align=left| {{flagIOCteam|ESP|2008 Summer}}510318
15align=left| {{flagIOCteam|KEN|2008 Summer}}55414
16align=left| {{flagIOCteam|BLR|2008 Summer}}44917
17align=left| {{flagIOCteam|ROU|2008 Summer}}4138
18align=left| {{flagIOCteam|ETH|2008 Summer}}4127
19align=left| {{flagIOCteam|CAN|2008 Summer}}39618
20align=left| {{flagIOCteam|HUN|2008 Summer}}36211
21align=left| {{flagIOCteam|POL|2008 Summer}}36110
22align=left| {{flagIOCteam|NOR|2008 Summer}}3519
23align=left| {{flagIOCteam|BRA|2008 Summer}}34815
24align=left| {{flagIOCteam|CZE|2008 Summer}}3306
25align=left| {{flagIOCteam|SVK|2008 Summer}}3216
26align=left| {{flagIOCteam|NZL|2008 Summer}}3159
27align=left| {{flagIOCteam|GEO|2008 Summer}}3036
28align=left| {{flagIOCteam|CUB|2008 Summer}}2111124
29align=left| {{flagIOCteam|KAZ|2008 Summer}}24713
30align=left| {{flagIOCteam|DEN|2008 Summer}}2237
rowspan=2| 31align=left| {{flagIOCteam|MGL|2008 Summer}}2204
align=left| {{flagIOCteam|THA|2008 Summer}}2204
33align=left| {{flagIOCteam|PRK|2008 Summer}}2136
34align=left| {{flagIOCteam|SUI|2008 Summer}}2057
35align=left| {{flagIOCteam|ARG|2008 Summer}}2046
36align=left| {{flagIOCteam|MEX|2008 Summer}}2013
37align=left| {{flagIOCteam|TUR|2008 Summer}}1438
38align=left| {{flagIOCteam|ZIM|2008 Summer}}1304
39align=left| {{flagIOCteam|AZE|2008 Summer}}1247
40align=left| {{flagIOCteam|UZB|2008 Summer}}1236
41align=left| {{flagIOCteam|SLO|2008 Summer}}1225
rowspan=2| 42align=left| {{flagIOCteam|BUL|2008 Summer}}1135
align=left| {{flagIOCteam|INA|2008 Summer}}1135
44align=left| {{flagIOCteam|FIN|2008 Summer}}1124
45align=left| {{flagIOCteam|LAT|2008 Summer}}1113
rowspan=4| 46align=left| {{flagIOCteam|BEL|2008 Summer}}1102
align=left| {{flagIOCteam|DOM|2008 Summer}}1102
align=left| {{flagIOCteam|EST|2008 Summer}}1102
align=left| {{flagIOCteam|POR|2008 Summer}}1102
50align=left| {{flagIOCteam|IND|2008 Summer}}1023
51align=left| {{flagIOCteam|IRI|2008 Summer}}1012
rowspan=4| 52align=left| {{flagIOCteam|BRN|2008 Summer}}1001
align=left| {{flagIOCteam|CMR|2008 Summer}}1001
align=left| {{flagIOCteam|PAN|2008 Summer}}1001
align=left| {{flagIOCteam|TUN|2008 Summer}}1001
56align=left| {{flagIOCteam|SWE|2008 Summer}}0415
rowspan=2| 57align=left| {{flagIOCteam|CRO|2008 Summer}}0235
align=left| {{flagIOCteam|LTU|2008 Summer}}0235
59align=left| {{flagIOCteam|GRE|2008 Summer}}0224
60align=left| {{flagIOCteam|TRI|2008 Summer}}0202
61align=left| {{flagIOCteam|NGR|2008 Summer}}0134
rowspan=3| 62align=left| {{flagIOCteam|AUT|2008 Summer}}0123
align=left| {{flagIOCteam|IRL|2008 Summer}}0123
align=left| {{flagIOCteam|SRB|2008 Summer}}0123
rowspan=6| 65align=left| {{flagIOCteam|ALG|2008 Summer}}0112
align=left| {{flagIOCteam|BAH|2008 Summer}}0112
align=left| {{flagIOCteam|COL|2008 Summer}}0112
align=left| {{flagIOCteam|KGZ|2008 Summer}}0112
align=left| {{flagIOCteam|MAR|2008 Summer}}0112
align=left| {{flagIOCteam|TJK|2008 Summer}}0112
rowspan=8| 71align=left| {{flagIOCteam|CHI|2008 Summer}}0101
align=left| {{flagIOCteam|ECU|2008 Summer}}0101
align=left| {{flagIOCteam|ISL|2008 Summer}}0101
align=left| {{flagIOCteam|MAS|2008 Summer}}0101
align=left| {{flagIOCteam|RSA|2008 Summer}}0101
align=left| {{flagIOCteam|SIN|2008 Summer}}0101
align=left| {{flagIOCteam|SUD|2008 Summer}}0101
align=left| {{flagIOCteam|VIE|2008 Summer}}0101
79align=left| {{flagIOCteam|ARM|2008 Summer}}0066
80align=left| {{flagIOCteam|TPE|2008 Summer}}0044
rowspan=7| 81align=left| {{flagIOCteam|AFG|2008 Summer}}0011
align=left| {{flagIOCteam|EGY|2008 Summer}}0011
align=left| {{flagIOCteam|ISR|2008 Summer}}0011
align=left| {{flagIOCteam|MDA|2008 Summer}}0011
align=left| {{flagIOCteam|MRI|2008 Summer}}0011
align=left| {{flagIOCteam|TOG|2008 Summer}}0011
align=left| {{flagIOCteam|VEN|2008 Summer}}0011
class="sortbottom"

!colspan=2| Total

302303353958

|}

Another example: 2008 Olympics Medal table (with multirow header)

Note that the Rank column has a number of merged cells, but when the table is sorted, they are split, so that the table layout is not corrupted. If you sort by Rank again, previously merged cells are recombined. Also, if you sort a number of adjacent columns right to left (uch as Bronze, Silver, then Gold), cells are merged in all these columns. (That may not be desirable in all cases, but for this example, its been enabled.)

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example-->
align=center|

{| class="wikitable tsx_sortable autorowspan" style="text-align:center"

colspan=6 class="unsortable"|2008 Olympics Medal table
rowspan=2|Rankrowspan=2|Nationcolspan=3|Medalsrowspan=2 class="autorowspan"|Total
class="sortheader"

|bgcolor=gold|Gold

bgcolor=silver|Silverbgcolor=cc9966|Bronze
bgcolor=ccccff

| 1

align=left| {{flagIOCteam|CHN|2008 Summer}}512128100
2align=left| {{flagIOCteam|USA|2008 Summer}}363836110
3align=left| {{flagIOCteam|RUS|2008 Summer}}23212872
4align=left| {{flagIOCteam|GBR|2008 Summer}}19131547
5align=left| {{flagIOCteam|GER|2008 Summer}}16101541
6align=left| {{flagIOCteam|AUS|2008 Summer}}14151746
7align=left| {{flagIOCteam|KOR|2008 Summer}}1310831
8align=left| {{flagIOCteam|JPN|2008 Summer}}961126
9align=left| {{flagIOCteam|ITA|2008 Summer}}8101028
10align=left| {{flagIOCteam|FRA|2008 Summer}}7161740
11align=left| {{flagIOCteam|UKR|2008 Summer}}751527
12align=left| {{flagIOCteam|NED|2008 Summer}}75416
13align=left| {{flagIOCteam|JAM|2008 Summer}}63211
14align=left| {{flagIOCteam|ESP|2008 Summer}}510318
15align=left| {{flagIOCteam|KEN|2008 Summer}}55414
16align=left| {{flagIOCteam|BLR|2008 Summer}}44917
17align=left| {{flagIOCteam|ROU|2008 Summer}}4138
18align=left| {{flagIOCteam|ETH|2008 Summer}}4127
19align=left| {{flagIOCteam|CAN|2008 Summer}}39618
20align=left| {{flagIOCteam|HUN|2008 Summer}}36211
21align=left| {{flagIOCteam|POL|2008 Summer}}36110
22align=left| {{flagIOCteam|NOR|2008 Summer}}3519
23align=left| {{flagIOCteam|BRA|2008 Summer}}34815
24align=left| {{flagIOCteam|CZE|2008 Summer}}3306
25align=left| {{flagIOCteam|SVK|2008 Summer}}3216
26align=left| {{flagIOCteam|NZL|2008 Summer}}3159
27align=left| {{flagIOCteam|GEO|2008 Summer}}3036
28align=left| {{flagIOCteam|CUB|2008 Summer}}2111124
29align=left| {{flagIOCteam|KAZ|2008 Summer}}24713
30align=left| {{flagIOCteam|DEN|2008 Summer}}2237
class="unsortable"

!Rank!!Nation

bgcolor=gold|Goldbgcolor=silver|Silverbgcolor=cc9966|Bronze!!Total
rowspan=2| 31align=left| {{flagIOCteam|MGL|2008 Summer}}2204
align=left| {{flagIOCteam|THA|2008 Summer}}2204
33align=left| {{flagIOCteam|PRK|2008 Summer}}2136
34align=left| {{flagIOCteam|SUI|2008 Summer}}2057
35align=left| {{flagIOCteam|ARG|2008 Summer}}2046
36align=left| {{flagIOCteam|MEX|2008 Summer}}2013
37align=left| {{flagIOCteam|TUR|2008 Summer}}1438
38align=left| {{flagIOCteam|ZIM|2008 Summer}}1304
39align=left| {{flagIOCteam|AZE|2008 Summer}}1247
40align=left| {{flagIOCteam|UZB|2008 Summer}}1236
41align=left| {{flagIOCteam|SLO|2008 Summer}}1225
rowspan=2| 42align=left| {{flagIOCteam|BUL|2008 Summer}}1135
align=left| {{flagIOCteam|INA|2008 Summer}}1135
44align=left| {{flagIOCteam|FIN|2008 Summer}}1124
45align=left| {{flagIOCteam|LAT|2008 Summer}}1113
rowspan=4| 46align=left| {{flagIOCteam|BEL|2008 Summer}}1102
align=left| {{flagIOCteam|DOM|2008 Summer}}1102
align=left| {{flagIOCteam|EST|2008 Summer}}1102
align=left| {{flagIOCteam|POR|2008 Summer}}1102
50align=left| {{flagIOCteam|IND|2008 Summer}}1023
51align=left| {{flagIOCteam|IRI|2008 Summer}}1012
rowspan=4| 52align=left| {{flagIOCteam|BRN|2008 Summer}}1001
align=left| {{flagIOCteam|CMR|2008 Summer}}1001
align=left| {{flagIOCteam|PAN|2008 Summer}}1001
align=left| {{flagIOCteam|TUN|2008 Summer}}1001
56align=left| {{flagIOCteam|SWE|2008 Summer}}0415
rowspan=2| 57align=left| {{flagIOCteam|CRO|2008 Summer}}0235
align=left| {{flagIOCteam|LTU|2008 Summer}}0235
59align=left| {{flagIOCteam|GRE|2008 Summer}}0224
60align=left| {{flagIOCteam|TRI|2008 Summer}}0202
class="unsortable"

!Rank!!Nation

bgcolor=gold|Goldbgcolor=silver|Silverbgcolor=cc9966|Bronze!!Total
61align=left| {{flagIOCteam|NGR|2008 Summer}}0134
rowspan=3| 62align=left| {{flagIOCteam|AUT|2008 Summer}}0123
align=left| {{flagIOCteam|IRL|2008 Summer}}0123
align=left| {{flagIOCteam|SRB|2008 Summer}}0123
rowspan=6| 65align=left| {{flagIOCteam|ALG|2008 Summer}}0112
align=left| {{flagIOCteam|BAH|2008 Summer}}0112
align=left| {{flagIOCteam|COL|2008 Summer}}0112
align=left| {{flagIOCteam|KGZ|2008 Summer}}0112
align=left| {{flagIOCteam|MAR|2008 Summer}}0112
align=left| {{flagIOCteam|TJK|2008 Summer}}0112
rowspan=8| 71align=left| {{flagIOCteam|CHI|2008 Summer}}0101
align=left| {{flagIOCteam|ECU|2008 Summer}}0101
align=left| {{flagIOCteam|ISL|2008 Summer}}0101
align=left| {{flagIOCteam|MAS|2008 Summer}}0101
align=left| {{flagIOCteam|RSA|2008 Summer}}0101
align=left| {{flagIOCteam|SIN|2008 Summer}}0101
align=left| {{flagIOCteam|SUD|2008 Summer}}0101
align=left| {{flagIOCteam|VIE|2008 Summer}}0101
79align=left| {{flagIOCteam|ARM|2008 Summer}}0066
80align=left| {{flagIOCteam|TPE|2008 Summer}}0044
rowspan=7| 81align=left| {{flagIOCteam|AFG|2008 Summer}}0011
align=left| {{flagIOCteam|EGY|2008 Summer}}0011
align=left| {{flagIOCteam|ISR|2008 Summer}}0011
align=left| {{flagIOCteam|MDA|2008 Summer}}0011
align=left| {{flagIOCteam|MRI|2008 Summer}}0011
align=left| {{flagIOCteam|TOG|2008 Summer}}0011
align=left| {{flagIOCteam|VEN|2008 Summer}}0011
class="sortbottom"

!colspan=2| Total

302303353958

|}

What happens when rowspan and colspan conflict

Overlapping row spans and column spans are invalid in HTML and are not supported by the updated sortable script. These examples are included just to see how they render.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view examples -->
align=center|

{| class="wikitable" style="text-align:center"

AABBCC
TLrowspan='3' bgcolor=gold | Center
Center          Center
Center
TR
colspan='3' bgcolor=silver | Middle
BLBR
BL2BCBR2

class="wikitable" style="text-align:center"
AABBCC
TLrowspan='3' bgcolor=gold | Center
Center
Center
Center
TR
colspan='3' bgcolor=silver | Middle Middle Middle
BLBR
BL2BCBR2

|}

Examples from [[Help talk:Sorting]]

... plus a small sample of mainspace articles that currently have sorting problems.

= Example 1 =

From Statewide opinion polling for the Democratic Party presidential primaries, 2008#Delegate table and polling data referenced from Help talk:Sorting#Rows/headers above sortable row.

Demonstrates multi-row headers with rowspans and fixed (unsortable) footer.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example-->
align=center|

{| class="wikitable"

bgcolor=#f5f5f5

|Indicates a state or territory that has not yet held a caucus or primary or whose polling data has not been made available. All data is based on recent surveys.

---
bgcolor=#e6e6e6

|Indicates a state or territory that has held a caucus, primary, or convention.

class="wikitable tsx_sortable"
bgcolor=#cdcdcd

!rowspan=2|Date

!rowspan=2|State

!rowspan=2|Delegates

!colspan=3 class="unsortable"|Polling Data

!colspan=3 class="unsortable"|Delegates Won

bgcolor=#cdcdcd

!Hillary Clinton

!Barack Obama

!Uncommitted/other

!Hillary Clinton

!Barack Obama

!Other

---
bgcolor=#e6e6e6

|2008-01-03

|Iowa

|45

|29%

|38%

|33%

|14

|24

|7

---
bgcolor=#e6e6e6

|2008-01-08

|New Hampshire

|22

|39%

|36%

|24%

|9

|9

|4

---
bgcolor=#e6e6e6

|2008-01-15

|Michigan1

|128

|55%

| -†

|45%

|73

|55

|0

---
bgcolor=#e6e6e6

|2008-01-19

|Nevada

|25

|51%

|45%

|4%

|11

|14

|0

---
bgcolor=#e6e6e6

|2008-01-26

|South Carolina

|45

|27%

|55%

|18%

|12

|25

|8

---
bgcolor=#e6e6e6

|2008-01-29

|Florida1

|185

|50%

|33%

|17%

|105

|67

|13

---
bgcolor=#e6e6e6

|2008-02-05

|Alabama

|52

|42%

|56%

|2%

|25

|27

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Alaska

|13

|25%

|75%

|0%

|4

|9

|0

---
bgcolor=#e6e6e6

|2008-02-05

|American Samoa

|3

|57%

|43%

|0%

|2

|1

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Arizona

|56

|51%

|42%

|7%

|31

|25

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Arkansas

|35

|70%

|27%

|3%

|27

|8

|0

---
bgcolor=#e6e6e6

|2008-02-05

|California

|370

|52%

|43%

|6%

|204

|166

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Colorado

|55

|32%

|67%

|1%

|20

|35

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Connecticut

|48

|47%

|51%

|2%

|22

|26

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Delaware

|15

|43%

|53%

|4%

|6

|9

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Georgia

|87

|31%

|67%

|2%

|27

|60

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Idaho

|18

|17%

|79%

|1%

|3

|15

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Illinois

|153

|33%

|65%

|2%

|49

|104

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Kansas

|32

|26%

|74%

|0%

|9

|23

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Massachusetts

|93

|56%

|41%

|3%

|55

|38

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Minnesota

|72

|32%

|67%

|1%

|24

|48

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Missouri

|72

|48%

|49%

|3%

|36

|36

|0

---
bgcolor=#e6e6e6

|2008-02-05

|New Jersey

|107

|54%

|44%

|2%

|59

|48

|0

---
bgcolor=#e6e6e6

|2008-02-05

|New Mexico

|26

|49%

|48%

|3%

|14

|12

|0

---
bgcolor=#e6e6e6

|2008-02-05

|New York

|232

|57%

|40%

|3%

|139

|93

|0

---
bgcolor=#e6e6e6

|2008-02-05

|North Dakota

|13

|37%

|61%

|2%

|5

|8

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Oklahoma

|38

|55%

|31%

|14%

|24

|14

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Tennessee

|68

|54%

|41%

|5%

|40

|28

|0

---
bgcolor=#e6e6e6

|2008-02-05

|Utah

|23

|39%

|57%

|4%

|9

|14

|0

---
bgcolor=#e6e6e6

|2008-02-09

|Louisiana

|56

|36%

|57%

|7%

|22

|34

|0

---
bgcolor=#e6e6e6

|2008-02-09

|Nebraska

|24

|32%

|68%

|0%

|8

|16

|0

---
bgcolor=#e6e6e6

|2008-02-09

|U.S. Virgin Islands

|3

|8%

|92%

|0%

|0

|3

|0

---
bgcolor=#e6e6e6

|2008-02-09

|Washington caucus

|78

|31%

|'''68%

|1%

|26

|52

|0

---
bgcolor=#e6e6e6

|2008-02-10

|Maine

|24

|40%

|59%

|1%

|9

|15

|0

---
bgcolor=#e6e6e6

|2008-02-12

|Democrats Abroad

|7

|33%

|66%

|1%

|2.5

|4.5

|0

---
bgcolor=#e6e6e6

|2008-02-12

|District of Columbia

|15

|24%

|75%

|1%

|3

|12

|0

---
bgcolor=#e6e6e6

|2008-02-12

|Maryland

|70

|36%

|61%

|3%

|28

|42

|0

---
bgcolor=#e6e6e6

|2008-02-12

|Virginia

|83

|35%

|64%

|1%

|29

|54

|0

---
bgcolor=#e6e6e6

|2008-02-19

|Hawaii

|20

|24%

|76%

|0%

|6

|14

|0

---
bgcolor=#e6e6e6

|2008-02-19

|Wisconsin

|74

|41%

|58%

|1%

|32

|42

|0

---
bgcolor=#e6e6e6

|2008-03-04

|Ohio

|141

|54%

|44%

|2%

|75

|66

|0

---
bgcolor=#e6e6e6

|2008-03-04

|Rhode Island

|21

|58%

|40%

|2%

|13

|8

|0

---
bgcolor=#e6e6e6

|2008-03-04

|Texas primary

|126

|51%

|47%

|2%

|65

|61

|0

---
bgcolor=#e6e6e6

|2008-03-04

|Texas caucus

|67

|44%

|56%

|0%

|30

|37

|0

---
bgcolor=#e6e6e6

|2008-03-04

|Vermont

|15

|39%

|59%

|2%

|6

|9

|0

---
bgcolor=#e6e6e6

|2008-03-08

|Wyoming

|12

|38%

|61%

|1%

|5

|7

|0

---
bgcolor=#e6e6e6

|2008-03-11

|Mississippi

|33

|37%

|61%

|2%

|14

|19

|0

---
bgcolor=#e6e6e6

|2008-04-22

|Pennsylvania

|158

|55%

|45%

|0%

|85

|73

|0

---
bgcolor=#e6e6e6

|2008-05-03

|Guam

|4

|50%

|50%

|0%

|2

|2

|0

---
bgcolor=#e6e6e6

|2008-05-06

|Indiana

|72

|51%

|49%

|0%

|39

|33

|0

---
bgcolor=#e6e6e6

|2008-05-06

|North Carolina

|115

|42%

|56%

|2%

|50

|65

|0

---
bgcolor=#e6e6e6

|2008-05-13

|West Virginia

|28

|67%

|26%

|7%

|20

|8

|0

---
bgcolor=#e6e6e6

|2008-05-20

|Kentucky

|51

|65%

|30%

|5%

|37

|14

|0

---
bgcolor=#e6e6e6

|2008-05-20

|Oregon

|52

|41%

|58%

|1%

|21

|31

|0

---
bgcolor=#e6e6e6

|2008-06-01

|Puerto Rico

|55

|68%

|32%

|1%

|38

|17

|0

---
bgcolor=#e6e6e6

|2008-06-03

|Montana

|16

|41%

|56%

|3%

|7

|9

|

---
bgcolor=#e6e6e6

|2008-06-03

|South Dakota

|15

|55%

|45%

|0%

|9

|6

|

---
bgcolor=#cdcdcd class="unsortable"

|Total

|

|3,545

|

|

|

|1,744.5

|1,787.5

|32

---

† Barack Obama was not on the ballot in Michigan.

  1. On 24 August, the DNC gave Florida and Michigan full voting rights.

|}

= Example 2 =

Example from Help talk:Sorting#Can this be got working?

Demonstrates multi-row headers with rowspans and colspans.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{|class="wikitable tsx_sortable"

rowspan=2| Vehicle

!colspan=3 class="unsortable" | fuel consumption

!colspan=2 class="unsortable" | max. speed

!colspan=2 class="unsortable" | max. power

l/100 km

! mpg (imp)

! mpg (US)

! km/h

! mph

! kW

! hp

my car

|align=right|12

|align=right|24

|align=right|20

|align=right|160

|align=right|100

|align=right|300

|align=right|400

your car

|align=right|20

|align=right|14

|align=right|12

|align=right|120

|align=right|75

|align=right|150

|align=right|200

his car

|align=right|24

|align=right|12

|align=right|10

|align=right|800

|align=right|500

|align=right|900

|align=right|1,200

her car

|align=right|10

|align=right|29

|align=right|24

|align=right|80

|align=right|50

|align=right|90

|align=right|120

|}

= Example 3 =

From List of Colorado Avalanche players#Goaltenders referenced from m:Help talk:Sorting#Table with colspanned cells.

Demonstrates multi-row headers with rowspans and colspans.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable"

rowspan="2"|Name

!rowspan="2"|Nat

!rowspan="2"|Seasons

!colspan="7" class="unsortable"|Regular season

!colspan="6" class="unsortable"|Playoffs

!rowspan="2"|Notes

GPWLT/OTLSOGAASV%GPWLSOGAASV%
bgcolor="#CFECEC"

|Aebischer, David*

{{flag|Switzerland}}2000–2006174895814132.35.915136512.07.922SC 2001
Billington, Craig{{flag|Canada}}1996–1999673023722.61.91030004.00.895
bgcolor="#CCFFCC"

|Budaj, Peter

{{flag|Slovakia}}2005–200912661361652.70.90330003.35.908
Denis, Marc{{flag|Canada}}1996–2000281010432.55.916{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}
bgcolor="#CFECEC"

|Fiset, Stephane*

{{flag|Canada}}1995–199637226712.93.89810000.001.000SC 1996
Kolesnik, Vitaly{{flag|Kazakhstan}}2005–2006833003.24.888{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}
bgcolor="#CCFFCC"

|Raycroft, Andrew

{{flag|Canada}}2008–2009colspan="14"|{{sort|0|Made Avalanche debut in 2008–09}}
bgcolor="#CFECEC"

|Roy, Patrick*

{{flag|Canada}}1995–200347826214065372.27.9181338152182.18.922SC 1996, 2001
Ret #33
HHOF 2006
Salo, Tommy{{flag|Sweden}}2003–2004513102.37.91210000.001.000
Sauve, Philippe{{flag|United States}}2003–20041777303.04.896{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}
Tabaracci, Rick{{flag|Canada}}1999–2000210002.00.889{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}
Theodore, Jose{{flag|Canada}}2005–2008914239532.76.9021981103.09.904
Thibault, Jocelyn{{flag|Canada}}1995–19961034203.01.874{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}
|Weiman, Tyler{{flag|Canada}}2007–2008100000.01.000{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}{{Sort|0|—}}

|}

= Example 4 =

From Comparison of email clients#Protocol support referenced from m:Help talk:Sorting#problem with 2 row - header - table.

Demonstrates multi-row headers with rowspans and colspans. Sort icons are suppressed on some header cells. Also changed "sortbottom" to "unsortable" to stablize the footer rows.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable" style="width: auto; text-align: center; font-size: smaller; table-layout: fixed;"

rowspan="2" style="width:12em" | Client

! colspan="3" class="unsortable"| POP3

! rowspan="2" | IMAP4

! rowspan="2" | SMTP

! rowspan="2" | NNTP

! colspan="2" class="unsortable" | LDAP

! rowspan="2" | IMSP

! rowspan="2" | ACAP

! colspan="4" class="unsortable" | Feeds

! rowspan="2" | iCalendar

fetch all messages

! selected by filter

! selected by user

! v2

! v3

! RSS 0.91

! RSS 1.0

! RSS 2.0

! ATOM

@Mail

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Alpine

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Citadel

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Claws Mail

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{yes}} {{ref|Claws|†}}

| {{yes}} {{ref|Claws|†}}

| {{yes}} {{ref|Claws|†}}

| {{yes}} {{ref|Claws2|†}}

Cone

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Correo

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Courier

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Elm

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Eudora

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Eureka Email

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Gnus

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}} {{ref|GnusLDAP|†}}

| {{no}} {{ref|GnusLDAP|†}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{dunno}}

GroupWise

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

i.Scribe / InScribe

| {{yes}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}} {{ref|plugin|†}}

| {{yes}} {{ref|plugin|†}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

IBM Lotus Notes

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{yes}} {{ref|NotesRSS|†}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

Kerio WebMail

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{yes}}

KMail

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}} {{ref|KDENNTP|†}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{no}} {{ref|KDEFeeds|†}}

| {{no}} {{ref|KDEFeeds|†}}

| {{no}} {{ref|KDEFeeds|†}}

| {{no}} {{ref|KDEFeeds|†}}

| {{no}} {{ref|KDEiCal|†}}

Mail

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

Mailsmith

| {{yes}}

| {{dunno}}

| {{yes}}

| {{no}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Microsoft Entourage

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{Yes}}

| {{No}}

| {{Yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{Yes}}

Microsoft Office Outlook

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{Yes}} {{ref|OutlookFeeds|†}}

| {{Yes}} {{ref|OutlookFeeds|†}}

| {{Yes}} {{ref|OutlookFeeds|†}}

| {{Yes}} {{ref|OutlookFeeds|†}}

| {{partial|Yes}} {{ref|OutlookiCal|†}}

Mozilla Mail & Newsgroups

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Mozilla Thunderbird

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{partial}}

| {{dunno}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}} {{ref|MTB|†}}

Mulberry

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{yes}}

Mutt

| {{yes}}

| style="background: #ffffdd;" | No (possible with POP3 browser)

| style="background: #ffffdd;" | No (possible with POP3 browser)

| {{yes}}

| {{yes}}

| {{no}} (slrn looks alike)

| {{partial}} (resolve real names through NSS)

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Netscape Messenger

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Netscape Messenger 9

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

nmh / MH

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Novell Evolution

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{yes}}

Open-Xchange

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Opera Mail

| {{yes}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

Outlook Express

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Pegasus Mail

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}} {{ref|pegasusaddins|†}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{yes}} {{ref|pegasusaddins|†}}

| {{yes}} {{ref|pegasusaddins|†}}

| {{yes}} {{ref|pegasusaddins|†}}

| {{dunno}}

| {{dunno}}

Pine

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

SeaMonkey Mail & Newsgroups

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{partial}}

| {{dunno}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}} {{ref|MTB|†}}

Sylpheed

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

The Bat!

| {{yes}}

| {{yes}} {{ref|SelectiveDownload|†}}

| {{yes}} {{ref|MessageDispatcher|†}}

| {{yes}}

| {{yes}}

| {{yes}} {{ref|BAT_mygate|†}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{yes}} {{ref|BAT_rss2pop3|†}}

| {{yes}} {{ref|BAT_rss2pop3|†}}

| {{yes}} {{ref|BAT_rss2pop3|†}}

| {{yes}} {{ref|BAT_rss2pop3|†}}

| {{no}}

Turnpike

| {{Yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{Yes}}

| {{Yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

Windows Live Mail

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

Windows Mail

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

| {{dunno}}

YAM

| {{yes}}

| {{yes}}

| {{yes}}

| {{no}}

| {{yes}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

| {{no}}

Zimbra

| {{yes}}

| {{no}}

| {{no}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{dunno}}

| {{dunno}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

| {{yes}}

class="unsortable"

! rowspan="2" style="width:12em" | Client

! fetch all messages

! selected by filter

! selected by user

! rowspan="2" | IMAP4

! rowspan="2" | SMTP

! rowspan="2" | NNTP

! v2

! v3

! rowspan="2" | IMSP

! rowspan="2" | ACAP

! RSS 0.91

! RSS 1.0

! RSS 2.0

! ATOM

! rowspan="2" | iCalendar

class="unsortable"

! colspan="3" | POP3

! colspan="2" | LDAP

! colspan="4" | Feeds

  • {{note|GnusLDAP}} An Emacs module named EUDC extends Gnus and BBDB to support LDAP. [http://www.xemacs.org/Documentation/packages/html/eudc.html]
  • {{note|KDENNTP}} KDE supports Newsgroups (NNTP) by the use of KNode
  • {{note|KDEFeeds}} KDE supports feeds by the use of Akregator
  • {{note|KDEiCal}} KDE supports iCal by the use of KOrganizer
  • {{note|NotesRSS}} [http://www.openntf.org/Projects/pmt.nsf/ProjectHome?ReadForm&Query=Studio%20Blog%20Reader Studio Blog Reader] is one RSS reader application for IBM Lotus Notes. IBM Lotus Notes version 8.x introduced a native RSS reader.
  • {{note|OutlookFeeds}} Support of feeds is available in Microsoft Office Outlook 2007.
  • {{note|OutlookiCal}} Microsoft Outlook support of iCalendar varies by version.
  • {{note|SelectiveDownload}} Selective Download filters can skip/delete messages on POP3 server based on header (sender, recipient, subject, etc) information, this doesn't require to retrieve the full message body from the server.
  • {{note|MessageDispatcher}} Message Dispatcher allows the user to decide which messages should be retrieved, deleted or skipped based on the header information (sender, recipient, subject, etc) displayed to the user.
  • {{note|MTB}} iCalendar is supported with an extension.
  • {{note|Claws}} RSSyl plugin is required to read RSS and ATOM in Claws Mail.
  • {{note|Claws2}} vCalendar plugin is required to handle iCalendar in Claws Mail.
  • {{note|BAT_mygate}} The BAT! requires MyGate plugin installed for handling NNTP.
  • {{note|BAT_rss2pop3}} The BAT! requires rss2mail or rss2pop3 plugin installed for handling RSS and ATOM.
  • {{note|plugin}} i.Scribe / InScribe requires a plugin to handle LDAP.
  • {{note|pegasusaddins}} Pegasus Mail can convert Newsgroup messages and/or RSS feeds to e-mails through the use of free add-ons.

|}

= Example 5 =

From Anamorphosée#Singles

Demonstrates multi-row headers with rowspans and colspans and rowspans in the data.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

(This table has been modified to mark the second row as header cells.)

{| class="wikitable tsx_sortable"

! rowspan="2"|Year

! rowspan="2"|Title

! rowspan="2"|Date of release

! rowspan="2"|Physical sales
(France)

! colspan="2"|Certification

! colspan="3"|Peak position

----

!width="40" align="center"|FR

!width="40" align="center"|BE (WA)

!width="40" align="center"|FR

!width="40" align="center"|BE (WA)

!width="40" align="center"|SWI

----

|rowspan="2"|1995

|"XXL"

|September 19, 1995

|align="center"|{{formatnum:150,000}}

|align="center"|—

|align="center"|—

|align="center"|1

|align="center"|3

|align="center"|11

----

|"L'Instant X"

|December 12, 1995

|align="center"|{{formatnum:210,000}}

|align="center"|—

|align="center"|—

|align="center"|6

|align="center"|12

|align="center"|—

----

|rowspan="3"|1996

|"California"

|March 26, 1996

|align="center"|{{formatnum:150,000}}

|align="center"|—

|align="center"|—

|align="center"|7

|align="center"|22

|align="center"|—

----

|"Comme j'ai mal"

|June 1, 1996

|align="center"|{{formatnum:90,000}}

|align="center"|—

|align="center"|—

|align="center"|11

|align="center"|21

|align="center"|—

----

|"Rêver"

|November 16, 1996

|align="center"|{{formatnum:200,000}}

|align="center"|—

|align="center"|—

|align="center"|7

|align="center"|12

|align="center"|—

|}

= Example 6 =

From In Blue#Charts and certifications

Demonstrates rowspans in the data.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{|class="wikitable tsx_sortable"

!Chart

!Country

!Provider(s)

!Peak
position

!Certification

!Sales/shipments

Australian Albums Chart[http://www.australian-charts.com/showinterpret.asp?interpret=The+Corrs Australian Charts - The Corrs - In Blue]

|Australia

|ARIA

|align="center" |1

|4× Platinum[http://www.mfyi.com/c/corrsawards.html The Corrs Awards]

|280,000+

Austrian Albums Chart[http://austriancharts.at/search.asp?cat=a&artist=the+corrs&artist_search=starts&title=&title_search=starts Austrian Charts - The Corrs - In Blue]

|Austria

|IFPI Austria

|align="center"|1

|Platinum[http://www.ifpi.at/?section=goldplatin IFPI Austria]

|20,000+

Belgium Flemish Albums Chart[http://www.ultratop.be/nl/search.asp?interpret=The+Corrs&title=In+Blue&cat=a Belgium Charts - The Corrs - In Blue]

|rowspan="2"|Belgium

|rowspan="2"|IFPI Belgium

|align="center"|2

|rowspan="2"|Platinum[http://fanofmusic.free.fr/site-charts-BelgiumDatabasePlatinum.htm Belgium Certification]

|rowspan="2"| 20,000+

Belgium Wallonie Albums Chart

|align="center"|1

Brazilian Albums Chart

|Brazil

|APBD

|align="center"|

|Gold[http://www.planet-corr.com/music/album-inblue.php Planet-Corr - The Corrs - In Blue]

|50,000+

Canadian Albums Chart

|Canada

|CRIA

|align="center"|—

|Platinum[http://www.cria.ca/cert_db_search.php CRIA]

|100,000+

Chile Albums Chart

|Chile

|

|align="center"|

|Gold

|10,000+

Czech Republic Albums Chart

|Czech Republic

|IFPI Czech Republic

|align="center"|

|Gold

|

Europe Platinum Awards

|Europe

|IFPI

|align="center"|

|3x Platinum[http://www.ifpi.org/content/section_news/plat2000.html IFPI]

|3,000,000+

French Albums Chart[http://lescharts.com/search.asp?cat=a&search=The+Corrs French Charts - The Corrs - In Blue]

|France

|Disque En France

|align="center"|2

|Platinum[http://es.wikipedia.org/wiki/In_Blue_(%C3%A1lbum) Spanish Wikipedia ]

|500,000+

Finnish Albums Chart[http://finnishcharts.com/search.asp?cat=a&artist=the+corrs&artist_search=starts&title=&title_search=starts Finnish Charts - The Corrs - In Blue]

|Finland

|IFPI Finland

|align="center"|2

|

|

German Albums Chart[http://www.musicline.de/de/chartverfolgung_summary/artist/Corrs%2CThe/?type=longplay German Charts - The Corrs - In Blue]

|Germany

|IFPI Germany

|align="center"|1

|Platinum[http://www.musikindustrie.de/gold_platin_datenbank.html Music Industrie]

|200,000+

Indonesia Album Charts

|Indonesia

|Warner Music Indonesia

|align="center"|

|2× Platinum[http://www.sinarharapan.co.id/berita/0110/04/sh04.html Sinar Harapan]

|100,000+

Irish Albums Chart[http://members.tripod.com/thecorrs_sl/history.html Tripod]

|Ireland

|IRMA

|align="center"|1

|10× Platinum

|150,000+

Italian Albums Chart

|Italy

|FIMI

|align="center"|2

|2× Platinum

|160,000+

Japan Oricon Album Chart

|Japan

|RIAJ

|align="center"|14

|Platinum

|250,000+

Malaysia Album Chart

|Malaysia

|

|align="center"|1

|Platinum

|25,000+

Netherlands Albums Chart[http://dutchcharts.nl/search.asp?cat=a&artist=The+Corrs&artist_search=starts&title=&title_search=starts Netherlands Charts - The Corrs - In Blue]

|Netherlands

|MegaCharts

|align="center"|2

|Platinum

|70,000+

New Zealand Albums Chart[http://charts.org.nz/showinterpret.asp?interpret=The+Corrs New Zealand Charts - The Corrs - In Blue]

|New Zealand

|RIANZ

|align="center"|2

|4x Platinum[http://www.rianz.org.nz/rianz/chart.asp "New Zealand Top 50 Albums Chart"] Retrieved October 21, 2001.

|60,000+

Norwegian Albums Chart[http://norwegiancharts.com/search.asp?cat=a&artist=The+Corrs&artist_search=starts&title=&title_search=starts Norwegian Charts - The Corrs - In Blue]

|Norway

|IFPI Norway

|align="center"|1

|Gold

|20,000+

Philippines Album Charts

|Philippines

|

|align="center"|1

|Platinum

|30,000+

Portuguese Albums Chart

|Portugal

|AFP

|align="center"|1

|Gold

|10,000+

Singapore Albums Chart

|Singapore

|

|align="center"|1

|

|

Slovenia Albums Chart

|Slovenia

|

|align="center"|1

|Gold

|5,000+

South Africa Albums Chart

|South Africa

|

|align="center"|1

|Platinum

|50,000+

Spanish Albums Chart

|Spain

|PROMUSICAE

|align="center"|1

|3× Platinum

|300,000+

Swedish Albums Chart[http://swedishcharts.com/search.asp?cat=a&artist=The+Corrs&artist_search=starts&title=&title_search=starts Swedish Charts - The Corrs - In Blue]

|Sweden

|IFPI Sweden

|align="center"|1

|Gold

|20,000+

Swiss Albums Charts[http://hitparade.ch/search.asp?cat=a&artist=The+Corrs&artist_search=starts&title=&title_search=starts Swiss Charts - The Corrs - In Blue]

|Switzerland

|IFPI Switzerland

|align="center"|1

|

|

Taiwan Albums Chart

|Taiwan

|

|align="center"|1

|

|

Thailand Albums Chart

|Thailand

|

|align="center"|1

|Platinum

|40,000+

UK Albums Chart[http://www.everyhit.com/searchsec.php Every Hit - The Corrs - In Blue]

|United Kingdom

|BPI

|align="center"|1

|2× Platinum

|600,000+

U.S Billboard 200[http://allmusic.com/cg/amg.dll?p=amg&sql=11:hjfpxq8gldfe~T5 All Music]

|rowspan="2"|United States

|rowspan="2"|RIAA

|align="center"|21

|rowspan="2"| Platinum

| rowspan="2"| 1,000,000+

U.S Top Internet Albums

|align="center"|1

|}

= Example 7 =

From List of British Columbia senators#Current

Demonstrates a colspan in the header that previously caused sort icons to sort the wrong columns.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{|class="wikitable tsx_sortable"

align=left colspan=2|Name

!align=left|Party

!align=left|Division1

!align=left|Date appointed

!align=left|Appointed by2

!align=left|Mandatory retirement

{{Canadian party colour|CA|Liberal|row}}

|align=left|Larry Campbell

|align=left|Liberal

|align=left|Vancouver

|align=left|August 2, 2005

|align=left|Martin

|align=left|February 28 2023

{{Canadian party colour|CA|Liberal|row}}

|align=left|Mobina Jaffer

|align=left|Liberal

|align=left|British Columbia

|align=left|June 13, 2001

|align=left|Chrétien

|align=left|August 20, 2024

{{Canadian party colour|CA|Conservative|row}}

|align=left|Richard Neufeld

|align=left|Conservative

|align=left|British Columbia

|align=left|December 22, 2008

|align=left|Harper

|align=left|November 16, 2019

{{Canadian party colour|CA|Conservative|row}}

|align=left|Yonah Martin

|align=left|Conservative

|align=left|British Columbia

|align=left|December 22, 2008

|align=left|Harper

|align=left|April 11, 2040

{{Canadian party colour|CA|Conservative|row}}

|align=left|Nancy Greene

|align=left|Conservative

|align=left|Thompson-Okanagan-Kootenay

|align=left|December 22, 2008

|align=left|Harper

|align=left|May 11, 2018

{{Canadian party colour|CA|Conservative|row}}

|align=left|Gerry St. Germain

|align=left|Conservative

|align=left|Langley-Pemberton-Whistler

|align=left|June 23, 1993

|align=left|Mulroney

|align=left|November 6, 2012

|}

= Example 8 =

From TV Land Award#Past winners

Demonstrates rowspans in the data.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable"

Year & Host

! Award

! Recipient

! Presented By

rowspan="5" |2003

Hosted by John Ritter

|Future Classic

|American Dreams

|Paula Abdul

Groundbreaking Role

|Diahann Carroll as Julia

|Halle Berry

Innovator

|All in the Family

|Kathy Bates

Legend

|The Dick Van Dyke Show

|Matthew Perry and Ted Danson

Pop Culture

|Star Trek

|Mira Sorvino

rowspan="5" |2004

Hosted by Brad Garrett

|Future Classic

|Arrested Development

|Liza Minnelli

Groundbreaking Show

|The Mary Tyler Moore Show

|Ben Stiller and Eric McCormack

Legend

|The Andy Griffith Show

|Billy Bob Thornton

Pop Culture

|Gilligan's Island

|Rudy Boesch, Tina Wesson, Jenna Morasca and Rob Cesternino from Survivor: All Stars

Visionary

|Chico and the Man

|George Lopez

rowspan="7" |2005

Hosted by Cedric the Entertainer

|Future Classic

|Desperate Housewives

|Teri Hatcher

Icon

|The Bob Newhart Show

|Ray Romano

Legend

|The Carol Burnett Show

|Garry Shandling

Little Screen/Big Screen Star

|Sally Field

|Eva Longoria

Pioneer

|Aaron Spelling

|Peggy Lipton, Michael Cole, Jaclyn Smith, Gavin MacLeod, Bernie Kopell, Joan Collins, Jason Priestley, Luke Perry, Tori Spelling, Stephen Collins and Catherine Hicks

Pop Culture

|Soul Train

|Little Richard, Smokey Robinson, Ashanti, Mýa and Stevie Wonder

100th Birthday

|Charles Lane

|Haley Joel Osment

rowspan="8" |2006

Hosted by Megan Mullaly

|Future Classic

|Grey's Anatomy

|Jeremy Piven

40th Anniversary

|Batman

|William Shatner

Impact

|Good Times

|Quentin Tarantino

Legend

|Cheers

|Mary Tyler Moore

Little Screen/Big Screen Star

|Hilary Swank

|Robert Downey, Jr.

Pop Culture

|Dallas

|John Schneider and Tom Wopat

Pioneer

|Sid Caesar

|Billy Crystal

TV's Greatest Music Moment

|Diana Ross
Concert in Central Park (1983)

|Megan Mullaly

rowspan="6" |2007

Hosted by

Kelly Ripa

|The Medallion Award

|Taxi

|Sharon Stone

The Legacy of Laughter

|Lucille Ball

|Kirstie Alley and Carol Burnett

The Entertainers

|Hee Haw

|k.d. lang, The Judds and Willie Nelson

Future Classic

|Heroes

|Leonard Nimoy and Luke Wilson

30th Anniversary

|Roots

|Forrest Whitaker and Morgan Freeman

Pop Culture

|The Brady Bunch

|Valerie Bertinelli, Mackenzie Phillips and James Lipton

rowspan="7" |2008

Hosted by Vanessa L. Williams

|Future Classic

|The Office

|Ed Asner and William Shatner

Icon

|Lionel Richie

|Samuel L. Jackson

Innovator

|Roseanne

|Teri Hatcher

Legend

|Garry Marshall

|Dick Van Dyke, Jack Klugman, Cindy Williams, Penny Marshall and Henry Winkler

The Lucille Ball Legacy of Laughter

|Mike Myers

|Justin Timberlake

Pioneer

|Jonathan Winters

|Robin Williams

Pop Culture

|The Golden Girls

|Steve Carell

|}

= Example 9 =

From Eurovision Song Contest winners#Winners

Demonstrates rowspans in the data and the use of unsortable and autorowspan column options added by other editors.

(Note: Editors of that article has already marked up the table, even though this functionality is not yet generally available.)

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable" style="font-size: 95%"

style="background:#efefef"

! class="autorowspan"| Year

! class="autorowspan"| Country

! class="unsortable"| Song

! class="unsortable"| Performer

! class="autorowspan"| Points

! class="autorowspan"| Margin

! class="autorowspan"| Second place

! class="unsortable"| Date

! class="unsortable"| Host city

{{escyr|1956}}

| {{Esc|Switzerland}}

| "Refrain"

| Lys Assia

| N/AThe full results of the 1956 Contest were never released; only the winner is known.

| N/A

| N/A

| 24 May 1956

| Lugano

{{escyr|1957}}

| {{Esc|Netherlands}}

| "Net als toen"

| Corry Brokken

| {{nts|31}}

| {{nts|14}}

| {{Esc|France}}

| 3 March 1957

| Frankfurt am Main

{{escyr|1958}}

| {{Esc|France}}

| "Dors, mon amour"

| André Claveau

| {{nts|27}}

| {{nts|3}}

| {{Esc|Switzerland}}

| 12 March 1958

| Hilversum

{{escyr|1959}}

| {{Esc|Netherlands}}

| "Een beetje"

| Teddy Scholten

| {{nts|21}}

| {{nts|5}}

| {{Esc|United Kingdom}}

| 11 March 1959

| Cannes

{{escyr|1960}}

| {{Esc|France}}

| "Tom Pillibi"

| Jacqueline Boyer

| {{nts|32}}

| {{nts|7}}

| {{Esc|United Kingdom}}

| 25 March 1960

| London

{{escyr|1961}}

| {{Esc|Luxembourg}}

| "Nous les amoureux"

| Jean-Claude Pascal

| {{nts|31}}

| {{nts|6}}

| {{Esc|United Kingdom}}

| 18 March 1961

| Cannes

{{escyr|1962}}

| {{Esc|France}}

| "Un premier amour"

| Isabelle Aubret

| {{nts|26}}

| {{nts|13}}

| {{Esc|Monaco}}

| 18 March 1962

| Luxembourg

{{escyr|1963}}

| {{Esc|Denmark}}

| "Dansevise"

| Grethe & Jørgen Ingmann

| {{nts|42}}

| {{nts|2}}

| {{Esc|Switzerland}}

| 23 March 1963

| London

|-

| {{escyr|1964}}

| {{Esc|Italy}}

| "Non ho l'età"

| Gigliola Cinquetti

| {{nts|49}}

| {{nts|32}}

| {{Esc|United Kingdom}}

| 21 March 1964

| Copenhagen

|-

| {{escyr|1965}}

| {{Esc|Luxembourg}}

| "Poupée de cire, poupée de son"

| France Gall

| {{nts|32}}

| {{nts|6}}

| {{Esc|United Kingdom}}

| 20 March 1965

| Naples

|-

| {{escyr|1966}}

| {{Esc|Austria}}

| "Merci Chérie"

| Udo Jürgens

| {{nts|31}}

| {{nts|15}}

| {{Esc|Sweden}}

| 5 March 1966

| Luxembourg

|-

| {{escyr|1967}}

| {{Esc|United Kingdom}}

| "Puppet on a String"

| Sandie Shaw

| {{nts|47}}

| {{nts|25}}

| {{Esc|Ireland}}

| 8 April 1967

| Vienna

|-

| {{escyr|1968}}

| {{Esc|Spain|1939}}

| "La, la, la"

| Massiel

| {{nts|29}}

| {{nts|1}}

| {{Esc|United Kingdom}}

| 6 April 1968

| London

|-

|rowspan=4|{{escyr|1969}}Four countries tied for first place at the 1969 Contest. As no tie-break structure was in place, all four were declared joint winners.

| {{Esc|Spain|1939}}

| "Vivo cantando"

| Salomé

|rowspan=4|{{nts|18}}

|rowspan=4| N/A

|rowspan=4| N/A

|rowspan=4| 29 March 1969

|rowspan=4| Madrid

|-

| {{Esc|United Kingdom}}

| "Boom Bang-a-Bang"

| Lulu

|-

| {{Esc|Netherlands}}

| "De troubadour"

| Lennie Kuhr

|-

|{{Esc|France}}

| "Un jour, un enfant"

| Frida Boccara

|-

| {{escyr|1970}}

| {{Esc|Ireland}}

| "All Kinds of Everything"

| Dana

| {{nts|32}}

| {{nts|6}}

| {{Esc|United Kingdom}}

| 21 March 1970

| Amsterdam

|-

| {{escyr|1971}}

| {{Esc|Monaco}}

| "Un banc, un arbre, une rue"

| Séverine

| 128

| {{nts|12}}

| {{Esc|Spain|1939}}

| 3 April 1971

| Dublin

|-

| {{escyr|1972}}

| {{Esc|Luxembourg}}

| "Après toi"

| Vicky Leandros

| 128

| {{nts|14}}

| {{Esc|United Kingdom}}

| 25 March 1972

| Edinburgh

|-

| {{escyr|1973}}

| {{Esc|Luxembourg}}

| "Tu te reconnaîtras"

| Anne-Marie David

| 129

| {{nts|4}}

| {{Esc|Spain|1939}}

| 7 April 1973

| Luxembourg

|-

| {{escyr|1974}}

| {{Esc|Sweden}}

| "Waterloo"

| ABBA

| {{nts|24}}

| {{nts|6}}

| {{Esc|Italy}}

| 6 April 1974

| Brighton

|-

| {{escyr|1975}}

| {{Esc|Netherlands}}

| "Ding-A-Dong"

| Teach-In

| 152

| {{nts|14}}

| {{Esc|United Kingdom}}

| 22 March 1975

| Stockholm

|-

| {{escyr|1976}}

| {{Esc|United Kingdom}}

| "Save Your Kisses for Me"

| Brotherhood of Man

| 164

| {{nts|17}}

| {{Esc|France}}

| 3 April 1976

| The Hague

|-

| {{escyr|1977}}

| {{Esc|France}}

| "L'oiseau et l'enfant"

| Marie Myriam

| 136

| {{nts|15}}

| {{Esc|United Kingdom}}

| 7 May 1977

| London

|-

| {{escyr|1978}}

| {{Esc|Israel}}

| "A-Ba-Ni-Bi"

| Izhar Cohen & Alphabeta

| 157

| {{nts|32}}

| {{Esc|Belgium}}

| 22 April 1978

| Paris

|-

| {{escyr|1979}}

| {{Esc|Israel}}

| "Hallelujah"

| Milk and Honey

| 125

| {{nts|9}}

| {{Esc|Spain}}

| 31 March 1979

| Jerusalem

|-

| {{escyr|1980}}

| {{Esc|Ireland}}

| "What's Another Year?"

| Johnny Logan

| 143

| {{nts|15}}

| {{Esc|Germany}}

| 19 April 1980

| The Hague

|-

| {{escyr|1981}}

| {{Esc|United Kingdom}}

| "Making Your Mind Up"

| Bucks Fizz

| 136

| {{nts|4}}

| {{Esc|Germany}}

| 4 April 1981

| Dublin

|-

| {{escyr|1982}}

| {{Esc|Germany}}

| "Ein bißchen Frieden"

| Nicole

| 161

| {{nts|61}}

| {{Esc|Israel}}

| 24 April 1982

| Harrogate

|-

| {{escyr|1983}}

| {{Esc|Luxembourg}}

| "Si la vie est cadeau"

| Corinne Hermès

| 142

| {{nts|6}}

| {{Esc|Israel}}

| 23 April 1983

| Munich

|-

| {{escyr|1984}}

| {{Esc|Sweden}}

| "Diggi-Loo Diggi-Ley"

| Herreys

| 145

| {{nts|8}}

| {{Esc|Ireland}}

| 5 May 1984

| Luxembourg

|-

| {{escyr|1985}}

| {{Esc|Norway}}

| "La det swinge"

| Bobbysocks

| 123

| {{nts|18}}

| {{Esc|Germany}}

| 4 May 1985

| Gothenburg

|-

| {{escyr|1986}}

| {{Esc|Belgium}}

| "J'aime la vie"

| Sandra Kim

| 176

| {{nts|36}}

| {{Esc|Switzerland}}

| 3 May 1986

| Bergen

|-

| {{escyr|1987}}

| {{Esc|Ireland}}

| "Hold Me Now"

| Johnny Logan

| 172

| {{nts|31}}

| {{Esc|Germany}}

| 9 May 1987

| Brussels

|-

| {{escyr|1988}}

| {{Esc|Switzerland}}

| "Ne partez pas sans moi"

| Céline Dion

| 137

| {{nts|1}}

| {{Esc|United Kingdom}}

| 30 April 1988

| Dublin

|-

| {{escyr|1989}}

| {{Esc|Yugoslavia}}

| "Rock Me"

| Riva

| 137

| {{nts|7}}

| {{Esc|United Kingdom}}

| 6 May 1989

| Lausanne

|-

| {{escyr|1990}}

| {{Esc|Italy}}

| "Insieme: 1992"

| Toto Cutugno

| 149

| {{nts|17}}

| {{Esc|Ireland}}, {{Esc|France}}Ireland and France tied for second place in the 1990 Contest.

| 5 May 1990

| Zagreb

|-

| {{escyr|1991}}

| {{Esc|Sweden}}

| "Fångad av en stormvind"

| Carola

| 146

| {{nts|0}}Sweden won the 1991 Contest following a tie-break.

| {{Esc|France}}

| 4 May 1991

| Rome

|-

| {{escyr|1992}}

| {{Esc|Ireland}}

| "Why Me"

| Linda Martin

| 155

| {{nts|16}}

| {{Esc|United Kingdom}}

| 9 May 1992

| Malmö

|-

| {{escyr|1993}}

| {{Esc|Ireland}}

| "In Your Eyes"

| Niamh Kavanagh

| 187

| {{nts|23}}

| {{Esc|United Kingdom}}

| 15 May 1993

| Millstreet

|-

| {{escyr|1994}}

| {{Esc|Ireland}}

| "Rock 'n' Roll Kids"

| Paul Harrington & Charlie McGettigan

| 226

| {{nts|60}}

| {{Esc|Poland}}

| 30 April 1994

| Dublin

|-

| {{escyr|1995}}

| {{Esc|Norway}}

| "Nocturne"

| Secret Garden

| 148

| {{nts|29}}

| {{Esc|Spain}}

| 13 May 1995

| Dublin

|-

| {{escyr|1996}}

| {{Esc|Ireland}}

| "The Voice"

| Eimear Quinn

| 162

| {{nts|48}}

| {{Esc|Norway}}

| 18 May 1996

| Oslo

|-

| {{escyr|1997}}

| {{Esc|United Kingdom}}

| "Love Shine a Light"

| Katrina and the Waves

| 227

| {{nts|70}}

| {{Esc|Ireland}}

| 3 May 1997

| Dublin

|-

| {{escyr|1998}}

| {{Esc|Israel}}

| "Diva"

| Dana International

| 172

| {{nts|6}}

| {{Esc|United Kingdom}}

| 9 May 1998

| Birmingham

|-

| {{escyr|1999}}

| {{Esc|Sweden}}

| "Take Me to Your Heaven"

| Charlotte Nilsson

| 163

| {{nts|17}}

| {{Esc|Iceland}}

| 29 May 1999

| Jerusalem

|-

| {{escyr|2000}}

| {{Esc|Denmark}}

| "Fly on the Wings of Love"

| Olsen Brothers

| 195

| {{nts|40}}

| {{Esc|Russia}}

| 13 May 2000

| Stockholm

|-

| {{escyr|2001}}

| {{Esc|Estonia}}

| "Everybody"

| Tanel Padar, Dave Benton & 2XL

| 198

| {{nts|21}}

| {{Esc|Denmark}}

| 12 May 2001

| Copenhagen

|-

| {{escyr|2002}}

| {{Esc|Latvia}}

| "I Wanna"

| Marie N

| 176

| {{nts|12}}

| {{Esc|Malta}}

| 25 May 2002

| Tallinn

|-

| {{escyr|2003}}

| {{Esc|Turkey}}

| "Everyway That I Can"

| Sertab Erener

| 167

| {{nts|2}}

| {{Esc|Belgium}}

| 24 May 2003

| Riga

|-

| {{escyr|2004}}

| {{Esc|Ukraine}}

| "Wild Dances"

| Ruslana

| 280

| {{nts|17}}

| {{Esc|Serbia and Montenegro}}

| 15 May 2004Since 2004 the Contest has included a televised semi-final. In 2004 this was held on the Wednesday before the final, and between 2005 and 2007 it was held on the Thursday of "Eurovision Week". Since 2008 two semi-finals have been held, on Tuesday and Thursday respectively.

| Istanbul

|-

| {{escyr|2005}}

| {{Esc|Greece}}

| "My Number One"

| Helena Paparizou

| 230

| {{nts|38}}

| {{Esc|Malta}}

| 21 May 2005

| Kiev

|-

| {{escyr|2006}}

| {{Esc|Finland}}

| "Hard Rock Hallelujah"

| Lordi

| 292

| {{nts|44}}

| {{Esc|Russia}}

| 20 May 2006

| Athens

|-

| {{escyr|2007}}

| {{Esc|Serbia}}

| "Molitva"

| Marija Šerifović

| 268

| {{nts|33}}

| {{Esc|Ukraine}}

| 12 May 2007

| Helsinki

|-

| {{escyr|2008}}

| {{Esc|Russia}}

| "Believe"

| Dima Bilan

| 272

| {{nts|42}}

| {{Esc|Ukraine}}

| 24 May 2008Since 2008 the Contest has included two semi-finals, held on the Tuesday and Thursday before the final.

| Belgrade

|-

| {{escyr|2009}}

| {{Esc|Norway}}

| "Fairytale"

| Alexander Rybak

| 387

| {{nts|169}}

| {{Esc|Iceland}}

| 16 May 2009

| Moscow

|-

| {{escyr|2010}}

|

|

|

|

|

|

| 22 May 2010

| In Norway

|}

|}

Mix of colspans and rowspans

The following data is not real, it has been adapted/fabricated to test assorted complex rowspan/colspan combinations. Note that the data in the first set of columns matches the data in the second set.

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable autorowspan" style="text-align:center"

RankNOCGoldSilverBronzeTotalRankGoldSilverBronzeTotalABCXXXYYYZZZ
1align=left| {{flagIOCteam|SWE|1908 Summer}}321613rowspan=2| 216Arowspan=5|Zrowspan=10|Yrowspan=15|Z
2align=left| {{flagIOCteam|GBR|1908 Summer}}12472rowspan=4| 1 47H
3align=left| {{flagIOCteam|GER|1908 Summer}}11023 102B
4align=left| {{flagIOCteam|CAN|1920 Summer}}10014 rowspan=2 colspan=2| 0 rowspan=2| 1I
5align=left| {{flagIOCteam|FIN|1920 Summer}}10015 C
class="unsortable"

! Rank !! NOC !! Gold !! Silver !! Bronze !! Total !! Rank !! Gold !! Silver !! Bronze !! Total !! ABC

6align=left| {{flagIOCteam|RUS|1908 Summer}}100161colspan="2"| 0 1J
rowspan="2" | 7align=left| {{flagIOCteam|NOR|1920 Summer}}02137rowspan=2| 02rowspan=4| 13D
align=left| {{flagIOCteam|USA|1920 Summer}}01128 1 2K
9align=left rowspan=5| {{flagIOCteam|TCH|1920 Summer}}00119colspan="2"| 0 1E
10 321610rowspan=3| 3rowspan=2| 2 6L
rowspan="3" | 11 321111 colspan="2"| 1F
colspan="2"| 2rowspan=2| 1M
G
class="unsortable"

! Rank !! NOC !! Gold !! Silver !! Bronze !! Total !! Rank !! Gold !! Silver !! Bronze !! Total !! ABC

Multi-row header example:

class="wikitable tsx_sortable autorowspan" style="text-align:center"
rowspan=2| Rankrowspan=2| NOCcolspan=3| Medalsrowspan=2| Totalrowspan=2| Rankcolspan=3| Medalsrowspan=2| Totalrowspan=2| ABCrowspan=2| XXXrowspan=2| YYYrowspan=2| ZZZ
GoldSilverBronzeGoldSilverBronze
1align=left| {{flagIOCteam|SWE|1908 Summer}}321613rowspan=2| 216Arowspan=5|Zrowspan=10|Yrowspan=15|Z
2align=left| {{flagIOCteam|GBR|1908 Summer}}12472rowspan=4| 1 47H
3align=left| {{flagIOCteam|GER|1908 Summer}}11023 102B
4align=left| {{flagIOCteam|CAN|1920 Summer}}10014 rowspan=2 colspan=2| 0 rowspan=2| 1I
5align=left| {{flagIOCteam|FIN|1920 Summer}}10015 C
class="unsortable"

! Rank !! NOC !! Gold !! Silver !! Bronze !! Total !! Rank !! Gold !! Silver !! Bronze !! Total !! ABC

6align=left| {{flagIOCteam|RUS|1908 Summer}}100161colspan="2"| 0 1J
rowspan="2" | 7align=left| {{flagIOCteam|NOR|1920 Summer}}02137rowspan=2| 02rowspan=4| 13D
align=left| {{flagIOCteam|USA|1920 Summer}}01128 1 2K
9align=left rowspan=5| {{flagIOCteam|TCH|1920 Summer}}00119colspan="2"| 0 1E
10 321610rowspan=3| 3rowspan=2| 2 6L
rowspan="3" | 11 321111 colspan="2"| 1F
colspan="2"| 2rowspan=2| 1M
G
class="unsortable"

! Rank !! NOC !! Gold !! Silver !! Bronze !! Total !! Rank !! Gold !! Silver !! Bronze !! Total !! ABC

|}

An example from MediaWiki talk:Common.js

Another table with a header containing rowspan and colspan from [http://en.wikipedia.org/w/index.php?title=MediaWiki_talk:Common.js&oldid=405784883#Improve_sortable_tables this discussion].

class="wikitable collapsible collapsed" style="width: 100%; background: lightblue;"
align=center style="background:lightblue"| Click [Show] to view example -->
align=center|

{| class="wikitable tsx_sortable"

rowspan=2 | Title 1

! colspan=2 class="unsortable" | Title 2

Title 2.1

! Title 2.2

ABC
BCA
CAB

|}