Module:Dashboard entry

local p = {} local plain = require("Module:Plain text")._main function p.main(frame) local page = frame.args[1] local pipe = frame.args[2] local content = mw.title.new(page):getContent -- Unfortunately, the bot that this is replacing uses "prop=sections", which isn't accessible to Lua. -- Therefore, we have to parse the page manuallly local sections = content:gmatch("\n== *([^=]+) *==") local count = 0 local sect -- copy array to table so it can be iterated in reverse local secttable = {} for sect in sections do		secttable[#secttable + 1] = sect end local plural, declutter if #secttable &#x3c; 3 then declutter = "|class=" if #secttable == 1 then plural = "" else plural = "s" end else plural = "s" declutter = "" end local output = string.format("\n&#x3c;div style=\"padding-left:3em;\"&#x3e;"		end	end	if count &#x3c; 3 then		output = output .. "&#x3c;/div&#x3e;}} "	else		output = output .. "&#x3c;/div&#x3e;\n"	end	return frame:preprocess(output) end return p