Module:Infobox live show: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 170: Line 170:
if lat == '' and lng == '' then
if lat == '' and lng == '' then
local coords = mw.text.split( info['coords'] or frame:getParent().args.coords or '', ',' )
local coords = mw.text.split( info['coords'] or frame:getParent().args.coords or '', ',' )
lat = mw.text.trim(coords[1])
lat = mw.text.trim(coords[1] or '')
lng = mw.text.trim(coords[2])
lng = mw.text.trim(coords[2] or '')
end
end
local location = frame:getParent().args.location or info['location'] or ''
local location = frame:getParent().args.location or info['location'] or ''