Module:Col

local c = {}

--Collapse (Shorthand) Module local s = ('Module:stdfunc')

local collapsed = false local header = false local text = ' $2 ' local div2 = ' $1 ' function c.c (frame) args = frame:getParent.args collapsed, header = s.tt(args[1]):find("d") == true, s.tt(args[1]):find("h") == true return text:gsub("$1", s.tt(collapsed and "mw-collapsed")):gsub("$2", s.tt(args[2]) .. s.tt(header and div2:gsub("$1", s.tt(args[3])))) end

return c