Hi there!
First, thanks to @qgil for this answer. Now I feel comfortable asking a question.
I must say that I’ve been using Wikimedia’s websites for ages without ever seeing any wikicode but… I installed my first mediawiki a couple of days ago and I love it (well, most of it )
I’m looking for a way to customize/inject css on certains pages of my wiki.
I currently have certain pages that define a game like …com/wiki/Super_Game and then I created subpages like Super_Game/Abilities, Super_Game/Characters, etc. and I want a custom look for some games (and their subpages) where the theme is darker/sinister.
Right now the way I’m doing it is adding everything in Common.css like so:
.rootpage-Super_Game {
Set custom background image, font color, fallback background color, etc
}
.rootpage-Super_Game a {
set links brighter
}
.rootpage-Super_Game h1, .rootpage-Super_Game h2, .rootpage-Super_Game h3, {
...
}
but this setup is getting very complicated as I’m adding more games and thematics/parent pages.
I found the Extension:CSS but it is not working. The tags are in plaintext in the articles and are not converted.
I’m using the default skin right now that I’m going to customize in part directly in the original files as I don’t want to spend too much time right now on this. But it would be great if I had a way to inject css like {{#css:MediaWiki:{{BASEPAGENAME}}}}
(or should I create a separate namespace?)
My ultimate goal is to offer a kind of immersive experience where everything is designed and styled acocrding to a specific topic. It would also eventually be nice if I’d find a way to make an option where the user can disable background images to save bandwidth hehe.
Any thoughts and tips is appreciate.