I am trying to create a color provider for my wiki that takes in a set of paremeters and returns a color. I then want to use that color in the style attribute, but so far I've had limited success.
Here is a sample of my template:
{{#switch: {{{Var1|}}}
|#default = white
|Test = #...
}}
I can confirm that the template spits out the correct text, but when I try to apply that into a css, I get varying success.
<div style="background-color: {{ColorProvider}}">Test</div>
the background changes. However, I try to apply to a table:
{| style="background-color:{{ColorProvider}}" ... |}
The template literally prints "white"