Module:Wikidata: Difference between revisions

Content deleted Content added
Undid revision 706404559 by RexxS (talk) self-revert - didn't help
accept an empty 'id' in 'ViewSomething'
Line 725:
function p.ViewSomething(frame)
local f = (frame.args[1] or frame.args.id) and frame or frame:getParent()
local dataid = mw.wikibase.getEntityObject(f.args.id)
if id and (#id == 0) then
id = nil
end
local data = mw.wikibase.getEntityObject(id)
if not data then
return nil