FANDOM


-- This module is consistent with Template:Color, changes must apply to both page.
local color = {
    colorByGame = {
        fe1 = '#4682b4',
        fe2 = '#3cb371',
        fe3 = '#00008b',
        fe4 = '#a0522d',
        fe5 = '#d2691e',
        fe6 = '#b0e0de',
        fe7 = '#dc1430',
        fe8 = '#9be2bb',
        fe9 = '#87ceeb',
        fe10 = '#ffa500',
        fe11 = '#09419c',
        fe12 = '#b0c4de',
        fe13 = '#add8e6',
        fe14 = '#e8bcd7',
        fe15 = '#65d899',
        feh = '#fef87d',
        few = '#246f84',
        ts  = '#8b008b',
        ts2 = '#e6e65c',
        smt = '#9dff26',
        tms = '#9dff26'
    }
}
 
function color.getColor(frame)
    game = string.lower(frame.args[1])
        if game == '' or color.colorByGame[game] == nil then
            return '<span style="color:red">Invalid game input. Check out the documentation at [[Template:Color/doc]]</span>'
        else
            return color.colorByGame[game]
        end
end
 
return color
--[[Category:Modules]]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.