Maybe I'm missing something, but is there a way to check the $wgContentNamespaces against (or should it) $this->data['isarticle'] to include or not include something in output in a skin.

I have about 6 namespaces considered content with $wgContentNamespaces in the array. So using

<?php if ( $this->data['isarticle'] ) { ?> ....

I thought it would only insert in the pages defined in content namespaces and not in pages of namespaces not defined as content. So for example, I could insert in all pages in Main namespace, Foo, Foo1, etc but User, Template or Category would return false and not insert.

Thanks
Tom
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to