Topic on Project:Support desk

problems by sortable tables

5
JanTappenbeck (talkcontribs)

hi!

we have many tables like:

Nummer Status Kurztext Bearbeiter Anmerkungen
111
333

but there will not show any sort-arrows in the header - in my option they will show in the past. but is a long time and i am older .-) in firebug no errors will listed.

did anyone have an idea ?

regards Jan

Ciencia Al Poder (talkcontribs)

The header of the table should be an actual header, that is, use ! instead of | as the cell markup

TheDJ (talkcontribs)

Yes before 1.18 or something this used to be a bit different. It would always just use the first row, but it was made slightly stricter in a later version of mediawiki. See also: Help:Sorting, and English Wikipedia on sortable

JanTappenbeck (talkcontribs)

we are in use 1.23!

here the current header:

{| class="wikitable sortable"
|Nummer
|Status
|Kurztext
|Bearbeiter
|Anmerkungen

|- <!-- Zeilentrennung -->
|
|
|
| 
|
|} <!-- Tabellenende -->

regards Jan

Ciencia Al Poder (talkcontribs)

As we already said, you need to change it to:

{| class="wikitable sortable"
!Nummer
!Status
!Kurztext
!Bearbeiter
!Anmerkungen

|- <!-- Zeilentrennung -->
|
|
|
| 
|
|} <!-- Tabellenende -->

Reply to "problems by sortable tables"