Hello there! I've been having a few small issues while trying to set up the CSS for my wiki, and was wondering if anyone here would know whats going on. To be more specific, I've been trying to modify the colors of some infoboxes with the extenstions theme and theme-source attributes, but it looks like the themes don't apply. Using inspect element, they all seem to keep the pi-theme-default css tag. I'll link to the page and my own CSS below. Thanks all for your time ^^
#Portable infobox themes
34 messages · Page 1 of 1 (latest)
I've encountered similar issue, it seems like some portable infobox elements require !important for actual change
!important is usually adviced to use only as a last resort
also seems like you made a duplicate thread, could you close it?
werid thing is that the classes dont even apply, so css or not wont change
oh my bad
discord gave me an error on the first one
io assumed it failed
Ill post the links soon as I can get the auth to work
on my wiki where I've experimented w/ PI I decided to use TemplateStyles instead of themes
TemplateStyles?
it's an extension which lets you to apply CSS to one page instead of constantly loading it for entire site from Common.css
as the name implies, it's usually goes for templates
I've made several infoboxes, like character, episode, manga, etc
and each of them have their own /styles.css subpage, where all the stuff is coded
hm, the main reason i was trying with css was the theme-source attribute to change the color scheme for different creature types, my current system is a switch statment with copies of the whole infobox and just different accent attributes, ill look into that thou
I understand, I've used themes back on FANDOM too
im assuming a switch statment on the infobox page with the templatestylee tag would work?
why it has to be switch?
although
hm
I mean, it should
your themes change a lot of stuff? beside colors
my intention is to have a field in the template to select the type of boss the template is being used for, ie a making a page for a boss of the Major Adversary class, do {{Mobs|type=MA..}} and the box is red and black
nah, tbh im still getting the ropes of css and advanced Mediawiki
I haven't tried, but it could work
just wondering if it would break with multiple of the same template on the same oage with different styles
like you want the switch w/ the tag to be at the top of the code
then <infobox> follows?
on my other wiki I use classic infoboxes, sometimes two on one page, but they are separate templates w/ separate styling (and thus different classes) 
sorry, but I gotta sleep now, hopefully other folks will lend some hints
no worries, ill test out the extension and see of it works, thankd for the help
Hm, interesting, the Css seems to work on my user common css page(mostly), but the template styles tag doesn’t seem to be working
I tested the exact same infobox code ‘theme=“MA”’ on FANDOM to see if this is just a Miraheze issue, the theme applied as expected there
For further help links would be helpful 
Aye aye