Module:Coordinates: Difference between revisions

Undo revision 21316 by WikiDwarf (talk)
(Undo revision 21317 by WikiDwarf (talk))
Tag: Undo
(Undo revision 21316 by WikiDwarf (talk))
Tag: Undo
Line 609: Line 609:
if not tonumber(args[1]) and not args[2] then
if not tonumber(args[1]) and not args[2] then
args[3] = args[1]; args[1] = nil
args[3] = args[1]; args[1] = nil
local entity = mw.wikibase.getEntityObject(args.qid)
if entity
if entity
and entity.claims
and entity.claims