Module:Coordinates: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(re-sync; call coordinates parser function again; no other apparent compatibility issues with other modules)
m (allowed geohack in first parameter for Wikidata)
Line 599: Line 599:
coordinates.coord = makeInvokeFunc('_coord')
coordinates.coord = makeInvokeFunc('_coord')
function coordinates._coord(args)
function coordinates._coord(args)
if not args[1] and not args[2] and mw.wikibase.getEntityObject() then
if (not args[1] or not tonumber(args[1])) and not args[2] and mw.wikibase.getEntityObject() then
args[3] = args[1]; args[1] = nil
local entity = mw.wikibase.getEntityObject()
local entity = mw.wikibase.getEntityObject()
if entity
if entity