Module:RightsList

local p = {}

function p.IfGroup(frame) --Prepare vars ifgroup = frame.args[1] text = frame.args[2]

--Check array if frame.args[3] == nil then return "Invalid usage (Provided not enough args)" end

--Check groups if ifgroup == "all" then return text end found = false for k,group in pairs(frame.args) do       if k > 2 then if group == ifgroup then found = true break end end end

if found then return text else return "" end end

return p