[Mediawiki-api] Support of the useformat=mobile by mediawiki api

Asher Szmulewicz asher.szmulewicz at gmail.com
Wed Nov 23 15:54:51 UTC 2011

Hi All,
Will the useformat=mobile be supported by MediaWiki API where appropriate?

I am able to do the following for non mobile content
$.getJSON('http://en.wikipedia.org/w/api.php?action=parse&page='+encodeURIComponent(query)+'&prop=text&format=json&callback=?', function(json) { 
// do stuff

It would be nice if adding the parameter useformat=mobile would get the json object of the mobile page content

like http://en.wikipedia.org/wiki/Main_Page?useformat=mobile&format=json

but this link returns a file containing a json object of the page content


Asher Szmulewicz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20111123/d77f46e3/attachment.htm 

More information about the Mediawiki-api mailing list