Module:Switch

local p = {}

function p.text(frame) local args = frame.args local toMatch = args[1] local args = table.remove(args, 1) for condition = 1, #args do       args[condition] = tostring(args[condition]) if toMatch == args[condition] then return args[condition] end end return "Error: Conditional contains no matches!" end

return p