[09:08:04] [telegram] Jon Hi! Are there any JavaScript convenience functions (akin to `mw.util.addPortletLink`) for Vector-2022 to add to/amend the interlanguage dropdown? (cc Nikki) [09:08:39] [telegram] (I guess that would be useful for Minerva too, when I think about it) [14:48:50] [telegram] No but there's a proposal: https://phabricator.wikimedia.org/T303859 (re @jhsoby: Jon Hi! Are there any JavaScript convenience functions (akin to mw.util.addPortletLink) for Vector-2022 to add to/amend the inte...) [15:18:12] [telegram] is that the right link? I don't see anything about interwiki links there (re @Jon: No but there's a proposal: https://phabricator.wikimedia.org/T303859) [15:18:57] [telegram] Oh maybe I've misunderstood. What exactly are you trying to do? [15:19:17] [telegram] add links to the interwiki section [15:21:25] [telegram] I used addPortletLink and that works for the vector skin, but the new vector skin and the mobile one implement interwiki links in a different way [15:25:12] [telegram] The interwiki section being the "in other languages " or "in other project"? [15:25:27] [telegram] in other languages [15:26:20] [telegram] Ok. Minerva doesn't have a language menu so that's why it's not working. It has a button that opens an overlay and uses an API to pull them down. If you wanted to put something in there I think there are some hooks (but I'd need to check) [15:26:54] [telegram] Vector 2022 should behave exactly the same as Vector [15:28:32] [telegram] Vector 2022 has a dropdown. In preferences if you disable the language button that should work. Clicking the language button opens an overlay which should be based on items in that menu. If your item is not showing that suggests a bug inExtension:ULS [15:35:34] [telegram] For Minerva seems like there is only the hook mobileFrontend.languageSearcher.noresults [15:36:26] [telegram] the only language button I'm seeing is the one to change the interface language [15:39:59] [telegram] ok I found a page with one existing interwiki link and there I do see a language menu, but it still says "1 language" and only lists one page when I click it [18:21:42] [telegram] Is there some code I can look at? Are you trying to add a link or decorate an existing link with information? [19:43:50] [telegram] https://www.wikidata.org/wiki/User:Nikki/LexemeInterwikiLinks.js and the related https://incubator.wikimedia.org/wiki/User:Nikki/WiktionaryInterwikiLinks.js (re @Jon: Is there some code I can look at? Are you trying to add a link or decorate an existing link with information?) [21:13:50] [telegram] Hi there, I'm getting this error "OO.ui.ButtonMenuSelectWidget is not a constructor" but the gadget worked properly until today. [21:14:45] [telegram] Here is the code: https://tr.wikipedia.org/wiki/MediaWiki:Gadget-Adiutor.js [21:37:35] [telegram] I think you need to load the `oojs-ui-widgets` module as well [21:37:40] [telegram] I guess something else happened to load it until now [21:37:49] [telegram] (ResourceLoader module, that is, i.e. add it in line 8) [21:45:39] [telegram] Let me try (re @lucaswerkmeister: (ResourceLoader module, that is, i.e. add it in line 8)) [21:49:09] [telegram] It worked, thank you! (re @lucaswerkmeister: (ResourceLoader module, that is, i.e. add it in line 8)) [21:49:16] [telegram] great :)