This mailing list is generally about the API itself, and not really about API client libraries. You'd might get more relevant help on wikitech-l, or a list about MediaWiki's JavaScript libraries if there is one.
On Mon, Apr 28, 2014 at 5:43 PM, Jason Ji <jason.y.ji@gmail.com> wrote:
I know that there are several MediaWiki configuration values available in JavaScript through the object mediawiki, and I've made use of mw.config a fair bit as necessary. Right now, I want to access the enums for namespaces, such as NS_MAIN = 0 or NS_TALK = 1, from JavaScript. Are these exposed anywhere in the mediawiki object?You could construct such a mapping using e.g. https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces
--
Brad Jorsch (Anomie)
Software Engineer
Wikimedia Foundation
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api