Forum:How can I make the bgcolor in a template use an image?

Rather then using a solid color for the background area of a template, I wanted a mix of colors (Yellow/Blue/Gray/Red/Green).

From various google searches, I am under the assumption that there is no way for it to mix certain colors, but that it was possible to use an uploaded file for the background. Somehow, I had a few attempts, but they had no results.

My current code for it looks like... If there is only 1 "|civilization =" line used in a template, it uses a single color, this is fine, and so is the White for anything/nothing used. If multiple "|civilization"'s are used, it currently uses a Dark purple.
 * - bgcolor={{#if: {{{color|}}}
 * {{{color}}}
 * {{#switch: {{{type|}}}
 * {{#if: {{{civilization2|}}}
 * MediumPurple
 * {{#switch: {{{civilization|}}}
 * Fire = red
 * Water = lightblue
 * Light = yellow
 * Nature = green
 * Darkness = gray
 * "#FFFFFF"

http://duelmasters.wikia.com/wiki/Template:CardTable3 is the template.

Of course, I want it to use something like http://dmvault.ath.cx/images/rainbow_lwdfn.gif or http://duelmasters.wikia.com/wiki/File:Multicoloredbackground.png. Yami Michael 09:51, June 8, 2012 (UTC)