On Tue, 29 Apr 2014 00:09:06 +0200, Alex Monk krenair@gmail.com wrote:
I think you want wgNamespaceIds.
That is, `mw.config.get( 'wgNamespaceIds' )` – this returns an object with keys like 'talk', for each namespace defined on the given wiki.
See also https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config .