local p = {}
function p.toc( frame )
local args = frame:getParent().args
local root = mw.html.create()
root = root:tag('div')
root:addClass('template-toc')
if args.title then
root:tag('div')
:addClass('toctitle')
:tag('big')
:css('font-weight', 'bold')
:wikitext(args.title)
end
local rowNums = {}
for k,v in pairs(args) do
local num = k:match('^heading(%d+)$') or k:match('^content(%d+)$')
if num then table.insert(rowNums, tonumber(num))
end
end
return tostring(root)
end
return p