Module:Infobox mapframe: Difference between revisions

No edit summary
No edit summary
 
Line 164: Line 164:
-- Require wikidata item, or specified coords
-- Require wikidata item, or specified coords
local wikidataId = config.id or (mw and mw.wikibase.getEntityIdForCurrentPage())
local wikidataId = config.id or (mw.wikibase and mw.wikibase.getEntityIdForCurrentPage())
if not(wikidataId) and not(config.coord) then
if not(wikidataId) and not(config.coord) then
return ''
return ''