Last modified: 2012-03-25 07:55:19 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 T34807, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32807 - Sort and #expr doesn't work on comma-separated decimals
Sort and #expr doesn't work on comma-separated decimals
Status: RESOLVED DUPLICATE of bug 34193
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-05 15:25 UTC by bennylin
Modified: 2012-03-25 07:55 UTC (History)
4 users (show)

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


Attachments

Description bennylin 2011-12-05 15:25:18 UTC
Indonesian language is one of the language that uses dot to separate thousands and commas to separate decimals (opposite to US), and it didn't reflect well on sorting and #expr parserfunction. I've only tested it on 1.16, but I think I saw the same bug on 1.17. Not sure about 1.18 have been resolved or not. Will post examples as soon as I can find one.
Comment 1 Niklas Laxström 2011-12-06 15:51:21 UTC
Garbage in, garbage out. Please don't feed formatted numbers to #expr.
Comment 2 bennylin 2011-12-07 05:10:43 UTC
Please take a look at Indonesian Wiktionary's Main Page for example

http://id.wiktionary.org/w/index.php?title=Halaman_Utama&action=edit

In order to get the total number of Indonesian words & phrases, I have to add the two categories. To make it work, I have to multiply the {{PAGESINCATEGORY}} by 1000

[[:Kategori:Kata bahasa Indonesia|Indonesia]] ({{#expr:{{PAGESINCATEGORY:Kata bahasa Indonesia}}*1000+{{PAGESINCATEGORY:Frasa bahasa Indonesia}}}}) -
Comment 3 bennylin 2011-12-07 05:27:24 UTC
For the sorting error, it seems like it has been fixed on 1.18 (?)

Example here:

http://id.wiktionary.org/wiki/Wiktionary:Statistik
Comment 4 Bawolff (Brian Wolff) 2012-03-24 23:09:20 UTC
Use {{PAGESINCAT:Frasa bahasa Indonesia|R}} instead.

*** This bug has been marked as a duplicate of bug 34193 ***
Comment 5 bennylin 2012-03-25 07:55:19 UTC
Aye. Thanks for the solution

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


Navigation
Links