Hello Plaonides,
trying the first method via CSS I use the following hack,
/* Sitenotice */
div#SiteNotice { display:none; }
.ns-0 div#SiteNotice { display:block; }
But I can't see why this doesn't work.
Nonetheless I'd be interested what you mean by comparing the namespace
with a parser function. Is there any documentation on this topic?
-robert
2010/9/22 Platonides <Platonides(a)gmail.com>om>:
orschiro(a)googlemail.com wrote:
Hello guys,
I configured a sitenotice message [¹] but it now shows up on every
page. I'd like to limit only for article pages but no category pages,
system messages, etc.
Is something like that possible? Maybe with a css hack?
[¹]
http://www.mediawiki.org/wiki/Manual:Interface/Sitenotice#CentralNotice
-robert
Yes, you can use CSS for that (hint: article page have ns-0 class).
Another option is to use a parserfunction for comparing the current
namespace with the one you want it to appear.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l