Board Thread:Support Requests - Getting Technical/@comment-6135511-20160604143255

Hi, first time posting here. I recently created a Wiki for a card collecting game and I am now designing Infobox templates. I'd like to know how to put fixed variables on templates. There are 6 attributes of one type and, so it would be nice if I don't have to input the colours' hex code and icons for every card.

For example, this code copied and pasted from another Wiki:


 * Attribute? (ce/ow/uw) =
 * Special Card? (c/u/r/q) =

I'd like to be able to make a code like this too, where when I type one of the variables in the brackets, it automatically sets the colours and the icons for the Infobox and I just need to add the unique info such as stats.

I'd like it so that  and  is tied to. So say, I could select from "Dark" (D) or "Light" (L) and the proper colours will show up. Here are the two pieces of code where I want that to show up:

! colspan="2" style="background-color:; color:; text-align:center; font-size:120%; padding:0.5em;" |
 * - style="text-align:center;"
 * colspan="2" style="padding:0.5em;" | [[File:|250px]]

! colspan="2" style="background-color:; color:; text-align:center; font-size:100%; padding:0.5em;" |

If anyone can show me how, it would be greatly appreciated! I can't seem to find any article that points me in the right way to make this.

Thank you very much in advance! 