[00:16:29] Hi all, I need a quick lua help. Anyone? There is a lua module ([[Module:Listen]]) invoked by a template ({{Listen}}). It works great on en.wiki, I would like to port it to pl.wiki. How do I add aliases to fields? I can copy it straight away, but then I would have to name all parametres in English. I would like to be able to use names both in English and Polish. Say, image= and obraz= [00:18:57] well [00:22:47] file arguments need to be changed in https://en.wikipedia.org/wiki/Module:File_link [00:23:19] addPositional() and addNamed() could be extended to support aliases, or just rename them there in place [00:24:09] https://pl.wikipedia.org/wiki/Modu%C5%82:TableTools you have already on plwiki [00:24:53] https://pl.wikipedia.org/wiki/Modu%C5%82:File_link is also on plwiki - but the names are not translated, one would need to implement the alias functionality there [00:25:22] ah, it's your fresh upload Halibutt [00:25:43] yup [00:26:07] https://en.wikipedia.org/wiki/Module:Listen itself has few own attributes like "plain", "embed" [00:26:29] and passes "pos" over to {{side box}} [00:26:41] So, modifying addPositional('size') to addPositional('size, rozmiar') should work, right? [00:27:11] nope [00:27:17] it needs to be implemented there [00:27:58] There meaning Module:File link? [00:28:11] yes [00:28:21] In it there's "addPositional('size')" I mentioned above [00:28:27] addPositional('rozmiar') will work, but size will not be accepted [00:28:42] I need both for backwards compatibility [00:28:58] (currently {{Listen}} on pl.wiki already uses English [00:29:30] so there is no "easy" fix [00:29:42] So, there's no way to add aliases? [00:30:02] I don't think so, unless there is some "args" hack [00:30:26] :/ [00:32:24] Halibutt: probably one could write a simple iterator going over 'args' and translating all Polish names to English [00:32:48] but it needs to be smart to handle file1 file2 file3 as well (plik1 plik2 etc) [00:33:44] saper: since {{Listen}} is already using English, I'll stick with English for now then. [00:34:35] would duplicating the args at File link work? [00:35:01] say, addPositional('size') and addPositional('rozmiar'), and then making them aliases further down the line [00:50:57] Halibutt: well it's a lost opportunity there [00:55:14] saper: what do you mean by lost opportunity? [01:02:43] it should fixed in one place and not hacked somehow later I think [01:03:12] ideally the changes should be given to enwiki as well [01:42:10] saper: true. I have no idea how to do it though [08:57:04] Do you use custom fields on the phabricator instance? [09:44:40] see #wikimedia-devtools [12:36:05] What's the name of the extension that lets me use Wikimedia Commons images on a wiki to which the extension is installed? [12:39:34] InstantCommons ? [12:42:15] it's not even extension [13:03:24] Thanks [13:43:33] hello there :) When i am trying to login on to phabricator; i get the following error : 1.(i) I will improve UX of the webpage to make it more user friendly. [13:43:33] (ii) integration of arduino library for those users who want to shift from arduino to beagle-board. [13:43:33] (iii) tutorials of beagleboard X-15 to explore its features. [13:43:34] (iv) a simulation software for support if one doesn't have beagle-board then can run the code and test it which also helps in increase in contributors. [13:43:34] 2. It will help for the younger generation to easily get started with beagleboard and to really run the code onto it and feel the difference of working and processing with other microcontrollers and microprocessors. It will also help to evolve new projects to help the society become more develop and modernise. [13:43:39] 3. I will primarily want to beagleboard X-15. [13:43:41] 4. My projects will compromise of [13:44:43] mistakely written [13:45:22] When i am trying to login into phabricator : https://s24.postimg.org/5zaseftz9/Screenshot_from_2017_01_05_23_37_25.png [13:46:42] huh. [13:47:38] sucode_: hmm, if seems your mediawiki.org account is blocked? [13:48:12] Then MatmaRex , What should i do now ? [13:49:09] sucode_: you were blocked for 3 days for "Inserting nonsense/gibberish into pages": https://www.mediawiki.org/wiki/Special:Contributions/Meets2tarun [13:49:19] sucode_: contact the person who blocked you and appeal the block, i guess [13:52:45] MatmaRex, I got the person's name who has blocked me, then what is the way to contact the person [13:53:50] https://www.mediawiki.org/wiki/Special:EmailUser [13:59:25] Thanks MatmaRex [14:20:40] MatmaRex, i am unable to leave a message and the page said that you are blockde [14:20:48] blocked* [14:33:22] sucode_, which page are you on? [14:33:40] link welcome. [14:35:00] andre__, i didn't get the what page you are asking ? [14:35:27] sucode_, you wrote "i am unable to leave a message" [14:35:34] I asked to explain what and where. [14:35:46] If you are unable, explain why. :) [14:35:47] andre__, https://www.mediawiki.org/wiki/User_talk:Shirayuki [14:36:05] that's not the page that Matma proposed. [14:36:17] see 43 minutes ago in this channel. [14:36:50] see "Email this user" in the side bar [14:38:28] sucode_: Why were you allegedly inserting gibberish into pages? [14:38:47] andre__, the link given by MatmaRex said that i cannot email this user [14:39:15] Yvette, that not garbage . [14:40:06] Yvette, its under the task https://phabricator.wikimedia.org/T93380 [14:42:37] sucode_: I unblocked. [14:44:55] I just don't see any "garbage" in general in the user contributions log. [14:45:03] so I'm still confused why sucode was blocked :( [14:45:19] Yvette, Thanks but i didn't get the reason; i have done the editing Manual:Huggle to my best and every content is correct and the reason to revert back the changes; [14:45:22] sucode_: maybe you could ask Shirayuki on their talk page for clarification [14:45:36] andre__, sure [14:46:46] Shirayuki is a bit trigger-happy. [14:47:02] He/she still hasn't responded to my previous note about overzealous page protections. [14:48:22] Yvette , Shirayuki has also deleted my edits; thus all progress get lost [14:48:46] sucode_: edits on which page? [14:50:22] Not deleted, just reverted. [14:50:28] You can copy that page to a user subpage and work there. [14:51:24] andre__, https://www.mediawiki.org/wiki/Manual:Huggle [14:51:41] sucode_, ah. It's just a revert. [14:51:51] Nothing was "deleted" from the history or such. [14:51:58] yeah [15:26:27] Hi, did anyone experience undefined method error with DatabaseMysqli::likeToRegex() when installing mw? [15:26:50] just tried to install 1.28 and it says that method is missing [15:32:23] hello [15:32:31] where would be a good place to ask for a query? [15:33:20] a_legit_nickname: hmm, well, that method definitely is missing. and it looks like we indeed are trying to call it in some cases. [15:33:48] i'm not familiar with that code, but it's probably a rare case, i installed MW myself a few days ago with no problems, and no one noticed this before you [15:35:12] i searched code on github and there was only on mention about this method, in MysqlInstaller.php [15:35:19] *one [15:35:58] a_legit_nickname: yeah, that's what i'm also seeing. i'm now trying to find out if that method ever existed, and if so, when it was removed [15:37:08] a_legit_nickname: can you file a bug about this? [15:37:10] !newbug [15:37:10] https://phabricator.wikimedia.org/maniphest/task/create/ [15:37:55] and https://mediawiki.org/wiki/How_to_report_a_bug [15:40:06] just noticed that the install works fine with xampp on my pc [15:40:20] maybe it's a problem with hosting then? [15:43:04] a_legit_nickname: it's definitely a bug in mediawiki, but i think that code is not usually executed. it's in the function checking whether you can create mysql user accounts from the installer [15:43:15] i'm not sure why would the installer even do that, to be honest [15:47:56] i wonder if commenting out part of method from line 314 and returning false will work [15:48:17] probably [15:49:07] ostriches: hey, do you know what Database::likeToRegex() is supposed to do? it's a non-existent function that you used in your 2010 installer rewrite :D and just now somebody has hit the code path that calls it for the first time ever (in MysqlInstaller::canCreateAccounts()) [15:52:34] Nope, I don't remember [15:53:11] oh heyyyy, i found it: https://phabricator.wikimedia.org/rSVN45497 [16:00:54] added the bug: https://phabricator.wikimedia.org/T154670 [16:10:34] thanks [17:32:46] Hi, I need to page thru a query until the end but has I increase offset the query starts to timeout at offset 200K [17:32:47] can seem to find a way to "scroll" thru a query result [17:32:49] any help? [17:39:41] hugosoares, is that a question about the API? [17:43:49] yes it is [17:44:38] specific SPARQL query API [17:50:44] hugosoares: please don't ping me in private - thanks :) If someone knows the answer, they will reply here [17:52:47] Thanks [18:31:00] for the life of me i cant get php to show up with mysql [18:31:02] driver [18:31:15] Could not find a suitable database driver [18:31:32] php -m | grep sql shows nothing [18:31:51] i have php56-php-mysqlnd.x86_64 in my yum list installed [18:50:30] sudoritz: i think you are supposed to use the mysqli driver these days... [18:51:50] i cant even find it lol [18:52:58] but if you have mysqlnd installed, php -m should show it... [18:53:12] *shrug* [19:07:15] Hello everyone [19:08:37] When ever I try to upload a file to my own wiki, I get "500 Internal Server Error". How do I get a glimpse of what the problem might be without having root access to the server it runs on? (I can view files, but I have no root privileges. The server belongs to a friend of mine, who is away at the moment.) [19:09:21] It's nginx/1.9.7. [19:13:35] try enabling debug log and stuff [19:13:37] !debugging [19:13:37] 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 [19:22:46] Eh... not much of use. I still only get "500 Internal Server Error - nginx/1.9.7". [19:22:57] If only I had access to /var/log/nginx [19:23:50] Is it possible to replace a file via command line? [19:29:30] Lol, yeah, it is possible. I just did that. [22:08:03] @seen Reedy [22:08:03] divadsn: Reedy is in here, right now [22:08:59] Reedy, when using your nickname in a post, can I use your real name, or is it somehow private? [22:09:23] My real name is fairly widely known :) [22:13:40] Ok, I am asking because your Wiki page isn't showing your name ^^ [22:15:04] Well, you obviously found it somewhere... ;) [22:15:32] It's on GCI isn't it? [22:18:10] Reedy, yes ;) Are you native English speaker? [22:19:09] I am [22:19:15] I'm not sure what you're trying to implt... :P [22:19:43] imply [22:24:53] Reedy: That. ;-) [23:24:55] andre__ are you still up?