[Mediawiki-l] css for namespaces

Scheid, Bernhard Bernhard.Scheid at oeaw.ac.at
Tue Apr 13 09:45:07 UTC 2010


Sounds interesting, I'll try it out...

Bernhard

-----Ursprüngliche Nachricht-----
Von: mediawiki-l-bounces at lists.wikimedia.org [mailto:mediawiki-l-bounces at lists.wikimedia.org] Im Auftrag von Daniel Barrett
Gesendet: Montag, 12. April 2010 17:51
An: MediaWiki announcements and site admin list
Betreff: Re: [Mediawiki-l] css for namespaces

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 at lists.wikimedia.org [mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Platonides
Sent: Saturday, April 10, 2010 6:00 PM
To: mediawiki-l at 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 at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

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



More information about the MediaWiki-l mailing list