Changes
use mw.wikibase.getEntityObject
--Wikidata fallback if requested
local item = mw.wikibase.getEntitygetEntityObject()
if item ~= nil and item.claims ~= nil then
for _, params in pairs( conf ) do
end
if canUseWikidata then
local wikidataIds = getIdsFromWikidata( item, 'pP' .. params[3] )
if wikidataIds[1] then
parentArgs[params[1]] = wikidataIds[1]