Please add a Lua function similar to [[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntityObject|mw.wikibase.getEntityObject]] for getting an entity by site link (title), just like [[https://www.wikidata.org/wiki/Special:ItemByTitle|Special:ItemByTitle]] or the [[https://www.mediawiki.org/wiki/Wikibase/API#wbgetentities|wbgetentities]] API module with titles parameter.
On **cswiki** articles translated from other language wikis are marked by Translated template (with source wiki, article and revision parameters filled in). The template could detect (using Module:Wikidata), whether the article is connected with that source article and categorize it if not. But if that source article is connected with a different article, it is false positive there (could be categorized too, but in a different maintenance category). I can not single out these false positives, because I can not find out (using Lua function in Module:Wikidata) the Q-id for a given wiki:page.
On **enwiki** in Module:Wikidata talk page is another request from @czar: [[https://en.wikipedia.org/wiki/Wikipedia_talk:Wikidata/Archive_4#QID_lookup_from_enwp_article_title|QID lookup from enwp article title]].
#patch-for-review:
[] https://gerrit.wikimedia.org/r/355230
[x] https://gerrit.wikimedia.org/r/357126