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

Bernhard

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

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

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

Reply via email to