Editing Module:UtilitiesGive feedback
Jump to navigation
Jump to search
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 160: | Line 160: | ||
-- Validate arguments | -- Validate arguments | ||
if slot == nil | if slot == nil then return "'slot' parameter must be provided" end | ||
if color_format == nil | if color_format == nil then color_format = "hex" end | ||
if no_wrap == nil or no_wrap == 'false' | if no_wrap == nil or no_wrap == 'false' then no_wrap = false else no_wrap = true end | ||
if debug_mode == nil or debug_mode == 'false' | if debug_mode == nil or debug_mode == 'false' then debug_mode = false end | ||
local slot_data = slot_colors[slot] | local slot_data = slot_colors[slot] | ||