Hi, my next question - and I am not sure if this is the right list to ask these questions, so if I am wrong, please tell me.
On the Italian wiktionary there are different namespaces:
Wikizionario: Aiuto: etc.
Now "Aiuto:" always has a red background - so there must be a place where I can set up this layout.
The two questions I have:
1) where to edit these layouts? 2) is there a problem if I would like to create a separate namespace (for example "Projects:") and where to create the pre-defined layout for this part.
I had a look at this: http://meta.wikimedia.org/wiki/Help:Custom_Namespaces But this does not help me with what I search for.
Thank you!!!
Sorry, I know these are basic questions.
Ciao, Sabine.
Now "Aiuto:" always has a red background - so there must be a place where I can set up this layout.
The two questions I have:
- where to edit these layouts?
You can modify the appearance of Monobook skin for a wiki at [[MediaWiki:Monobook.css]], see e.g. http://it.wiktionary.org/wiki/MediaWiki:Monobook.css?action=edit -- each namespace has its own CSS class, so that the background can be namespace-specific (see ns-0, ns-1 etc. there).
- is there a problem if I would like to create a separate namespace
(for example "Projects:") and where to create the pre-defined layout for this part.
I had a look at this: http://meta.wikimedia.org/wiki/Help:Custom_Namespaces But this does not help me with what I search for.
AFAIK this is useful only for separate installations of MediaWiki, e.g. at your own server. On Wikimedia wikis, you are not allowed to define custom namespaces. IMHO the only possibility to modify the appearance is to use inline "style" attributes in the contents of the articles.
-- [[ cs:Mormegil | Petr Kadlec ]]
On Fri, 04 Feb 2005 14:30:04 +0100, Sabine Cretella sabine_cretella@yahoo.it wrote:
Hi, my next question - and I am not sure if this is the right list to ask these questions, so if I am wrong, please tell me.
MediaWiki-l would probably be a slightly better choice, as that is aimed more at general users, where as wikitech-l is more for core developers and Wikimedia Foundation admins.
Now "Aiuto:" always has a red background - so there must be a place where I can set up this layout.
[...]
- where to edit these layouts?
I think this is done through CSS - specifically, the site-wide customisation in [[MediaWiki:Monobook.css]]. So, http://it.wiktionary.org/wiki/MediaWiki:Monobook.css contains this section:
/* Colore di fondo delle pagine Aiuto */ .ns-12 * #content { color : black; } .ns-12 * #content { background : #FFEEEE; } .ns-12 * #p-cactions li { background : #FFEEEE; } .ns-12 * #p-cactions li a { background : #FFEEEE; }
Where the 12 is the internal number of the namespace in question.
- is there a problem if I would like to create a separate namespace
(for example "Projects:") and where to create the pre-defined layout for this part.
I imagine (although I wouldn't guarantee) that if you use the "custom namespaces" feature, the outputted content will include attributes like the others, so that if you define namespace #100 as "Projects:", pages in that namespace will obey CSS rules beginning ".ns-100 *". So if you put them in your MediaWiki:Monobook.css page, they will apply to anyone using the monobook skin and looking at those pages.
HTH
wikitech-l@lists.wikimedia.org