Jarekt created this task. Jarekt added projects: MediaWiki-extensions-WikibaseClient, Wikibase-Lua, SDC General. Restricted Application added subscribers: Liuxinyu970226, Aklapper. Restricted Application added a project: Wikidata.
TASK DESCRIPTION After T223792 <https://phabricator.wikimedia.org/T223792> got resolved, templates on Commons can access Structured Data on Commons using Lua. As mentioned in T237107 <https://phabricator.wikimedia.org/T237107>, `mw.wikibase.getEntity() `without the item ID does not work yet, so the code is calling `mw.wikibase.getEntity("M"..mw.title.getCurrentTitle().id)` to access entity associated with the current page. Strangely, some tiny fraction of the files that execute that line end up in c:Category:Pages_with_script_errors <https://commons.wikimedia.org/wiki/Category:Pages_with_script_errors> with error message that "M0" is not correct entity ID. Purging files fixes the issue, but files flicker in and out of "Category:Pages_with_script_errors". I had to add this <https://commons.wikimedia.org/w/index.php?title=Module:Artwork&diff=prev&oldid=374128018> change to patch the issue. Please ensure mw.title.getCurrentTitle() <https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.title.getCurrentTitle>.id returns correct page ID. TASK DETAIL https://phabricator.wikimedia.org/T237746 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jarekt Cc: Aklapper, Liuxinyu970226, Jarekt, darthmon_wmde, DannyS712, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, Anooprao, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, LawExplorer, Salgo60, Silverfish, _jensen, rosalieper, Scott_WUaS, Susannaanas, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs