local p = {}
function p.getValueId(frame)
local item, property = frame.args[1], frame.args[2]
local prop = mw.wikibase.getEntity(item):getBestStatements(property)
if prop[2] then
local id = prop[2].mainsnak.datavalue.value.id
if id ~= nil then return id end
end
end
return p