Module:Navbox with collapsible groups: Difference between revisions
testing
(testing) |
(testing) |
||
Line 2: | Line 2: | ||
require('Module:No globals') | require('Module:No globals') | ||
local q = {} | local q = {} | ||
local Navbox = require('Module:Navbox/sandbox') | |||
-- helper functions | -- helper functions | ||
Line 77: | Line 78: | ||
imageleft = pargs['imageleft' .. n], | imageleft = pargs['imageleft' .. n], | ||
listpadding = pargs['listpadding']} | listpadding = pargs['listpadding']} | ||
targs['list' .. n] = | targs['list' .. n] = 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 98: | Line 99: | ||
tracking = tracking .. '\n<hr />\n' | tracking = tracking .. '\n<hr />\n' | ||
return | return Navbox(targs) .. tracking | ||
end | end | ||