Module:Color

local p = {} local textColor = require('Module:TextColor')

-- Function to handle the color text function p.main(frame) local args = frame:getParent.args local text = args[1] or "" local color = args[2] or "" local ingame = args[3] or ""

-- Check if the color is supposed to be an in-game color if ingame == "ingame" then color = 'rgb('.. textColor.getColor(color) ..')' end

return ' ' .. text .. ' ' end

return p