Thread:Humphry02/@comment-44975735-20200410082050/@comment-44975735-20200411065731

This whole script is supposed to be in the Mediawiki:wikia.css file. Once that's done, you can specify an infobox type in the infobox template like it's done with these two templates I've made. The infobox type will define what styles in this script will be applied to that specific infobox.

For example if you set the infobox type to "Cast". Only styles that are set to global (non specified) and styles that are set to .type-Cast will be applied to that infobox. Rest of the script will be ignored. Same thing happens if you set the infobox type to something else but of course different styles will be applied.

This is hard to explain to someone with no CSS knowledge but I just don't want to leave you with "here's something, it does what you want it to do somehow".