[Mediawiki-l] css for namespaces

Patrick Flaherty patrick.flaherty at taighde.com
Sat Apr 10 17:36:11 UTC 2010


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 at 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 at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list