Jump to content

Module:Navbox with collapsible groups: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 22: Line 22:


function p._navbox(args)
function p._navbox(args)
local tracking = ''
-- table for args passed to navbox
-- table for args passed to navbox
local targs = {}
local targs = {}
Line 42: Line 40:
if passthrough[k] then
if passthrough[k] then
targs[k] = v
targs[k] = v
tracking = tracking .. '<span style="color:green">' .. k .. '</span>; '
elseif (k:match('^list[0-9][0-9]*$')  
elseif (k:match('^list[0-9][0-9]*$')  
or k:match('^content[0-9][0-9]*$') ) then
or k:match('^content[0-9][0-9]*$') ) then
Line 49: Line 46:
and args['sect' .. n] == nil and args['section' .. n] == nil) then
and args['sect' .. n] == nil and args['section' .. n] == nil) then
targs['list' .. n] = concatstrings(args['list' .. n] or '', args['content' .. n] or '')
targs['list' .. n] = concatstrings(args['list' .. n] or '', args['content' .. n] or '')
tracking = tracking .. '<span style="color:blue">' .. k .. '</span>; '
end
end
elseif (k:match('^group[0-9][0-9]*$')  
elseif (k:match('^group[0-9][0-9]*$')  
Line 83: Line 79:
imageleft = args['imageleft' .. n],
imageleft = args['imageleft' .. n],
listpadding = args['listpadding']})
listpadding = args['listpadding']})
tracking = tracking .. '<span style="color:red">' .. k .. '</span>; '
end
end
end
end
Line 91: Line 86:
-- child or subgroup
-- child or subgroup
if targs['border'] == nil then targs['border'] = args[1] end
if targs['border'] == nil then targs['border'] = args[1] end
local tracking = '<hr /><center><b>targs</b></center><hr />\n'
tracking = tracking .. '\n<hr />\n'
for k,v in pairs(targs) do
for k,v in pairs(targs) do
tracking = tracking .. k .. ' = ' .. v .. '<br>\n'
tracking = tracking .. k .. ' = ' .. v .. '<br>\n'
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.