Jump to content

Module:Navbox with collapsible groups: Difference between revisions

no edit summary
(debug)
No edit summary
Line 40: Line 40:
for k,v in pairs(args) do
for k,v in pairs(args) do
if k and type(k) == 'string' then
if k and type(k) == 'string' then
tracking = tracking .. 'debug: ' .. k .. '; '
tracking = tracking .. k .. '; '
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 48: Line 49:
if (targs['list' .. n] == nil and args['group' .. n] == nil
if (targs['list' .. n] == nil and args['group' .. n] == nil
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] = (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 81: Line 83:
image = args['image' .. n],
image = args['image' .. n],
imageleft = args['imageleft' .. n],
imageleft = args['imageleft' .. n],
listpadding = args['listpadding']}) .. ' Debug: ' .. k
listpadding = args['listpadding']})
tracking = tracking .. '<span style="color:red">' .. k .. '</span>; '
end
end
end
end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.