I'm fiddling around with an experimental template but I've run into a stumbling block. I want to format this code:
{{#if: {{{civilization|}}}| background-color: {{#switch: {{{type|}}} | {{#if: {{{civilization2|}}} | rgba(192,192,192,1) | {{#switch: {{{civilization}}} | Light = rgba(232,190,42,1) | Water = rgba(0,129,234,1) | Darkness = rgba(154,39,216,1) | Fire = rgba(218,28,25,1) | Nature = rgba(0,148,29,1) }} }} || rgba(0,0,51,0.5) }};}} so that if|civilization =is blank it will default to one color but if
|civilization2 =is filled it will use a different color.
Can anyone help me with this?