Jump to content

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(frame, args)
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] = frame:expandTemplate{title='Navbox', args = sargs}
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 frame:expandTemplate{title='Navbox', args = targs} .. tracking
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'}})
local args = getArgs(frame, {wrappers = {'Template:Navbox with collapsible groups'}})
local args = frame:getParent().args
 
-- 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(frame, args)
return p._navbox(args)
end
end


return p
return p
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.