Module:Collapse ID

local getArgs = require('Module:Arguments').main local p = {}

function p.main local args = getArgs return p._main(args) end

function p._main(args) local shortName = args[1] shortName = shortName:gsub("%W","") if args[2] == "head" then return string.format('mw-customtoggle-%s', shortName) else return string.format('mw-customcollapsible-%s', shortName) end end

return p