Last modified: 2013-05-19 18:54:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50591, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48591 - Booleans not sortable in template format
Booleans not sortable in template format
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
REL1_19-branch
PC Windows 7
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-17 21:07 UTC by Stefahn
Modified: 2013-05-19 18:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Stefahn 2013-05-17 21:07:37 UTC
Table columns of datatype Boolean seem to be not sortable when used in |format=template. See an example [http://telefonanbieter-wechseln.org/w/Alle_Tarife here] (click on column header "Festnetz-Flatrate").

When the same data is output via |format=broadtable sorting this column works just fine ([http://telefonanbieter-wechseln.org/w/Sandbox example]).

MW Version: 1.19.6
SMW Version: 1.8.0.4
Comment 1 Stefahn 2013-05-19 18:26:22 UTC
In addition I found that columns of datatype Number are not sorted the right way too when using |format=template.

If you click on "Download-Geschwindigkeit" on http://telefonanbieter-wechseln.org/w/Alle_Tarife the sorting is 100, 16, 50.

With |format=broadtable this works fine (100, 50, 16) - see http://telefonanbieter-wechseln.org/w/Sandbox sorting.
Comment 2 Stefahn 2013-05-19 18:33:57 UTC
(In reply to comment #1)

Please forget about comment #1. I just found the column sorts the right way if I remove the text ("MBit/s") after the number. Still this doesn't solve my problem since I would like to show "MBit/s" after the number...
Comment 3 Stefahn 2013-05-19 18:54:47 UTC
I found that when using my own table (with |format=template) the table cells don't have a data-sort-value. It's just <td>Content</td>

When generated with |format=broadtable the table cells looks like this:
<td class="Festnetz-Flatrate" data-sort-value="1">Content</td>

How can I modify my own table so that it contains those data-sort-values?
Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links