Module:Store locations list: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
     return p._main(frame:getParent().args)
     return p._main(frame:getParent().args)
end
end
function dump(o)
if type(o) == 'table' then
  local s = '{ '
  for k,v in pairs(o) do
  if type(k) ~= 'number' then k = '"'..k..'"' end
  s = s .. '['..k..'] = ' .. dump(v) .. ','
  end
  return s .. '} '
else
  return tostring(o)
end
end


function p._main(args)
function p._main(args)
Line 125: Line 138:
         end
         end


mw.log(item)
mw.log(dump(item))


         -- Loop over smw return items
         -- Loop over smw return items

Navigation menu