local p = {}
function p.hello(frame)
return 'hello world'
end
function p.test(frame)
local args = frame.args or frame
local item = mw.wikibase.getEntity(args.item or args[1])
if item == nil or item.claims == nil then
return 'nil'
end
return #item.claims["P31"]
end
return p