Thanks! That's exactly what I was looking for. I hoped it would be in mw.config but must have gotten lost in the long list of options available.

Jason Ji

On Mon, Apr 28, 2014 at 3:45 PM, Bartosz Dziewoński <> wrote:
On Tue, 29 Apr 2014 00:09:06 +0200, Alex Monk <> 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 .

Matma Rex

Mediawiki-api mailing list