Board Thread:Support Requests - Getting Technical/@comment-26510601-20150824001413/@comment-4731443-20150824190827

Excellent, then TableWiz's solution should work just fine. I can see a few ways one could set this up, so here's just one possibility.

First, use TableWiz's code in your template to display the basic map. It has one background image with the whole map in grey, then overlaid on top, add one image for each distinct region, also in grey (or any default color, really). Now, those region-specific images will have to be prepared by you and uploaded to the wiki. For each region, you'll want only that region to be visible and everything around it to be transparent. (If you don't know how to do that, you may want to consult the documentation of your image-editing software of choice). Suppose you upload them all as region-1-darkblue.png, region-1-lightblue.png, etc. so they can be referenced easily. Since each file is transparend except for its intended region, stacking them all like that should give you a complete map where each region can be changed independently and does not cover the rest.

Now, you want to be able to tell your template to display a different image based on parameters. You will likely want parameters such as, , etc., that will take a color name as their value. So when you call your template, it could look something like this:

Since your basic map layout is ready and all the images needed for its variations are uploaded, this syntax in your template would take care of displaying the right image for each region/layer instead of the grey we set up earlier: By using these variables, each file will be selected based on your specified parameters, and if those are left blank, the default (grey) version will show instead.

Hope that wall of text wasn't too hard to follow. I assumed you have some familiarity with templates and image editing, so don't hesitate to ask for more detailed explanations. And as I said, I can think of at least one other way to achieve similar results, which would use more CSS and fewer image uploads, but I decided to just run with TableWiz's example. Considering we can't use the img element on Wikia, it might be the easier implementation of the two.