"ഘടകം:Location map/multi" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
Jackmcbarn (സംവാദം | സംഭാവനകൾ) support primary modules without marks |
Jackmcbarn (സംവാദം | സംഭാവനകൾ) add switcher support |
||
വരി 69:
end
if not map then
map = {}
map = locmap.getMapParams(args[1], frame)▼
for mapname in string.gmatch(args[1], '[^#]+') do
end
if #map ~= 1 then
local outputs = {}
args.autoSwitcherLabel = true
for k,v in ipairs(map) do
outputs[k] = p.many(frame, args, v)
end
return '<div class="switcher-container">' .. table.concat(outputs) .. '</div>'
end
map = map[1]
end
local marks = {}
Line 123 ⟶ 135:
local dataModule = mw.loadData(frame.args[1])
if not map then
map = {}
map = locmap.getMapParams(dataModule.containerArgs[1], frame)▼
for mapname in string.gmatch(dataModule.containerArgs[1], '[^#]+') do
end
if #map ~= 1 then
local outputs = {}
args.autoSwitcherLabel = true
for k,v in ipairs(map) do
outputs[k] = p.load(frame, args, v)
end
return '<div class="switcher-container">' .. table.concat(outputs) .. '</div>'
end
map = map[1]
end
local marks = {}
|