Module:Navbox with collapsible groups: Difference between revisions
back to old version
(testing) |
(back to old version) |
||
Line 22: | Line 22: | ||
end | end | ||
function p._navbox( | function p._navbox(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] = | targs['list' .. n] = Navbox._navbox(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 101: | Line 101: | ||
tracking = tracking .. '\n<hr />\n' | tracking = tracking .. '\n<hr />\n' | ||
return | return Navbox._navbox(targs) .. tracking | ||
end | end | ||
Line 108: | Line 108: | ||
getArgs = require('Module:Arguments').getArgs | getArgs = require('Module:Arguments').getArgs | ||
end | end | ||
local args = getArgs(frame, {wrappers = {'Template:Navbox with collapsible groups'}}) | |||
-- Read the arguments in the order they'll be output in, to make references number in the right order. | -- Read the arguments in the order they'll be output in, to make references number in the right order. | ||
local _ | local _ | ||
Line 120: | Line 120: | ||
_ = args.below | _ = args.below | ||
return p._navbox( | return p._navbox(args) | ||
end | end | ||
return p | return p |