Wikibase Client provides a LuaScribunto interface that implements functions to access data from the Wikibase repository, if the Wikibase Client configuration enablesallowDataTransclusion.Lua modules and wiki templates can invokethese functions.
allowDataTransclusion
/docs/topics/lua.md
/client/includes/DataAccess/Scribunto/mw.wikibase.lua
/client/includes/DataAccess/Scribunto/mw.wikibase.entity.lua