local p = {} function p.textColor(frame) local bg = frame.args[1] local result = 'black' if bg == 'red' then result = 'white' end return result end return p