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
jason.y.ji@gmail.com


On Mon, Apr 28, 2014 at 3:45 PM, Bartosz Dziewoński <matma.rex@gmail.com> wrote:
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 .

--
Matma Rex


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api