Jump to content

Module:Navbox with collapsible groups: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 71: Line 71:
local state = (args['abbr' .. n] and args['abbr' .. n] == args['selected'])  
local state = (args['abbr' .. n] and args['abbr' .. n] == args['selected'])  
and 'uncollapsed' or args['state' .. n] or 'collapsed'
and 'uncollapsed' or args['state' .. n] or 'collapsed'
 
local sargs = {'child', navbar = 'plain', state = state,
targs['list' .. n] = Navbox._navbox(
{'child', navbar = 'plain', state = state,
basestyle = args['basestyle'],
basestyle = args['basestyle'],
title = title, titlestyle = titlestyle,
title = title, titlestyle = titlestyle,
Line 80: Line 78:
image = args['image' .. n],
image = args['image' .. n],
imageleft = args['imageleft' .. n],
imageleft = args['imageleft' .. n],
listpadding = args['listpadding']})
listpadding = args['listpadding']}
targs['list' .. n] = Navbox._navbox(sargs)
tracking = tracking .. '<hr /><center><b>k = ' .. k .. ' args ' .. n .. '</b></center><hr />\n'
tracking = tracking .. '<hr /><center><b>k = ' .. k .. ' args ' .. n .. '</b></center><hr />\n'
for ks,vs in pairs(targs) do
for ks,vs in pairs(sargs) do
tracking = tracking .. ks .. ' = ' .. vs .. '<br>\n'
tracking = tracking .. ks .. ' = ' .. vs .. '<br>\n'
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.