Multichill added a comment.
In T223792#5346467 <https://phabricator.wikimedia.org/T223792#5346467>, @Smalyshev wrote: >> It looks like the Wikibase Lua support can mostly deal with MediaInfo already, except that it can't look up the MediaInfo entities. > > What kind of look up is this - matching the exact caption? Or partial matching the caption? `mw.wikibase.getEntity` doesn't seem to need any lookups, so which Lua function would use that? No, it's not like that, it's something like mw.wikibase.getEntity( 'Q20489172' ) and returns the whole entity in LUA (like https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q20489172 ) so you can work with the data. So as a LUA user I want to do mw.wikibase.getEntity( 'M62798946' ) and get in LUA like https://commons.wikimedia.org/w/api.php?action=wbgetentities&ids=M80505417 . See also https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.entity TASK DETAIL https://phabricator.wikimedia.org/T223792 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Multichill Cc: Addshore, Smalyshev, Mholloway, matthiasmullie, Multichill, Marsupium, Keegan, Jheald, Mike_Peel, Cparle, Aklapper, Jarekt, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, darthmon_wmde, joker88john, CucyNoiD, Nandana, NebulousIris, JKSTNK, Gaboe420, Versusxo, Majesticalreaper22, Sario528, Giuliamocci, Adrian1985, Cpaulf30, Lahi, PDrouin-WMF, Gq86, Af420, E1presidente, Ramsey-WMF, Darkminds3113, Anooprao, SandraF_WMF, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Tramullas, Acer, LawExplorer, Salgo60, WSH1906, Lewizho99, Maathavan, Silverfish, _jensen, rosalieper, Susannaanas, Jane023, Wikidata-bugs, Base, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
