[01:31:29] is there a Mediawiki addon that takes a regexp and lets me delete pages/ban users? [01:31:35] it'd make sorting through all this spam a whole lot faster. [01:32:31] You could probably make a bot do that [01:32:44] (there may be a better option but that's the first that came to mind) [01:34:25] is there a basic bot to start from, or is this a from-scratch coding effort? [01:35:35] Are you familiar with python? [01:35:42] OH-, somewhat, yes [01:35:52] enough that I could modify a fairly simple script/bot [01:37:31] pywikibot has a regex function, I think [01:38:04] cool. I'll take a look [01:38:21] I think the command line option is -grep [01:38:33] Take a look at the delete.py script [01:38:51] pwb.py delete --help should give you some help messages [01:38:57] #pywikibot is a relevant channel, as well [01:44:42] thanks [01:44:56] I've joined the channel and checked out the code [05:20:18] I have a question about using ParserFunctions in InfoBox templates. Would here be the correct place to ask? [05:49:43] charburg: probably. [05:56:20] legoktm, my template code is at http://pastebin.com/wwbNZ8hm. I have ParserFunctions enabled in settings, and what happens is |label2 = Author and |data2 = {{author}} gets included in |header1 [06:01:04] legoktm, here's an example where i set author to test http://puu.sh/mcbYQ/ed55369508.png [06:01:16] charburg: I don't think you can do that...why not something like |label2 = {{#if: {{{author|}}} | Author | }} | data2 = {{#if: {{{author|}}} | {{{author}}} | }} [06:05:16] legoktm, yes that works. any reason that I cant have everything included in the if function? is it just not supported? [06:07:54] My knowledge of how the parser works is pretty limited, but I think you can't have dynamic parameters like that. It just doesn't work that way AIUI. [09:23:27] Hello! [09:23:38] I've got 2 questions [09:24:11] 1: how do I install and configure translation extension? [09:45:03] anybody?? [09:45:07] please [12:58:11] Hello. [13:24:46] any suggestions how I can get parsed search results from the mediawiki api? [14:10:31] basisbit: what do you mean with "parsed"? [14:16:57] I'm tyring to get infoboxes to work on my wiki but I just keep getting an error: "Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted". I'm running MediaWiki 1.26.2 under Apache with "luastandalone" provided by Scribunto. [14:17:27] I get that it can't open /dev/null but I'm not sure why. [14:19:04] I can't find any answers anywhere. [14:55:48] morning [16:04:04] FlorianSW, I am trying to get something like &action=render on search pages [16:09:05] * GrandePuffo saluta ~\� [16:24:40] basisbit: yeah, that's not possible, currently :) [16:35:52] How does mediawiki prefer small enhancements to be submitted? in Title.php in public function getSquidURLs() {} it'd be nice to add $this->getInternalURL( 'action=edit' ) to $urls = array(); [16:36:09] or actually. otherwise editing the page again before cache expiration will yield the old version :) [16:40:12] !gerrit [16:40:12] https://gerrit.wikimedia.org/r/#q,,n,z [16:40:18] hmph. [16:40:19] !git [16:40:19] MediaWiki development is using Git, a distributed source control manager, with Gerrit for code review. Details: https://www.mediawiki.org/wiki/Gerrit Instructions for using it: https://www.mediawiki.org/wiki/Gerrit/Tutorial To get an account: https://www.mediawiki.org/wiki/Developer_access [16:40:32] mha: ^ :) [16:40:38] FlorianSW, in that case I will try the api search and hack something together. [16:40:46] mha: although… i'd think that action=edit pages shouldn't be cached at all. [16:42:39] MatmaRex: thanks! Why not? Imo it's better to cache all (except for POSTs etc) and do an appropriate invalidation when you update contents. [16:43:31] MatmaRex: I could surely add the regex for action=edit to a whitelist. but neither the suggested varnish config on mediawiki's site does this nor me. and it'd be a very ugly regex as the input parameters could move around [16:46:49] mha: well, because compared to normal page views, hardly anyone ever visits them? ;) i think they're also comparably inexpensive to generate. and a stale cache is a bigger problem than for views, since it can result in someone unintentionally undoing earlier changes to the page. [16:48:46] MatmaRex: you do have a point in in that yes. I just like the idea of clean interoperability between softwares without too many special case configurations. [16:49:08] MatmaRex: but definitely for the performance cost for loading an edit page. [16:49:45] Imo it'd be neat. it does after all invalidate a bunch of resources related to the page when saving an edit. I am guessing there's an idea behind that. [17:02:31] hello sir,what are the things that I am supposed to do to improve myself in programing [17:06:34] adithyan, hi and welcome to the #mediawiki IRC channel [17:07:14] adithyan: I assume there is some info on the internet how to improve yourself in programming in general, but if you have a Wikimedia related question we're happy to help :) [17:14:59] yes [17:15:03] Pywikibot: Add documentation generation to deprecation decorator how can we do this task?Can you please explain it [17:16:55] #pywikibot is a relevant channel [17:17:43] jayvdb is probably sleeping atm [17:20:19] I need help getting Scribunto to work. I'm tyring to get infoboxes to work on my wiki but I just keep getting an error: "Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted". I'm running MediaWiki 1.26.2 under Apache on Arch Linux with "luastandalone" provided by Scribunto. I understand that it's having troubles opening /dev/null but I'm not sure why [17:20:25] and I've spent a lot of time looking for the answer but I've found nothing. [17:26:43] nerdopoly: Not sure how to help you, but a Google search brings up this mailing list thread: http://www.gossamer-threads.com/lists/wiki/mediawiki/461415 [17:26:51] looks like an issue with luastandalone [17:27:03] Apparently they were able to fix it by recompiling [17:27:09] luastandalone with a newer toolchain [17:43:33] OH-: Thanks [18:08:37] OH-: So I did that, but now I get another error: "Lua error in Module:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value)." [18:08:54] You probably need to update.php [18:09:08] oh wait [18:09:09] scratch that [18:09:31] You're probably using the Module wrong? [18:09:38] That's a Lua code issue [18:10:50] different versions of wikidata installed? [18:11:37] nerdopoly: do you have any PHP restrictions in place? (" Not sure why, but I restarted Apache and it went away. Thank you. [18:18:47] cheers [18:40:44] andre__: https://gerrit.wikimedia.org/r/#/c/261178/8 [18:40:54] Experimental check also failing :'( [18:43:30] ananayarora: Meh. Sorry for the problems. :( [18:43:32] ananayarora, I really don't know much about Gerrit, hence just asking in this channel (instead of pinging me personally) might be a better idea [18:44:43] andre__: Deadline gets over tomorrow. I don't know what to do now. Is Jldrobson on IRC :( [18:44:48] ?* [18:47:25] ananayarora, https://www.mediawiki.org/wiki/Google_Code-in_2015#Contacting_Wikimedia_mentors [18:48:46] Thanks andre__! I found them in #wikimedia-dev [19:23:16] andre__: is there a way to remove/hide a task from gci portal? [19:24:16] codezee, hey! Admins can unpublish tasks. Which one do you refer to? :) [19:24:21] link welcome [19:25:04] codezee, (as long as the task has not been claimed) [19:25:21] andre__: I'm referring to https://codein.withgoogle.com/dashboard/tasks/5708736052068352/ but someone else has already completed that task, so that needs to be unpublished [19:25:29] andre__: yes, the task is as yet unclaimed [19:28:11] codezee, hmm, I don't get the GCI interface. It says "0 students are working on this task and 0 students have finished. 1 claim remaining." [19:28:27] but looking at task instances, zero are listed [19:28:50] andre__: its correct, no one has attempted, it has been finished outside scope of gci, as clear from the phab ticket [19:29:07] which is why, I'm trying to cancel/hide it [19:30:35] because the task no longer holds validity [19:32:53] codezee, ah, found it. [19:32:58] codezee, alright, unpublished [19:33:01] thanks for letting us know [19:33:54] thanks :) [23:23:54] any idea how I could make the images in wiki articles directly link to the high-res version of it(the images)? [23:58:58] !debug | quiddity [23:58:58] quiddity: For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging