Jump to content

Module:Navbox with collapsible groups: Difference between revisions

testing
(Undid revision 865564010 by Jc86035 (talk))
(testing)
Line 1: Line 1:
-- This module implements {{Navbox with collapsible groups}}
-- This module implements {{Navbox with collapsible groups}}
local p = {}
local p = {}
local Navbox = require('Module:Navbox')
local getArgs -- lazily initialized


-- helper functions
-- helper functions
Line 21: Line 18:
end
end


function p._navbox(args)
function p._box(args)
local tracking = ''
local tracking = ''
local Navbox = require('Module:Navbox')
-- table for args passed to navbox
-- table for args passed to navbox
Line 103: Line 102:
end
end


function p.navbox(frame)
function p.box(frame)
if not getArgs then
args = require('Module:Arguments').getArgs(frame)
getArgs = require('Module:Arguments').getArgs
end
args = 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.
Line 119: Line 115:
_ = args.below
_ = args.below


return p._navbox(args)
return p._box(args)
end
end


return p
return p
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.