Module:ColorSel: Difference between revisions
From Elwiki
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[ | 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)) |