Module:Store locations list: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 37: Line 37:
     local data = p.getData(item, limit)
     local data = p.getData(item, limit)


mw.log("data", data, '\n\n\n')
mw.log("data", dump(data), '\n\n\n')


     -- Create the header of the output
     -- Create the header of the output
Line 54: Line 54:
     -- Create the rows for the output table
     -- Create the rows for the output table
     for _, shop in ipairs(data) do
     for _, shop in ipairs(data) do
mw.log("shop", dump(shop), '\n\n\n')
     for i, location in ipairs(shop.location) do
     for i, location in ipairs(shop.location) do
        restbl:tag('tr')
        restbl:tag('tr')

Navigation menu