Thread:Minomelo/@comment-4360159-20161022191326/@comment-4360159-20161022201252

Ah, yes, good ol' copypasta. It's good for adding stuff, but... all of that maintenance if you decide to ever add just one new element in an infobox that needs coloring (or if Fandom adds a new element to PI themselves). Gives me shivers. Granted, I'm sure that all of you are certain that nothing more will need to be added in the foreseeable future, considering y'all just remade it to PI.

Anywho, I had come across this coloring situation myself, hesitantly adding CSS for each individual page to Common.css (luckily there were only a few pages at the time), before eventually making a JS solution. There are many ways to go about it: with predefining a JS object with keys corresponding to pages and an array with the colors, having psuedo infobox parameters that are display:none and are merely there to convey info to the JS, a combination of Lua templating integrated with the infobox and used in conjunction with the JS, using the  param to store color info instead, a combination of a couple of these ideas, etc.

There are at least a couple working concepts out there, this lil' kludge I made for another wiki, and a more elegant solution by the Steven Universe Wiki on their Wikia.js (ctrl+f "infoboxes").

Anywho, it may not ultimately be the best for this wiki, but that CSS just scares me m8. Just wanted to throw the possibility out there. c: