Module:WikidataCheck: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
Line 20: Line 20:
if not ok then -- not in one of the approved namespaces
if not ok then -- not in one of the approved namespaces
return ""
return ""
end
local entity = mw.wikibase.getEntityObject()
if not entity then -- no Wikidata item
return "[[Category:" .. catbase .. " not in Wikidata]]"
end
end
if value == "" then
if value == "" then