Thanks to Sumit's latest change you can now access focus area and
image directly from the API in pageprops [1].

The image comes from editor, if not present Wikidata and soon (if
someone merges it) from PageImages [2].

Currently this is only deployed on WIkivoyage but by deploying the
extension on Wikipedia and disabling article rendering you could use
the API for the app.

Currently updating the origin x and origin y values with the API is
not easy and as nice as it could be but it is potentially doable by
editing the entire page and using some clever regexps.

Something to think about!

[1] 
http://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=query&prop=pageprops&format=json&titles=WikidataPageBanner_example_1
[2] https://gerrit.wikimedia.org/r/#/c/239010/

_______________________________________________
Mobile-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mobile-l

Reply via email to