Module:Location map/multi and Module:Location map/multi/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Pppery
Desandbox
 
imported>Alexiscoutinho
Fixed CompactLabels forwarding
 
Line 4: Line 4:


local getArgs = require('Module:Arguments').getArgs
local getArgs = require('Module:Arguments').getArgs
local locmap = require('Module:Location map')
local locmap = require('Module:Location map/sandbox')


local function switcherSeparate(s)
local function switcherSeparate(s)
Line 228: Line 228:
if dataModule.marks then
if dataModule.marks then
for k,markArgs in ipairs(dataModule.marks) do
for k,markArgs in ipairs(dataModule.marks) do
marks[k] = tostring(locmap.mark(frame, markArgs, map))
marks[k] = tostring(locmap.mark(frame, markArgs, map, containerArgs))
end
end
end
end
Line 234: Line 234:
for _,modname in ipairs(dataModule.secondaryModules) do
for _,modname in ipairs(dataModule.secondaryModules) do
for _,markArgs in ipairs(mw.loadData(modname).marks) do
for _,markArgs in ipairs(mw.loadData(modname).marks) do
marks[#marks + 1] = tostring(locmap.mark(frame, markArgs, map))
marks[#marks + 1] = tostring(locmap.mark(frame, markArgs, map, containerArgs))
end
end
end
end