此模塊的文檔可以在Module:Color/doc創建
-- 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',
feh = '#fef87d',
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]]