On Apr 8, 2005 2:26 PM, Hans Huijgen <lighans(a)gmail.com> wrote:
Ira replies:
> sounds like he was looking for different thing, if I understood -
> different CSS for different pages in the SAME wiki...
Exactly, that would be great. And a bit foolproof (Am
I in the right
room for that kind of demand).
Example of what would do:
Every page (database page) with the name
wiki/index.php/tp-nameofthepage will use tp.css. Also
wiki/index.php/job-nameofthepage wil use job.css, and so on.
Actually, IIRC, you can do different styling for different namespaces
without even touching the code, because there's a CSS selector of the
form ns-X, where X is the numerical ID of the namespace in the
database.
So, you could create custom namespaces (which basically amounts to the
same thing as your arbitrary prefix example above; for most purposes,
you can just think of the prefix as part of the name) and play around
with the skin based on which one a page is in.
To make things *really* diffferent between them, you might need to dig
deeper, but (assuming you are using the monobook skin; I think other
skins have equivalent pages) some things can be over-ridden just by
editting the [[MediaWiki:monobook.css]] page on your wiki.
See
http://meta.wikimedia.org/wiki/Help:Namespace and
http://meta.wikimedia.org/wiki/Help:Custom_namespaces
--
Rowan Collins BSc
[IMSoP]