Module:ColoredBits: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
['7'] = "#ffffff", | ['7'] = "#ffffff", | ||
} | } | ||
local result= luatable[bit] | |||
if result == nil then | |||
result='white' | |||
end | |||
return "<span style=\"color: " .. luatable[bit] .. ";\">" .. bit .. "</span>" | return "<span style=\"color: " .. luatable[bit] .. ";\">" .. bit .. "</span>" | ||
end) | end) |