Lucas_Werkmeister_WMDE added a comment.
I think I’ve discovered a problem while preparing an example on the documentation draft <https://www.mediawiki.org/wiki/Wikidata_Bridge/Development/DocDrafts/How_to_Enable_Wikidata_Bridge_for_your_Infobox>. Currently, enwiki’s Module:WikidataIB <https://en.wikipedia.org/wiki/Module:WikidataIB> `createicon` function uses plain image links to create the icon, with something like this: [[File:OOjs UI icon edit-ltr-progressive.svg|…|link=https://www.wikidata.org/wiki/Q2013?uselang=en#P856]] (I assume other wikis’ infobox modules work similarly, but I didn’t check.) You can add a `|class=data-bridge-enabled` parameter to that, but this results in the `class` being added to the //`<img>` element//, not the surrounding `<a>` element. So if we search for `a.data-bridge-enabled` we won’t find it. In fact, MediaWiki has no built in way to add link attributes <https://stackoverflow.com/a/19997470/1420237>, so we can’t require the `class="data-bridge-enabled"` on the `<a>` element directly, as far as I understand. TASK DETAIL https://phabricator.wikimedia.org/T224832 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Esc3300, Michael, Lea_Lacroix_WMDE, Aklapper, Lydia_Pintscher, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, darthmon_wmde, joker88john, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Wikidata-bugs, Superyetkin, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs