Module:Navbox with collapsible groups: Difference between revisions
testing
(back to old version) |
(testing) |
||
Line 22: | Line 22: | ||
end | end | ||
function p._navbox(args) | function p._navbox(frame, args) | ||
local tracking = '' | local tracking = '' | ||
Line 80: | Line 80: | ||
imageleft = args['imageleft' .. n], | imageleft = args['imageleft' .. n], | ||
listpadding = args['listpadding']} | listpadding = args['listpadding']} | ||
targs['list' .. n] = Navbox | targs['list' .. n] = frame:expandTemplate{title='Navbox', args = sargs} | ||
tracking = tracking .. '<hr /><center><b>k = ' .. k .. ', n = ' .. n .. '</b></center><hr />\n' | tracking = tracking .. '<hr /><center><b>k = ' .. k .. ', n = ' .. n .. '</b></center><hr />\n' | ||
for ks,vs in pairs(sargs) do | for ks,vs in pairs(sargs) do | ||
Line 120: | Line 120: | ||
_ = args.below | _ = args.below | ||
return p._navbox(args) | return p._navbox(frame, args) | ||
end | end | ||
return p | return p |