Ladsgroup added a comment.
I got it to work but I could do only by injecting global variables into CommonsInlineImageFormatter, I quite dislike this solution but I couldn't find any way around it that doesn't involve refactoring half of mediawiki core and wikibase. One quite expensive way to do this is to define CommonsMedia value type, inject the thumbsize in the value type (by defining CommonsMediaValueParser that takes ParserOptions) and then use it in the CommonsInlineImageFormatter, that would be two days of work at least. Unless I'm missing something obvious TASK DETAIL https://phabricator.wikimedia.org/T224189 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: WMDE-leszek, Ladsgroup, hoo, Lydia_Pintscher, Aklapper, Multichill, darthmon_wmde, alaa_wmde, DannyS712, Nandana, Jony, Prisshahlla, Lahi, Gq86, GoranSMilovanovic, QZanden, V4switch, LawExplorer, _jensen, rosalieper, Jonas, LNDDYL, Wong128hk, Wikidata-bugs, matthiasmullie, aude, Fabrice_Florin, Jdforrester-WMF, Matanya, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs