Changes

Jump to navigation Jump to search

Module:Navbox

309 bytes added, 02:26, 7 March 2013
fix for empty params
for k, v in pairs(args) do
if v == '' then -- ParserFunctions considers the empty string to be false, so to preserve the previous -- behavior of {{navbox}}, change any empty arguments to nil, so Lua will consider -- them false too. args[k] = nil else local listnum = ('' .. k):match('^list(%d+)$') if listnum then table.insert(listnums, tonumber(listnum)) end end
end
table.sort(listnums)
Anonymous user

Navigation menu