Jump to content

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')
local getArgs -- lazily initialized


-- helper functions
-- helper functions
Line 80: Line 77:
imageleft = pargs['imageleft' .. n],
imageleft = pargs['imageleft' .. n],
listpadding = pargs['listpadding']}
listpadding = pargs['listpadding']}
targs['list' .. n] = Navbox._navbox(sargs)
targs['list' .. n] = require('Module: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 98:
tracking = tracking .. '\n<hr />\n'
tracking = tracking .. '\n<hr />\n'


return Navbox._navbox(targs) .. tracking
return require('Module:Navbox')._navbox(targs) .. tracking
end
end


function q.navbox(frame)
function q.navbox(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
local pargs = require('Module:Arguments').getArgs(frame, {wrappers = {'Template:Navbox with collapsible groups'}})
end
local pargs = getArgs(frame, {wrappers = {'Template:Navbox with collapsible groups'}})


-- 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.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.