[04:53:37] join #wikimedia-labs [04:53:43] Dangit [07:00:08] Hi! I'd like to write tests for a gadget ( https://www.wikidata.org/wiki/MediaWiki:Gadget-DuplicateReferences.js). Are there existing examples / documentation I should read to learn how to do that ? [08:10:56] [[Tech]]; ديفيد عادل وهبة خليل 2; /* Removing erroneous references globally */ new section; https://meta.wikimedia.org/w/index.php?diff=15793620&oldid=15792358&rcid=8067510 [12:11:38] [[Tech]]; Ruslik0; /* Mobile infobox rendering in visual editing */; https://meta.wikimedia.org/w/index.php?diff=15794251&oldid=15793620&rcid=8068547 [13:02:43] Quick question: api.php?action=query&prop=redirects&titles=File:MyFile.jpg will tell me that File:MyOldFile.jpg redirects to File:MyFile.jpg - is there any way with the API to see where File:MyOldFile.jpg redirects to without knowing ahead of time or having to parse the page revision? [13:02:55] I'm thinking like api.php?action=query&prop=redirects&rdprop=target&titles=File:MyOldFile.jpg [13:03:39] ShoeMaker: i think it's just action=query&redirects=1 [13:04:08] ShoeMaker: &redirects=1 makes all query modules follow redirects, and also tells you what redirects where [13:04:30] Thanks MatmaRex -- exactly what I was looking for. [13:04:48] Didn't see it on https://www.mediawiki.org/wiki/API:Redirects [13:07:00] ShoeMaker: yeah, that's just the documentation of the 'prop=redirects' module. it's documented in https://www.mediawiki.org/wiki/API:Query#Resolving_redirects [13:08:01] ShoeMaker: i added a hatnote there [13:10:29] Great! I was going to dig for it later today and add it as a "see also", but a hatnote works as well. :) [14:19:08] uh long commit messages now get scrollbars :) https://gerrit.wikimedia.org/r/#/c/301112/ [14:20:35] When I get used to the new gerrit, everything might have already been migrated to Phabricator Differential/Diffussion heh [14:25:05] Nemo_bis: yeah, it's the worst. easy enough to fix with some CSS, though. [14:25:26] MatmaRex: I think it's a subtle way to make you feel guilty of writing "too much" [14:25:42] pff [14:25:50] :p [14:25:57] a commit message is not too long unless the reader's machine starts swapping [14:26:05] .com-google-gerrit-client-change-CommitBox_BinderImpl_GenCss_style-scroll { height: auto !important; } [14:26:29] lol [14:27:33] Nemo_bis: there is a tiny arrow underneath it to expand it, but it doesn't stick after you reload the page :( [14:29:18] Oh [14:30:03] Well, I've lived for years with the scrollbars of gerrit 2.8 which didn't actually scroll; I don't complain about scrollbars in 2.12 which do work. [14:37:33] I don't mind the scrollbar either [18:27:47] [[Tech]]; 36.37.237.93; /* ភាសាខ្មែរ */ new section; https://meta.wikimedia.org/w/index.php?diff=15795096&oldid=15794251&rcid=8069944 [18:27:56] [[Tech]]; Defender; Reverted changes by [[Special:Contributions/36.37.237.93|36.37.237.93]] ([[User talk:36.37.237.93|talk]]) to last version by Ruslik0; https://meta.wikimedia.org/w/index.php?diff=15795097&oldid=15795096&rcid=8069945