[03:16:46] Hello [08:23:46] <_hl_> Hello! [08:28:11] <_hl_> I am trying to use the mediawiki API for prefix searching (/w/api.php?action=query&list=prefixsearch) but am having trouble specifying filters for the results. Is there a ways to search only for pages that contain a specific subtitle? I would use this to do search suggestions on wiktionary.org, where only results of a specific langauge are returned. [08:28:57] You have looked at https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bprefixsearch [08:30:44] <_hl_> Yep, but those options don't allow me to filter the results by page content, which is what I would be looking for. I realise that this is asking for a lot, so chances are that such a feature doesn't even exist. But since I'm rather new to mediawiki, I wouldn't know for sure... [08:31:56] So... It can be used as a generator [08:31:59] !apigenerator [08:32:04] !generator [08:32:04] There is no such key, you probably want to try: !feeds, [08:32:06] ffs [08:32:36] https://www.mediawiki.org/wiki/API:Query#Generators [08:33:54] <_hl_> Ah I see. Thanks! [09:52:42] lkjlk [12:54:39] hello i am new here and i have questions about installing MediaWiki-Vagrant on windows [13:10:37] There was once an AWS extension [1], written by Dantman: and Tyler Romeo, but it was archived in 2017 for being unmaintained. Is there any advice / consensus at the moment on how to deploy or make MediaWiki compatible with the proprietary AWS environment? [1] https://phabricator.wikimedia.org/rEAWS83dcc320017771c30a884bf043d90e1c37ff6ef4#change-49YJ2DMvv51M [15:53:14] Anyone (especially from Denmark) know Rasmus Refer? Supposedly going public; offering stock in 'Wikisoft'. I smell a penny stock fraudster. [16:17:59] hi guys, im facing a strange problem in mediawiki, i edited by error a template by adding "aaa", then saved it, then restored it, in change history u can see when I deleted it "-4" [16:18:16] but its still showing "aaa" for a reason [16:20:06] Hello, I am trying to change author name in this https://gerrit.wikimedia.org/r/#/c/428059/ but unknowingly I am misgoing in a wrong way can anyone help me to change the author name in this patchset. [16:21:01] mobrovac: [16:23:06] Rasmus Refer is definitely a penny stock fraudster, and anyone contacted to purchase shares in Wikisoft should record the conversation and report it to local Secretary of State (US) [16:23:32] freephile: That is off-topic in this channel. [16:23:54] Gopa: When running "git commit", use the --author parameter. [16:24:47] andre__: I understand, but I think it's worth alerting people in the MediaWiki community since he's directly tarnishing the 'brand' [16:25:30] andre__: Thanks I will try once previously I never faced this issue. [16:26:11] freephile: I don't think that throwing in a random sentence without any context into some IRC channel helps anybody. What "brand"? "Wiki" is not a brand. And I have no "local Secretary of State" as this is not a USA-only IRC channel. [16:34:16] andre__: as a consultant who builds and develops solutions for business clients based on MediaWiki, I can assure you that 'wiki' is a brand. Every promoter good and bad tries to leverage the brand of Wikipedia. When one of my clients gets solicited by a fraudster to buy stock in 'Wikisoft' aka lose every penny; then I feel like it's helpful to put an immediate alert out. Since I'm familiar with US securities laws, I gave short, [16:34:16] explicit advice, with US in parenthesis -- knowing that A) this is rather off-topic and B) this is not a US-only audience. Let's not bikeshed this any further. [16:36:42] On topic: know any good extensions or current developments to make mediawiki compatible with AWS? [16:47:13] freephile: MediaWiki should be fully functional on an EC2 instance [17:02:38] Vulpix: It is. I'm interested ways that translate the MediaWiki architecture into AWS services which are (often by design) incompatible with a standard MediaWiki architecture. For example, Amazon offers S3 storage, while MediaWiki uses a hashed directory for file storage. Using https://www.mediawiki.org/wiki/Extension:LocalS3Repo, you can deploy a MediaWiki that uses S3 for file storage. [17:14:25] Hi - I can't check in this patch - https://gerrit.wikimedia.org/r/#/c/431436/ - because JSCS complains that (among other things) "Variable declarations must be the first statements of a function scope". [17:14:43] Apparently this is the "requireVarDeclFirst" setting in JSCS. (Which is an odd setting to have in the first place, in my opinion.) [17:15:49] Has this setting been activated due to some recent change in the Wikimedia setup? This extension's (VEForAll) .jscsrc file seems pretty standard: https://github.com/wikimedia/mediawiki-extensions-VEForAll/blob/master/.jscsrc . [17:22:13] James_F: ^ do you know ? [17:22:50] Yaron: We don't even use JSCS any more, but yes, that's absolutely one of the Wikimedia-wide coding conventions and has been for years. [17:23:12] Yaron: `"preset": "wikimedia"` pulls in about 100 rules like that. [17:23:38] Yaron: Might be better to jump to eslint (which replaced jscs a couple of years ago); eslint-config-wikimedia also has that rule. [17:23:48] * James_F checks. [17:25:03] James_F: not to get into a JS discussion, but it seems like such a strange rule - as far as I can tell, it doesn't even allow "var" declarations within a for loop. [17:25:54] Yaron: Specifically, added to the preset in https://github.com/wikimedia/jscs-preset-wikimedia/commit/3e8d9981eddc49e72977a381382b707bc2a7c350 in July 2015 with some justification there. But yeah, I appreciate that if you're not used to it you'll be surprised. :-) [17:26:26] Well, regardless of the benefit of that rule - how come it's never come up before for the JS of any of my other extensions? [17:26:36] Yaron: If you think we should change it, you can start a thread on https://www.mediawiki.org/wiki/Manual_talk:Coding_conventions/JavaScript [17:26:45] Yaron: Have you ever used the Wikimedia preset for jscs before? [17:27:53] I don't know... I think at least one of my other extension, Cargo, does: https://phabricator.wikimedia.org/diffusion/ECRG/browse/master/.jscsrc [17:28:42] Oh, yes, but a very old version of jscs back when the presets were still bundled in. [17:29:15] If you bumped to 3.x (the final version of jscs) you'd also need to import a versioned state of the Wikimedia coding conventions preset. [17:30:03] Yaron: See for example https://github.com/wikimedia/mediawiki-extensions-EditUser/blob/bb30dc9739cbcf1a6202241dfc78f3d02aec13f6/package.json which does this. [17:30:51] Aha! package.json - that's what I need to modify. [17:31:03] Or rather, that seems to be the simplest solution. [17:31:53] * James_F nods. [17:33:21] James_F: thanks, and maybe I will post something on that coding conventions page. [17:36:52] Always happy to help. ;-) [18:37:57] hi, im trying to save var ({{#vardefine}}) with pipe, and seems to be missing something : https://pastebin.com/nv5as0Ad, ive installed both extensions : https://www.mediawiki.org/wiki/Extension:Pipe_Escape & https://www.mediawiki.org/wiki/Extension:Character_Escapes [18:42:06] anyone?:) [18:42:36] niso: have you tried {{!}} ? [18:44:46] no, just googled that, ill add this to my wiki and try, ty [19:34:06] How does a basic user protect pages? [19:35:18] They don't, by default [19:36:33] Does one have to request permission? I would like to have the right to protect pages I've created. Is that possible? [19:36:52] On what wiki? [19:37:09] MediWiki [19:37:13] *Media [19:41:41] andywoj00: Your MediaWiki installation? Or on the website called mediawiki.org ? [19:43:07] The website called mediawiki.org. I'm not sure how to use the files downloaded and installed on my hard drive. [19:43:15] New as of today... [19:43:24] andywoj00, if https://www.mediawiki.org/wiki/Project:Requests/User_rights/Andywoj00 is yours than your plans are out of scope. [19:43:29] *then [19:43:49] andywoj00, see https://www.mediawiki.org/wiki/Project:About#What_MediaWiki.org_is_not [19:45:12] Got it. Thank you! [19:47:37] andywoj00: Those images should be very welcome on Wikimedia Commons though if the license fits. [19:48:47] But the "restricted from tampering" isn't going to fly [19:49:16] True that. [19:53:40] Maybe I chose the wrong verbiage. I'm looking for a viable alternative to WikiSpaces as it's closing down [19:56:33] andywoj00: so you want to either find another wiki farm, or else host your own wiki? mediawiki.org isn't for that, but there are numerous other wiki hosts out there [19:57:18] in terms of farms, wikia, shoutwiki, and mirahaze spring to mind although I'm sure there are others. For hosting your own, your first order of business is to find hosting [19:58:07] Agreed. I'm in the wrong place. Thanks for the feedback. [20:01:17] ill be glad for another help, im using the {{!}} for pipe escaping. combined with cargo and getting errors : https://pastebin.com/TnxZFeBT - anyone familiar with any reference that uses {{#var}} inside the cargo query? [20:01:22] He's gone [20:01:40] I could have hlped him there [20:01:42] Fuck he quit [20:03:20] It wants me to log him in [20:03:32] Can someone make a note on his talk page real quick please and get him back here? [20:04:09] Alec: who are you talking about? [20:04:20] Skizzerz: the andywoj00 guy [20:04:21] He just left [20:04:32] And his pages on mediawiki.org are linked above that [20:04:33] Why can't you leave a message on his talk page? [20:04:40] I don't have an account [20:04:55] this seems easy enough to fix :) [20:05:07] That's why I asked Skizzerz [20:05:18] Please let me know ASAP, otherwise he might never come back [20:05:31] you can make an account and post on his talk page, if you wish [20:06:02] Skizzerz: if you could please refrain from stating the obvious it'd be appreciated. [20:06:08] I dunno what to say to that. [20:06:33] Like .... "no really?" or a "thanks" - but even then how can I stop it coming through sarcastically. [20:06:37] We're not your slaves [20:06:40] ^ [20:06:43] Do it yourself if you want it doing [20:06:55] He might not come back even if it's done ASAP [20:06:55] Oh it's an entire stating the obvious department. [20:07:06] No but it increases the chances. [20:07:10] If you don't like it, you're free to leave [20:07:16] in the time you spent arguing, you could've done all of it yourself... [20:07:53] Leaving a channel because of 2 or more prats in it is not sound advice, Statistically speaking in a channel of 336 people "2" is a very low bar. [20:08:10] Well, you're the one calling names and swearing [20:08:12] It's likely over now, thanks anyone who put in an effort. Not those two. [20:08:17] prat isn't a swear word. [20:08:25] [22:01:42] Fuck he quit [20:08:27] No, it isn't [20:08:30] Oh fuck that :/ [20:08:35] Please behave [20:08:55] Anyway I've got stuff to do now. I'm going to go and do it. Shame I just missed him. [20:09:09] take care [20:09:57] If I were not taking care, you saying take care (dear random internet stranger) would not make me :P [20:10:00] Have a good night. [20:10:21] anyone familair with {{#var}} expansion inside cargo query and may help? [20:11:04] niso: I'm looking, but what you're trying to do might not be possible [20:11:11] Skizzerz: I was wrong [20:11:16] :( [20:11:19] I've been caught in an ISP block [20:11:19] Your IP address is in a range which has been blocked on all wikis. [20:11:19] The block was made by Tegel (meta.wikimedia.org). The reason given is Cross-wiki abuse. [20:11:20] Start of block: 14:59, 16 April 2018 [20:11:20] Expiration of block: 14:59, 16 May 2018 [20:11:20] You can contact Tegel to discuss the block. You cannot use the "Email this user" feature unless a valid email address is specified in your account preferences and you have not been blocked fro [20:11:37] (That's not me, I don't do anything on Mediawiki except read the docs) [20:11:45] 94.197.120.0/23 [20:12:29] Hey andywoj00 you came back! [20:12:31] Let's go to PM [20:12:37] Alec: #wikimedia-tech might be better as that channel is about Wikimedia wikis while this channel in theory is about the MediaWiki software. [20:13:20] andre__: it's a mediawiki software site ban - I wondered why I saw an edit button - I disabled that shitty WYSIW(SOMETIMES)G editor and got the text. [20:13:27] So there's a bug in the editor in that it doesn't show bans [20:13:50] Forgive the swear-word there, it's just NEVER worked for me :P [20:14:11] Hello, is it possible to send watchlist notification mails with Reply-To set to the email address of the editor who made the edit? I tried turning https://www.mediawiki.org/wiki/Manual:$wgEnotifRevealEditorAddress on but it do not work [20:16:14] Alec: Ah, so mediawiki.org, I see [20:18:15] andre__: it's not me BTW. Wikipedia has so many IP range bans it's insane, They block about 1/256th to 1/512th at a time of IPv4 address space - it's weird seeing it on Mediawiki though - I hope this guy was bad to apply a /23 (which isn't huge but evidently caught other 3 mobile users like <--) [20:18:47] Skizzerz how you check that? [20:19:04] messing around on my own test wiki [20:21:09] niso: yeah, looks like you can't inject parameters into other templates like that, the | goes through escaped until the very end [20:21:20] you can instead have your var define just the bit after where= [20:21:27] and then hardcode |where={{#var:t}} [20:21:51] there is no option to decide about the template evaluation order or something like that? [20:22:09] no [20:23:22] :( k tyvm for help [20:26:54] His wiki is closing, they have around a month and a half notice - I've offered them hosting in the meantime (provided it isn't a fucking massive project that'll destroy my mainly idle box and separate mysql box) - if any others end up here in the same situation please do forward them to me. [20:26:56] * keithzg[m] is still wondering if anyone knows why changes to an extension's code would not actually take effect on a MediaWiki server, kinda going crazy here! (Extension code is https://s3.amazonaws.com/gmcl-downloads/tmp/GMCLTests.tar.gz, simply changed the interwiki links being created from [[BugzID:#]] to [[Issue:#]]) [20:28:08] Provided it isn't like a "sexy child" wiki (or something illegal - you get what I mean) I'll do it. I usually do like educational-knowledge stuff (I learned through someone giving me hosting when I was young, I've passed it on) - but even if it's like some stamp-collectors. I can house them in the interrim give them time and options. [20:28:22] (Using an annoyingly old version of MediaWiki, 1.22.1) [20:28:36] Please please do do this. There's probably some very niche wikis about to be lost. [21:01:46] there is an option to get the length of rows from cargo query? [21:01:58] the amount of rows [21:24:51] theres any extension for auto complete when writing wikicode? [21:28:39] keithzg[m]: might be opcode caching [21:28:58] try restarting php (if php is running in a separate process, such as php-fpm), or restarting your webserver if php is integrated in [21:29:32] note that I didn't actually look at the code in question, but if nothing else seems to be working, that's usually a likely culprit [22:03:52] Skizzerz: Yeah, alas I've tried that already. Not running php-fpm on this server so I just restarted the apache2 service, and nothing. Even outright restarting the VM doesn't change anything. [22:38:39] hi, im finding myself write some of "low level" templates which enabled lot of params, the more "high level" templates just uses them with set of 1 param and the others are free. [22:38:57] there is option to pass like "global params" to avoid writing all of thjose free params? [22:39:13] like *args, **kwargs in python [22:58:23] niso: You mean default values? https://www.mediawiki.org/wiki/Help:Templates#Default_values [23:03:05] nope, i want to pass them along even if they arnt the default [23:06:24] lets say i have template {{basic}} with the params {{{a}}} - {{{e}, and i have the template {{first}} which call {{basic}} with {{{a=1}}} and all the other params are "free" so i imagine syntax like that (inside {{first}}) : {{basic| **| a=1}} [23:09:05] and how would {{basic}} know the values of the "free" parameters? [23:09:48] they will be passed by any magic syntax from a to basic, just as "copy paste" from the caller to a [23:13:40] In your example {{{a}}} is 1, so by "copy paste" {{{b}}} - {{{e}}} would also all be 1? [23:14:17] no, they will be same as they set before the call to a [23:14:48] "call to a"? {{{a}}} is a parameter, it cannot be called [23:15:06] lets say page "temp" call to {{first|a=1| b=200| c=300| d=400| e=500}} [23:15:08] call to first* [23:34:16] hi everyone [23:36:13] con someone help me with a proble on termux pls