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: [email protected] [[email protected]] im Auftrag von Patrick Flaherty [[email protected]] 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 < [email protected]> 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 > [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
