User:Timeshifter/Sandbox246

The tables in this sandbox are not using any sticky header templates. All have been removed.

See: User:Timeshifter/Sandbox243. And: User:Timeshifter/Sandbox244. And: User:Timeshifter/Sandbox245. And: Template:Sticky header. And: Template:Sticky header/testcases.

Test (no caption)

Wikitable:

class="wikitable"
HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9 || Header 10 || Header 11 || Header 12 || Header 13

3datadatadatadatadatadatadatadatadatadatadatab
1datadatadatadatadatadatadatadatadatadatadatac
2datadatadatadatadatadatadatadatadatadatadataa

Wikitable wikitext:

class="wikitable"
HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9 || Header 10 || Header 11 || Header 12 || Header 13

Plain table:

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa

Plain table wikitext:

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

Test (no caption). Narrower tables

class="wikitable"
HeaderHeader 2Header 3
3datab
1datac
2dataa

Plain table:

HeaderHeader 2Header 3
3datab
1datac
2dataa

Test (caption)

Sticky first row.

Wikitable:

class="wikitable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa

Wikitable wikitext:

class="wikitable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

Plain table:

+ Caption
HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa

Plain table wikitext:

+ Caption
HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

Test (sortable)

Sticky first row.

Wikitable:

class="wikitable sortable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

Header 10Header 11Header 12

! Header 13

Header 14Header 15

! class="unsortable" | Header 16

class="sorttop"

| top

toptoptoptoptop

| top

toptoptoptoptop

| top

toptoptop
3datadatadatadatadatadatadatadatadatadatadatadatadatadatab
1datadatadatadatadatadatadatadatadatadatadatadatadatadatac
2datadatadatadatadatadatadatadatadatadatadatadatadatadataa
class="sortbottom"

| bottom

bottombottombottombottombottom

| bottom

bottombottombottombottombottom

| bottom

bottombottombottom

Wikitable wikitext:

class="wikitable sortable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! Header 9

Header 10Header 11Header 12

! Header 13

Header 14Header 15

! class="unsortable" | Header 16

class="sorttop"

| top

toptoptoptoptop

| top

toptoptoptoptop

| top

toptoptop

...

class="sortbottom"

| bottom

bottombottombottombottombottom

| bottom

bottombottombottombottombottom

| bottom

bottombottombottom

Plain table:

class="sortable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop
3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa
class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Plain table wikitext:

class="sortable"

|+ Caption

HeaderHeader 2Header 3Header 4

! Header 5

Header 6Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop

class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Test (sortable). Narrower tables

class="wikitable sortable"

|+ Caption

HeaderHeader 2

! class="unsortable" | Header 3

class="sorttop"

| top

toptop
3datab
1datac
2dataa
class="sortbottom"

| bottom

bottombottom

Plain table:

class="sortable"

|+ Caption

HeaderHeader 2

! class="unsortable" | Header 3

class="sorttop"

| top

toptop
3datab
1datac
2dataa
class="sortbottom"

| bottom

bottombottom

Test. 2 rows. (sortable)

Sticky {{Tag|thead|o}} element.

{{Tracked|T6740}}

{{Tracked|T355492}}

Issues:

  • Nothing sticky if JavaScript disabled, which is used by sortable, currently the only way to move headers to the {{Tag|thead|o}} element.
  • Sticky sorttop rows, which sortable moves to the {{Tag|thead|o}} element after sorting.

Wikitable:

class="wikitable sortable"

|+ Caption

rowspan="2" | Header

! colspan="8" | Header group

Header 2Header 3Header 4Header 5

! Header 6

Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop
3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa
class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Wikitable wikitext:

class="wikitable sortable"

|+ Caption

rowspan="2" | Header

! colspan="8" | Header group

Header 2Header 3Header 4Header 5

! Header 6

Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop

class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Plain table:

class="sortable"

|+ Caption

rowspan="2" | Header

! colspan="8" | Header group

Header 2Header 3Header 4Header 5

! Header 6

Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop
3datadatadatadatadatadatadatab
1datadatadatadatadatadatadatac
2datadatadatadatadatadatadataa
class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Plain table wikitext:

class="sortable"

|+ Caption

rowspan="2" | Header

! colspan="8" | Header group

Header 2Header 3Header 4Header 5

! Header 6

Header 7Header 8

! class="unsortable" | Header 9

class="sorttop"

| top

toptoptoptop

| top

toptoptop

class="sortbottom"

| bottom

bottombottombottombottom

| bottom

bottombottombottom

Test template static row numbers (no caption)

Uses {{tl|static row numbers}} with adjusted wikitable borders.

No label:

{{Static row numbers}}

class="wikitable static-row-numbers"
Header
rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4

Label:

{{Static row numbers}}

class="wikitable static-row-numbers static-row-header-text"
Header
rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4

Test template static row numbers (caption)

Uses {{tl|static row numbers}} with adjusted wikitable borders.

No label:

{{Static row numbers}}

class="wikitable static-row-numbers"

|+ Caption

Header
rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4

Label:

{{Static row numbers}}

class="wikitable static-row-numbers static-row-header-text"

|+ Caption

Header
rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4

Test template static row numbers (sortable)

Uses {{tl|static row numbers}} with adjusted wikitable borders.

No label:

{{Static row numbers}}

class="wikitable sortable static-row-numbers"

|+ Caption

Header
class="sorttop static-row-header"

| top

class="sorttop static-row-header"

| top

rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4
class="sortbottom static-row-header"

| bottom

class="sortbottom static-row-header"

| bottom

Label:

{{Static row numbers}}

class="wikitable sortable static-row-numbers static-row-header-text"

|+ Caption

Header
class="sorttop static-row-header"

| top

class="sorttop static-row-header"

| top

rank 1
rank 2
class="static-row-numbers-norank"

| norank 1

class="static-row-numbers-norank"

| norank 2

rank 3
rank 4
class="sortbottom static-row-header"

| bottom

class="sortbottom static-row-header"

| bottom

Test template static row numbers. 2 rows. (sortable)

Uses {{tl|static row numbers}} with adjusted wikitable borders.

No label:

{{Static row numbers}}

class="wikitable sortable static-row-numbers"

|+ Caption

colspan="2" | Header group
class="static-row-header"

! Header

! class="unsortable" | Header

class="sorttop static-row-header"

| top

top
class="sorttop static-row-header"

| top

top
rank 1data
rank 2data
class="static-row-numbers-norank"

| norank 1

data
class="static-row-numbers-norank"

| norank 2

data
rank 3data
rank 4data
class="sortbottom static-row-header"

| bottom

bottom
class="sortbottom static-row-header"

| bottom

bottom

Label:

{{Static row numbers}}

class="wikitable sortable static-row-numbers static-row-header-text"

|+ Caption

colspan="2" | Header group
class="static-row-header"

! Header

! class="unsortable" | Header

class="sorttop static-row-header"

| top

top
class="sorttop static-row-header"

| top

top
rank 1data
rank 2data
class="static-row-numbers-norank"

| norank 1

data
class="static-row-numbers-norank"

| norank 2

data
rank 3data
rank 4data
class="sortbottom static-row-header"

| bottom

bottom
class="sortbottom static-row-header"

| bottom

bottom

Padding

Padding for testing purposes.