[14:00:46] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @tgr & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [14:50:13] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @tgr & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:00:50] Welcome to the technical advice irc meeting! @tgr and me are ready for your questions ... [15:01:02] Hi [15:01:07] Hi [15:01:14] hi [15:02:15] i have a question about Mediawiki on mobile and user scripts/gadgets: “which mobile-friendly skins work with user scripts/gadgets?”. Is this the right place to ask? [15:03:37] Hello everyone [15:03:42] pdehaye2 This is the right place to ask. I'm not sure if there is a clear-cut answer, but I'll try to find out . [15:03:49] thank you! [15:03:58] pdehaye2: that's very generic, do you have a specific script or gadget in mind? [15:04:04] Does anyone know who the appropriate product designer / manger would be per T222533#5167080 for Special:Watchlist [15:04:04] T222533: Special:Watchlist takes a while to update when the watchlist is cleared - https://phabricator.wikimedia.org/T222533 [15:04:19] Q1: which mobile-friendly skins work with user scripts/gadgets? [15:05:21] Q2: In https://www.wikidata.org/w/index.php?title=User:Efly/Gadget-CreateNewItem.js what do $1 and $2 refer to? where is that defined? [15:05:34] I'd like to know what it takes to get whitelisted on Gerrit so as to automatically trigger Jenkinsbot? [15:07:46] Another point, Does T218511 need the repetitive I've got this issue comments? Can someone ask for them to be toned down? [15:07:47] T218511: After opening a diff, entry on Special:Watchlist sometimes stays unread (bold) - https://phabricator.wikimedia.org/T218511 [15:07:59] brendajerop: see https://www.mediawiki.org/wiki/Continuous_integration/Whitelist [15:09:11] if you mean in the sense of when a new contributor gets whitelisted, it's typically after they have a few commits that have been merged [15:10:30] RhinosF1: recent changes are maintained by the Growth team [15:11:00] the watchlist is implemented almost the same way, so that's where I'd go [15:11:18] I am using Module:WikidataIB to fetch data from Wikidata. Is there any way to get the value only (without units)? My aim is to pass the output to the convert function [15:11:25] https://www.mediawiki.org/wiki/Growth [15:11:32] tgr: Thank you. [15:12:25] tgr, kostajh has asked on the ticket for a someone to comment on what UX would be desired and if a product manager/designer could comment, I was wondering if it was worth subscribing anyone to the ticket who would fit that? And who that would be? [15:13:22] RhinosF1: I'll tag the product manager on my team [15:14:22] thanks kostajh! [15:14:23] kostajh, That's great, I've looked at /growth and that shows Marshal_ and Rita Ho to probably be the best to ask [15:14:27] RhinosF1: although for what it's worth, I think Growth is aiming to work more on the RCFilters as they relate to watchlist, while Core Platform Team is probably more interested in Special:EditWatchlist [15:14:50] so you may get a quicker response by tagging people from their team. [15:14:56] pdehaye2: As far as I know and as my research goes, all skins "support" gadgets in the sense that the gadget code is loaded in every skin. However, if the gadgets make certain assumptions about the structure of the markup, then the gadget might not work for skins where the markup is different. [15:15:06] I'll try and find out who it is [15:15:15] @tgr I am particularly interested in skins that get mw.notify to work properly on mobile [15:16:44] @chiborg thanks. then the q becomes why mw.notify does not work with MobileFrontend [15:16:51] Kostajh, about to tag someone from Core Platform now [15:17:54] pdehaye2: MobileFrontend / MinervaNeue is a very special skin that throws out a lot of content to make the page lightweight [15:18:12] I'd expect it to work with all other skins [15:18:24] Q3: I am using the Wikidata Query Service, with the graph view. Is there a way to associate hyperlinks to nodes and/or edges, or even hovers or infoboxes? If not, does anybody know of similar, maybe through some external visualisation service? [15:18:27] for some value of "work", not necessarily a good user experience on mobile [15:18:54] ah! interesting, tgr [15:19:14] some skins have been designed to be responsive and work on small screens, so I'd try those [15:19:14] pdehaye2: I've done a very quick test (going to the mobile wikipedia in my desktop browser, opening the dev tools and calling mw.notify.directly) and it displayed a notification a the bottom of the screen. [15:19:39] Kostajh, Done [15:19:49] RhinosF1: thx [15:19:59] np [15:19:59] if you are asking about Wikimedia wikis, Timeless is a responsive skin [15:20:18] and there is work on making Vector responsive but I think not quite finished yet [15:20:24] what skin is used on my mobile when i go to wikipedia? how do i find out [15:20:41] pdehaye2, It's in the settings dialog [15:20:43] ("responsive" here meaning that it rearranges itself on small screens to better adapt) [15:21:05] pdehaye2 That's MinervaNeue plus MobilFrontend extesion [15:21:10] i m asking because i need to pick a skin for my wikibase instance, and it s crucial that mw.notify and to some extent OOUI work [15:22:19] pdehaye2: https://www.wikidata.org/w/index.php?title=User:Efly/Gadget-CreateNewItem.js has comments about what $1 / $2 are, are you looking for information beyond that? [15:22:57] pdehaye2 for mobile and wikidata you might also look at the termbox project (still under development): https://www.wikidata.org/wiki/Wikidata:Development/Termbox [15:23:09] wikibase, not wikidata [15:23:12] https://www.irccloud.com/pastebin/5OKSsprm/ [15:23:20] you can see it being set near the end of the script (last line of init() ) [15:23:28] 16:07:47 Another point, Does T218511 need the repetitive I've got this issue comments? Can someone ask for them to be toned down? [15:23:28] _ Did this get a bit lost in our busy chat? [15:23:29] T218511: After opening a diff, entry on Special:Watchlist sometimes stays unread (bold) - https://phabricator.wikimedia.org/T218511 [15:24:08] thanks @chiborg @tgr for responses to my Q1 about mobile and skins and scripts [15:26:11] pdehaye2: You could also try any of these: https://www.mediawiki.org/wiki/Category:Mobile_skins [15:26:15] for Q2 on $1 and $2 in Gadget-CreateNewItem.js, I see those comments. but then when i use the script on Wikidata it says “Create New Item” instead of $2, which does not appear anywhere in the script. And when I copy/paste it on my own Wikibase instance, $2 becomes empty. So I am assuming $1 and $2 refer to something defined elsewhere. [15:27:21] I am using Module:WikidataIB to fetch data from Wikidata. Is there any way to get the value only (without units)? My aim is to pass the output to the convert function [15:28:28] pdehaye2: In messages in general, $1 and so on are parameters [15:28:47] so @bawolff, where do they get passed on? [15:29:04] pdehaye2: So you see near the end of the script there is: mw.message( 'not-found-message', $innerA.text(), $( '#n-special-newitem' ).text() ) [15:29:05] pdehaye2: #n-special-newitem is the sidebar entry called newitem [15:29:28] not sure i understand [15:29:35] special-newitem, rather [15:29:45] you can see it defined in https://www.wikidata.org/wiki/MediaWiki:Sidebar [15:29:48] for mw.message function, the first argument is the message name, and all the other arguments are the values for $1, $2 and so on [15:30:28] the sidebar is the list of small links below the site logo (on most skins) [15:31:04] this user script seems to assume there's a "create new item" link there [15:31:15] ah, that’s the assumption that i was missing [15:31:17] so either you'd need to modify the script, or add that [15:31:25] thank you. i think i can deal with it now from there. [15:31:31] for that question [15:31:31] in general, user scripts are rarely written with portability in mind [15:32:45] yes, that is the understatement of the year [15:33:05] i wish it wasn’t that way [15:33:51] pdehaye2 I'll relay your third question to the wikidata team, I can't answer that [15:33:52] particularly for the scripts most relevant to wikibase (where there is a layer of complication around indexing). due to federation goals of the WMF it might make sense to think of it though [15:34:01] thankk you, @chiborg [15:34:35] superyetkin: if you search for the string "unit" in that module you find [15:34:37] local showunits = parseParam(args.su or args.showunits, true) [15:35:07] so it seems like showunits=no or something like that would work [15:39:04] @bawolff, @tgr the #n-special-newitem hack is so badass! basically in order to know how to say “Create New Item” in many languages, the author goes back to look at the relevant sidebar entry, so s/he can leverage the work of the translators. but in the process they s/he introduces dependency on the skin chosen, which for me is different from the Wikimedia properties. [15:40:12] pdehaye2: it's not really on the skin, Wiidata has a customized sidebar, you can do the same for any skin by editing the MediaWiki:Sidebar page [15:41:12] if you check https://www.wikidata.org/wiki/MediaWiki:Sidebar?action=raw you'll see a line saying [15:41:15] ** special-newitem-url|special-newitem [15:41:58] that means show a sidebar entry with the target page name taken from MediaWiki:Special-newitem-url and the link text taken from MediaWiki:Special-newitem [15:45:00] pdehaye2: re Q3, i kinda doubt that UI could support links [15:45:11] clicking on the nodes is used to expand them [15:45:46] also the docs at https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/Wikidata_Query_Help/Result_Views don't mention it [15:46:16] pdehaye2: I've asked the wikidata team and even they can't answer right away. The graph documentation does not mention having hyperlinks, so I guess that would be an additional feature for the graph view. A useful one, never the less. [15:47:22] tgr: thanks, the documentation lacks this information [15:47:27] RhinosF1: are you asking about all the people in T218511 saying they are affected by the bug? [15:47:28] T218511: After opening a diff, entry on Special:Watchlist sometimes stays unread (bold) - https://phabricator.wikimedia.org/T218511 [15:48:15] tgr, yes I'm asking if it's needed and is it appropiate for someone to ask unless they're posting new info to not? [15:48:24] Phabricator blocked on proxy servers? [15:48:40] I am getting Internal Server Error [15:49:26] works for me [15:49:34] are you trying to search? [15:49:36] @tgr so in the custom sidebar, the left hand side (the link) is hardcoded so as to be faster, while the right hand side is done this way to allow for translations? [15:50:03] both allow for translation [15:50:18] @chiborg thanks! i would think it could be useful, given that we could quickly leverage the infobox framework for instance [15:50:36] if the string does not have any translations, it's used as is [15:50:48] there is more documentation at https://www.mediawiki.org/wiki/Manual:Interface/Sidebar [15:51:18] pdehaye2 I fear you might have to open a Phabricator ticket, requesting the feature. [15:51:53] RhinosF1: I'd leave that kind of thing to the maintainers / phab admins [15:52:03] they tend to ask if the response volume gets out of hand [15:52:54] tgr, that's why I asked in here to prompt a phab admin to think about it, It's not too bad but it's still annoying [16:00:51] how to format the coordinate values fetched from Wikidata? [16:00:53] e.g. 39�56'17.99"N, 32�51'42.98"E [16:01:03] @chiborg done [16:01:18] a module to parse this? [16:01:35] so that the coordinates template works with it? [16:04:15] Thanks all for participating in the technical advice meeting! [16:04:42] superyetkin: per https://en.wikipedia.org/wiki/Module:WikidataIB#Coordinates the module seems to be able to handle that [16:51:32] Anyone want to review https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/502040/ ? Be nice for the installer not to be but ugly before next release [16:54:52] bawolff: source code... not ugly... what world do you live in lol [16:55:38] I want the rendered html to not be ugly :P [16:57:15] bawolff: it gives it personality though :P [17:59:08] Andre, :) I see you saw my suggestion [21:15:46] Does anyone know how to get the vernacular names of all languages in wikispecies API (https://species.wikimedia.org/w/api.php?action=query&titles=Quercus%20ilex)? I haven't found it in the documentation :S [21:18:28] I guess I could always use https://species.wikimedia.org/?title=Quercus%20ilex&action=raw [21:19:50] you could also try query.wikidata.org (not wikispecies but prob has similar info) [21:20:28] it turns out that wikidata does not have the common names most of the time [21:26:02] well that's not true... wikidata has the vernacular names, but for some languages it has too many names (includes plurals, etc.). I can't easily get the most common name from wikidata [21:27:15] for English, for example, the label is usually the scientific name [21:29:26] why they have aliases [21:39:55] they have aliases, but if I can't know if the alias is singular or plural, I get too many names [21:40:41] for English it may be ok, for Spanish, it does not work [21:43:09] well, thanks, I think I will work with both wikidata api and wikispecies raw output