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
[email protected]


On Mon, Apr 28, 2014 at 3:45 PM, Bartosz Dziewoński <[email protected]>wrote:

> On Tue, 29 Apr 2014 00:09:06 +0200, Alex Monk <[email protected]> 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
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to