Module:PortalRows

local p = {} p.main = function(f) local args = f:getParent.args local output = "|-\n|" for i, v in ipairs(args) do		if i == 1 then output = output .. ""..v.."\n" else if v == nil or v == "" or v == "0" then output = output .. "|\n" elseif v == "1" then output = output .. "|\n" elseif v == "2" then output = output .. "|\n" elseif v == "-1" then output = output .. "|\n" else output = output .. "|\n" end end end return output end

return p