I wanted to do something similar and received the following solution: https://bugzilla.wikimedia.org/show_bug.cgi?id=22552
So you could do something like this in mediawiki:common.css:
importStylesheet('mediawiki:mystyle' + wgCanonicalNamespace + '.css');
and then create mediawiki:mystyleUser.css, mediawiki:mystyleCategory.css, etc.
DanB
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides Sent: Saturday, April 10, 2010 6:00 PM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] css for namespaces
Scheid, Bernhard wrote:
Yes, I know, but I will have quite a lot of namespaces (I use them as "chapters" to organize content) and your method would become quite cumbersome. I wonder whether I could create css sheets that could be called according to the namespace.
Bernhard
How much will you be customizing each namespace? Remember that the C stands for Cascading. Typically you would make very few changes on each namespace, applying once some rules to a set of namespaces.
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l