Last modified: 2014-11-17 09:48:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6559 - Sorting language pane by article size
Sorting language pane by article size
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: crosswiki
Depends on: 20646
  Show dependency treegraph
Reported: 2006-07-06 04:03 UTC by Y
Modified: 2014-11-17 09:48 UTC (History)
6 users (show)

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


Description Y 2006-07-06 04:03:54 UTC
Typically, versions of a given article in different languages vary in detail. It is no longer the case that the English version is the 
canonical, or the most detailed one.

For us multilingual readers, it would be handy to have an option to sort the language pane for a given article by some metric of 
detail, for example word count or character count (depending on the language).

Another possibility is to give a list of, say, the three longest versions, at the bottom of the language list.
Comment 1 Platonides 2006-09-25 16:13:39 UTC
That would need DB access for all the interwikied wikis, plus the page length is
not AFAIK easy to compute (even worse for the word count!)
This would be most times unused because sorting would be done for each view,
while users are not going to pay much attention to it.

Could be a nice project for JavaScript
Comment 2 Niklas Laxström 2009-02-28 17:45:34 UTC
That information is not available for JavaScript either.
Comment 3 Krinkle 2011-02-20 00:45:40 UTC
(In reply to comment #2)
> That information is not available for JavaScript either.

I'm not so sure. The pagelength is stored in the revision table,  and is available through the API with the 'info' propeties module as the 'lenght' prop [2].

A JavaScript gadget could get the languagelinks from the document, make API requests to those wikis to retrieve the page length and do something with it (ie. display it next to the link, put it in the tooltip, change the size of the text and sort by it, change the background color relatively, you name it).

The size of the current page coud be taken into account as well. eg:

* Dutch (+10)
* English (+401) // biggest article
* German (+12)
* Spanish (+0) // same size as current article
* Frysian (-1) // smallest article
* Chinese (+21)

Lots of possiblities :0


Comment 4 Niklas Laxström 2011-02-20 08:22:11 UTC
Pagelength is bytes which is useless for length comparison.
Comment 5 Platonides 2011-02-20 15:46:35 UTC
I was wrong 5 years ago. rev_len was added in r20222 (2007) but page_len in r7653 (2005).
The bytes parameter could be transformed with an approximation (eg. Chinese articles of the same length use ~3x bytes than English).

Seems something to add when the interwiki system is changed (Interlanguage extension?), where it would be easy to add the real length.
Comment 6 Nemo 2014-07-15 18:32:38 UTC
I doubt this feature will be feasible as part of if, but see the ULS compact links:

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