local p = {}
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {parentOnly = true})
local child = (args.child == 'yes')
local subbox = (args.subbox == 'yes')
local h = {subheader = {}, image = {{}}}
local body, sbody = {}, {}
local link = args.tnavbar or args.name
local result = ''
local function args2tbl(str, k, v)
local num = string.match(k, '%d*$')
num = (num == '') and 1 or tonumber(num)
h[str][num] = h[str][num] or {}
if k == str then
h[str][1][1] = v
elseif string.match(k, str .. '%d+') then