Content deleted Content added
getSiteLinks: Don't error if entity is not found |
if no id is supplied then explicitly use getEntityObject() to get data for current page |
||
Line 725:
function p.ViewSomething(frame)
local f = (frame.args[1] or frame.args.id) and frame or frame:getParent()
if f.args.id then
local data = mw.wikibase.getEntityObject(f.args.id) else
local data = mw.wikibase.getEntityObject()
end
if not data then
return nil
|