On Tue, Jan 29, 2013 at 12:58 PM, Matthew Walker <[email protected]> wrote:
> Morning All,
>
> Need some help / a duck [1].
>
> Fundraising pushed some patches yesterday which introduced two new
> namespaces; CNBanner and CNBanner_talk. Ideally these would only be present
> on 'infrastructure' wikis that actually host banner content (so meta, test,
> betameta) however I've been unable to figure out how to do this.
>
> The root cause of my difficulty is that it appears that I am unable to
> create new namespaces in post initialization hooks --
> e.g. $wgExtensionFunctions. Am I missing something like a function call to
> make post init creation of namespaces work; or is it just not supported
> anymore [2]?
>
> Alternatively; is there a method to 'hide' namespaces similar to how we can
> 'hide' special pages?
>
> Any other random ideas?
>
> If you're curious; we needed the new namespaces to support a 'scratch'
> space for translations to happen before we moved them into the highly
> protected MediaWiki namespace.
>
> [1] http://en.wikipedia.org/wiki/Rubber_duck_debugging
> [2] I had some code in 1.20 that created a namespace via a
> wgExtensionFunctions hook that I recall working does not
>

Is there a reason you can't just add them to $wgExtraNamespaces?
As long as the wikis are known (meta, testwiki, etc), then you can
just apply the namespaces to those wikis.

-Chad

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to