Module:Collapsible list: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(more graceful failure for getListItem)
(consistent comment placement)
Line 10: Line 10:
end
end


-- Returns an array containing the keys of all positional arguments
-- that contain data (i.e. non-whitespace values).
local function getArgNums( args )
local function getArgNums( args )
-- Returns an array containing the keys of all positional arguments
-- that contain data (i.e. non-whitespace values).
local nums = {}
local nums = {}
for k, v in pairs( args ) do
for k, v in pairs( args ) do