https://bugzilla.wikimedia.org/show_bug.cgi?id=6559

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krinklem...@gmail.com

--- Comment #3 from Krinkle <krinklem...@gmail.com> 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:

Languages:
* 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




--
Krinkle


[1] http://www.mediawiki.org/wiki/API:Properties#info_.2F_in
[2]
http://en.wikipedia.org/w/api.php?action=query&titles=Albert+Einstein&prop=info&format=jsonfm

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to