Board Thread:Support Requests - Getting Technical/@comment-32545832-20180210204028

Hi. I decided to make the current infobox we use on the wiki portable (http://projectsalt.wikia.com/wiki/Template:ItemTooltip). However, I'm having some problems with the icon displayed next to the title and the color change depending on the "Rarity" parameter. Here is the portable infobox: http://projectsalt.wikia.com/wiki/Template:TestWegeee.

What I want is when the "Rarity" parameter has a certain value (Common, Uncommon, Rare...), it changes the text color of the infobox title and the rarity. I tried to use the same code used in ItemTooltip but it doesn't seem to work...

Another problem I'm having is displaying the "imageIcon" before the title. I tried to use the tag but the image doesn't show up.

Here is the css I'm using: http://projectsalt.wikia.com/wiki/MediaWiki:Common.css

And here is the sandbox where I'm making tests: http://projectsalt.wikia.com/wiki/ProjectSalt_Wiki/Sandbox

Thanks in advance for your help. 