Jump to content

Module:Navbox: Difference between revisions

fix errors
m>Toohool
(fix string building)
m>Toohool
(fix errors)
Line 6: Line 6:


local gutterRow = '<tr style="height:2px;"><td></td></tr>'
local gutterRow = '<tr style="height:2px;"><td></td></tr>'
local listnums = {}
local ret = {}


local ret = {}
function add(...)
function add(...)
     local args = {...}
     local args = {...}
Line 151: Line 152:


function p._navbox(args)
function p._navbox(args)
    local listnums = {}
     for k, v in pairs(args) do
     for k, v in pairs(args) do
         local listnum = k:match('^list(%d+)$')
         local listnum = ('' .. k):match('^list(%d+)$')
         if listnum then table.insert(listnums, tonumber(listnum)) end
         if listnum then table.insert(listnums, tonumber(listnum)) end
     end
     end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.