#Portable infobox themes

34 messages · Page 1 of 1 (latest)

shrewd elbow
#

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 ^^

vague river
#

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?

shrewd elbow
shrewd elbow
#

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

vague river
#

on my wiki where I've experimented w/ PI I decided to use TemplateStyles instead of themes

vague river
#

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

shrewd elbow
#

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

vague river
#

I understand, I've used themes back on FANDOM too

shrewd elbow
#

im assuming a switch statment on the infobox page with the templatestylee tag would work?

vague river
#

why it has to be switch?

#

although

#

hm

#

I mean, it should

#

your themes change a lot of stuff? beside colors

shrewd elbow
# vague river why it has to be switch?

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

shrewd elbow
vague river
#

I haven't tried, but it could work

shrewd elbow
#

just wondering if it would break with multiple of the same template on the same oage with different styles

vague river
#

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) ThinkerMH

#

sorry, but I gotta sleep now, hopefully other folks will lend some hints

shrewd elbow
shrewd elbow
#

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

shrewd elbow
#

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

winter junco
#

For further help links would be helpful pupCoffeeMH