Module:Builder

local public = {}

function public.CharterColumn(frame) local args = frame.args local retval = "" local charters = {} local colspan_mult = 1 if args["colspan_mult"] ~= nil then colspan_mult = args["colspan_mult"] end local diffs = {"easy", "normal", "advanced", "abyss"} if args["parallel"] ~= nil then diffs[5] = "parallel" end for _, diff in ipairs(diffs) do		if #charters == 0 or charters[#charters][1] ~= args[diff] then charters[#charters + 1] = {args[diff], colspan_mult} else charters[#charters][2] = charters[#charters][2] + colspan_mult end end for _, charter in ipairs(charters) do retval = retval .. "\n| colspan=" .. tostring(charter[2]) .. " style=\"text-align: center;\" |" .. charter[1] end return retval end

return public