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

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Izno
and the other two places
 
imported>Hooman Mallahzadeh
Restored revision 1323749559 by Hooman Mallahzadeh (talk)
 
Line 515: Line 515:
local caption_list = {}
local caption_list = {}
if not args then
if not args then
args = getArgs(frame, {wrappers = 'Template:Location map', valueFunc = p.valueFunc})
args = getArgs(frame, {wrappers = 'Template:Location map/sandbox1', valueFunc = p.valueFunc})
end
end
if args.useWikidata == nil then
if args.useWikidata == nil then
Line 526: Line 526:
map[#map + 1] = p.getMapParams(mw.ustring.gsub(mapname, '^%s*(.-)%s*$', '%1'), frame)
map[#map + 1] = p.getMapParams(mw.ustring.gsub(mapname, '^%s*(.-)%s*$', '%1'), frame)
end
end
local Mapframe1 = require ('Module:Mapframe')
map[#map + 1] = Mapframe1.main(frame, args)
if args['caption'] then
if args['caption'] then
if args['caption'] == "" then
if args['caption'] == "" then