Module:Infobox mapframe: Difference between revisions
Intcreator (talk | contribs) No edit summary |
Intcreator (talk | contribs) 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 '' |