[00:49:00] Bleh. PHP heredocs are nigh unusable. No way to indent, or to strip indentation. [00:57:58] are you reconsidering using separate files? ;) [07:56:08] [[Tech]]; ArchiverBot; Bot: Archiving 1 thread (older than 30 days) to [[Tech/Archives/2016]].; https://meta.wikimedia.org/w/index.php?diff=15525165&oldid=15514231&rcid=7648021 [14:00:44] Is it possible to show the very first edit in the diff view? The abuse filter seems to do that: https://hr.wikipedia.org/wiki/Posebno:Evidencija_zloporaba/3971?uselang=en. It could be useful when patrolling pages if there's code that's hidden, or something like that. [14:08:10] Srdjan_m: just replace oldid with diff in the URL [14:09:34] Nemo_bis: Is there a script or something like that that automatically 'un-grays' out the 'diff' option, and replaces it with that link? [14:34:45] Srdjan_m: no idea; changing the URL is so easy for me that I never looked for one [16:24:32] hi [16:38:00] rion: This extension is likely to get a good trial by fire. One brief message on the enwiki vpt and Nihiltres is already trying to break it. :-) [16:38:05] brion: ^^ [21:25:27] hi there. I tried to adapt [[mw:Template:Graph:PageViews]] for dewiki ([[de:Template:Graph:PageViews]]), but it does not work atm, see [[de:Template:Graph:PageViews/Test]]. The URL of the img points to a JSON file that reports a HyperSwitch/errors/unknown_error. Does someone know how to deal with this? [21:25:50] test page: https://de.wikipedia.org/wiki/Vorlage:Graph:PageViews/Test [21:26:02] ireas: Report a bug on phabricator probably. [21:28:15] Reedy: okay, I’ll do so. [21:28:26] Thanks [21:28:39] The person you'd need to speak to doesn't look to be on IRC, so that's probably the best way forward [21:31:01] REMINDER: about next week's data center migration. There will be NO EDITING for about 30 minutes on both Tuesday, 19 April at 14:00 UTC and Thursday, 21 April at 14:00 UTC. This will affect ALL of the wikis. You will be able to read the wikis and to log in, but you will not be able to edit. Read https://meta.wikimedia.org/wiki/Tech/Server_switch_2016 for more information. Please share this news. [21:31:01] If you find unexpected problems (e.g., can't read for more than a few minutes), then please report those in #wikimedia-tech, which will be monitored by members of the Operations team. #wikimedia-operations will be moderated until the switch is finished and everything is stable again. [21:32:07] Reedy: do yo know which tag to add (graph vs REST api), or should I leave it untagged? [21:32:26] Is there a MediaWiki-extensions-Graph or similar? [21:32:38] It's just #Graph [21:33:01] yes, just graph [21:33:44] multichill: about? If I merge and deploy the patch for T125626 can you test it? [21:33:44] T125626: Configure europeana2802016 ContentTranslation campaign - https://phabricator.wikimedia.org/T125626 [21:33:59] okay, thanks! [21:34:26] thedj: same question for you I guess ^^ [21:36:01] Reedy: do you grok any of this ContentTranslationCampaigns stuff? [21:36:21] bd808: That would be nice! We both don't really understand how it works. I do have test case [21:37:24] bd808: Go to https://www.wikidata.org/w/index.php?title=Wikidata:Europeana_Art_History_Challenge/Content_Translation&withJS=MediaWiki:EuropeanaContentTranslation.js&itemid=Q2258948&destlang=sv and click "start translation" [21:37:35] You should get a horrible error (don't enable content translation) [21:37:42] After deploy that error should be gone [21:37:59] "Den handling du har begärt kan enbart utföras av användare i en av grupperna: $1. " [21:38:17] Exactly [21:38:19] bd808: Unfortunately not [21:38:31] It's like cutting the line at IKEA! [21:38:33] You do not have permission to edit this page, for the following reason: The action you have requested is limited to users in one of the groups: $1. [21:38:42] such inflected yelling [21:39:16] With the patch deployed the content translation should be enabled automagically instead of this message [21:39:35] via the "!$wgContentTranslationCampaigns['europeana2802016']" exclusion I guess [21:40:19] that patch doesn't look like it can make anything worse [21:40:36] ireas, first of all, I see that {{trim}} is absent from your wiki yet is used in templates [21:41:43] MaxSem: ah, okay. I didn’t see that. but https://de.wikipedia.org/wiki/Benutzer:Ireas/test has a version w/o trim and doesn’t work either [21:45:13] hi ireas [21:45:21] MaxSem: do you know what trim is supposed to do? for me it looks rather unncessary [21:45:31] hi Nemo_bis! [21:46:00] multichill, thedj: I'm going to deploy it now. If you join #wikimedia-operations you can follow along with the fun [21:50:26] ireas, trim usually... trims whitespace from beginning and end of a string [21:50:57] if it's unnecessary, try removing it but defnitely if it's used it needs to exist:) [21:51:00] OuKB: yes, I’m aware of that. But the template on mw seems to be rather pointless: {{#if:{{{1|}}}|{{{1|}}}}} [21:51:09] or is this some parser magic that I don’t know? [21:51:23] looks like that [21:51:37] * OuKB kicks MaxSem [21:54:52] ireas, I've created it and it works [22:04:44] MaxSem: ah, great, thank you! [23:05:33] Oh, hah. How fun. While thinking hard about what non-trivial js UI I've got, I remembered the very amusing http://soacoa.org/blazon/builder.php I did some years ago. :-) [23:05:47] s/I've got/I've written/ [23:09:12] * Coren plays with it a bit. It clearly shows that I can write code that works and UI that looks ugly.