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 ________________________________________ Von: mediawiki-l-bounces@lists.wikimedia.org [mediawiki-l-bounces@lists.wikimedia.org] im Auftrag von Patrick Flaherty [patrick.flaherty@taighde.com] Gesendet: Samstag, 10. April 2010 19:36 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] css for namespaces
I don't believe there's a specific namespace css but you can add specific css for a namespace in your skin's css file. Each namespace has a specific class, i.e ns-0, ns-14. You can find them by looking at the source code.
On Sat, Apr 10, 2010 at 12:43 PM, Scheid, Bernhard < Bernhard.Scheid@oeaw.ac.at> wrote:
Hi,
I would like to use separate style sheets for different namespaces. I found this in MonoBook.php:
<?php if($this->data['pagecss']) { ?><style type="text/css"><?php
$this->html('pagecss') ?></style> (line 96 in 1.15)
could there be a similar function? Something like: "If there is a Mediawiki page called {{NAMESPACE}}.css, use it"...?
thanks
Bernhard _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l