Module:Utilities: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m get_slot_color prepare to handle more than just hex format |
m fix color_format arg for get_slot_color |
||
| Line 107: | Line 107: | ||
["Tech"] = "8b56b4" --purple/pink | ["Tech"] = "8b56b4" --purple/pink | ||
} | } | ||
function p.get_slot_color(slot) | function p.get_slot_color(slot, color_format) | ||
if type(slot) == 'table' and slot.args then | if type(slot) == 'table' and slot.args then | ||
frame = slot | frame = slot | ||
slot = frame.args[1] | slot = frame.args[1] | ||
end | end | ||
if color_format == nil then | if color_format == nil then | ||
color_format = "hex" | color_format = "hex" | ||