Module:ColorSel: Difference between revisions

m
fix basic color mapping
mNo edit summary
m (fix basic color mapping)
 
Line 49: Line 49:


     if match_map.type == "raw" then
     if match_map.type == "raw" then
         return ("#" .. (match_map.map[input] or match_map.map.default))
         return ("#" .. (match_map.map[category] or match_map.map.default))
     elseif match_map.type == "group" then
     elseif match_map.type == "group" then
         return ("#" .. recursiveFindKey(match_map.map, input))
         return ("#" .. recursiveFindKey(match_map.map, input))