8,617
edits
No edit summary Tag: Reverted |
Tag: Undo |
||
Line 113: | Line 113: | ||
if config.coord then | if config.coord then | ||
useWikidata = config.wikidata and true or false | useWikidata = config.wikidata and true or false | ||
end | |||
-- Require wikidata item, or specified coords | |||
local wikidataId = config.id or mw.wikibase.getEntityIdForCurrentPage() | |||
if not(wikidataId) and not(config.coord) then | |||
return '' | |||
end | end | ||