config.coord then useWikidata = config.wikidata and true or false end -- Require wikidata item, or specified coords local wikidataId = config.id or mw...
local coords = mw.wikibase.getBestStatements(qid, "P625")[1] local globeid if coords and coords.mainsnak.snaktype == "value" then globeid = coords.mainsnak...