Jarekt added a comment.

I just run into this issue while debugging why c:Template:Label is not working correctly for users coming from "be-tarask" wiki. I finally tracked it down to the fact that mw.wikibase.getEntity('Q1'):getSitelink( 'be-taraskwiki' ) does not return anything while mw.wikibase.getEntity('Q1'):getSitelink( 'be_x_oldwiki' ) does. What is even more confusing is that mw.wikibase.getEntity('Q1'):getLabel('be-tarask') returns a label but mw.wikibase.getEntity('Q1'):getLabel('be_x_old') does not. So for the same language "be-tarask" aka. 'be_x_old' different functions require different language codes to work.


TASK DETAIL
https://phabricator.wikimedia.org/T112426

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jarekt
Cc: Jarekt, deryckchan, TerraCodes, Urbanecm, Keegan, JEumerus, zhuyifei1999, Luke081515, Liuxinyu970226, daniel, Anomie, Ricordisamoa, Purodha, Krenair, Ladsgroup, Lydia_Pintscher, aude, Aklapper, Matanya, Nikerabbit, Amire80, Dereckson, GoranSMilovanovic, QZanden, Sethakill, dg711, Tulsi_Bhagat, Izno, biplabanand, Wikidata-bugs, Snowolf, jayvdb, Mbch331, Rxy, Jay8g, Legoktm
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to