[00:00:18] or to spam people in irc ...# [00:04:12] rillke, have you tried using Vagrant? You probably wouldn't have to worry about PHP/composer versions if you used that. [00:07:06] FunPika, stopped using it when it went terribly slow due to spawning multiple PHP processes per second, and had to wait 10s for a page to load [00:07:49] you know whether this has been fixed in the meanwhile? and xdebug- is it possible to use it again? [00:10:12] I don't think I've had any problems with it slowing down on me in the past. I haven't used xdebug recently so I would have to check on that. [00:13:34] FunPika, there was an issue with the source code matching because not all files were exposed through shared directories to the host system [10:07:49] Hey guys [10:08:17] hi. [10:08:21] I have an article on my mediawiki install where I'm embedding a bunch of other articles (as an essay) [10:08:47] I've made a simple template for embedding, but it also embeds the "see also"-part [10:09:00] Which is kind of annoying because it ruins the layout of the main article [10:09:12] I'd rather just not embed the see also at all [10:09:24] Any tips for where I should be looking to find something like this? [10:09:40] Or anyone knows how I can embed only parts of an article into another article? [10:11:42] pttrsmrt: you need to split the part in a standalone article / template and include that part in both [10:12:07] so you get [[Some_Part]] then in [[Article_A]] and [[Article_B]] inject the "some part" with {{ [10:12:13] {{:Some_Part}} [10:13:31] pttrsmrt: another way is to use the in wikitext [10:13:42] that prevent the enclosed text from being included [10:14:01] so in [[Article_A]] you would wrap the See Also section with == See Also == [10:14:06] hashar: You mean I need to create a whole new article with the part I want to embed? But doesn't that kinda ruin the whole purpose of embedding? [10:14:17] and when you include Article_A with {{:Article_A}} , the see also would not be shown [10:14:18] Yeah, I thought of noinclude [10:14:30] But it feels more of a hack than a solution [10:14:32] no include is probably the best way to achieve it [10:14:47] not a hack! that is well supported and used everywhere ;} [10:15:08] pttrsmrt: here for example https://www.mediawiki.org/wiki/Template:Git [10:15:13] i know how to algo it correctly, want to were to start from [10:15:16] that is a template you can include with {{Git}} [10:15:19] hi working @bug :27854 : Http::isValidURI is too lax provideURI Http::isValidURI [10:15:23] the page shows a nice documentation [10:15:32] but the doc is not included if you {{Git}} [10:15:46] Yeah, I know, but what if I for example want to embed it somewhere else with the 'see also' part? [10:16:09] It just seems like a short-sighted solution - hence a hack [10:16:18] do you actually want ? :} [10:16:38] But maybe I'm thinking too much like a programmer and not like a wikiwriter [10:17:35] Well, I don't really have time to but together some regex-magic or lua-code, so I'll go for the noinclude-solution for now. [10:17:49] yup that is probably good enough for immediate needs [10:17:55] Thanks a bucnh for your quick help, hashar [10:17:56] you can figure out a better solution later on ;D [10:18:18] Yeah, I'll put it in the pool of all those other potential better solutions :p [10:18:42] LUA modules are also quite powerful [10:19:19] the project got started because the templates had too many crazy meta programming going using parser functions and inclusions [10:19:20] Mhm, been wanting to look into them. I really like lua, but haven't had a project to spend time with it. [10:19:34] so the text ended up being mostly curly braces making it hard to understand / tweak [10:19:43] Dude, can imaginge. [10:19:46] *imagine [10:20:11] I'm having a really simple setup, but already it's getting really curly. [10:20:56] pttrsmrt: the hello world: https://en.wikipedia.org/wiki/Module:Bananas :} [10:22:02] Looking good! Simpler than I thought [10:36:59] were do i find defination of preg_match() function [10:38:57] Hello. I'm doing a survey on visual editor. Please fill up this form http://goo.gl/forms/sUwZPE4JvX. Thanks [10:48:51] were to post solution for bugs [10:48:56] ????? [10:49:54] srijan_: hi, you probably want to announce that survey on wikitech-l mailing list [10:49:58] rasrajat: on the bug report ? [10:50:15] https://phabricator.wikimedia.org/ [10:50:33] okay. I will. Thanks. :) [10:54:25] hi,i had fixed the bug wanted to review it . [14:21:23] I have a vagrant installation of mediawiki. Till yesterday, vagrant up used to work correctly. Now, going to 127.0.0.1:8080 after vagrant up gives Service Unavailable. vagrant provision gives the following errors: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm' returned 100, Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm-tidy' [14:21:23] returned 100,Error: /Stage[main]/Hhvm/Package[hhvm-tidy]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm-tidy' returned 100, similar for hhvm-luasandbox, hhvm-wikidiff2 and hhvm-fss. [14:22:06] Any idea how to solve this? [14:27:57] I did a 'vagrant git-update' followed by './setup.sh' and vagrant provision, but the same errors have persisted. [16:26:35] aashaka: That error should be fixed by updating your mediawiki-vagrant checkout itself. So `git pull` and then `vagrant provision`. See https://phabricator.wikimedia.org/T129343 [16:46:34] that solved the problem, thanks [17:13:36] I can't access [[en:MediaWiki:Gadget-popups.js]]. It takes forever. But getting to [[en:MediaWiki:Common.js]] takes less than a sec. How could it be?? [17:16:27] is it only me, or should I report it in phabricator? [17:16:44] interesting. same for me. [17:17:06] maybe it's trying to syntaxhighlight it and something's hanging in there. i can see the page text here: https://en.wikipedia.org/wiki/MediaWiki:Gadget-popups.js?action=edit [17:17:09] ori: ^ [17:17:16] eranroz: please report it, yes [17:17:23] and cc ori :) [17:19:02] MatmaRex: 10x [21:38:19] hi, is it somehow possible to get all passed arguments to a template as a string in lua? if I have {{template|blabla|huhu|||whatevr}} to get a string "blabla|huhu|||whatevr" ? [22:11:08] qchris_wmf ? [22:11:42] or without wmf ? [22:23:34] hey guys, quick question, is there a way to add an image to a page using an image link? or do i have to upload the image to the wiki? [22:24:22] are you in control of the LocalSettings.php, Smokie ? [22:25:20] rillke, yes, im running it for personal use at home on a VM [22:26:09] !$wgAllowExternalImages [22:26:20] Well, https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages [22:27:24] !wg AllowExternalImages [22:27:24] https://www.mediawiki.org/wiki/Manual:%24wgAllowExternalImages [22:28:19] ah, thanks :) https://www.mediawiki.org/wiki/Manual:Linked_images#External_image_syntax <-- ^^ Smokie [22:29:52] thanks guys [22:30:53] Leah, can you create WM-Git repositories and are you willing to? [22:31:15] Smokie, you're welcome. [22:31:43] rillke, i cant find it in my localsettings file, should i just add it manualy? [22:32:22] Smokie, yes. Default options are not necessarily created by the installer [22:32:41] But really make sure you understand which implications this has. [22:34:16] rillke, what implications? [22:34:41] to be honest, since im running this at home behind a closed network i assumed there is very minimum risk [22:34:49] if someone else can edit your wiki, they could add tracking images etc. [22:34:57] yeah, indeed [22:35:42] thanks for the warning though.. thats good to know if i ever run it on the open internet [22:36:01] one last thing, is this the right syntax: $wgAllowExternalImages( 'true' ); [22:36:49] assignment: $wgAllowExternalImages = true; [22:36:52] is suppose [22:37:01] hi, is it somehow possible to get all passed arguments to a template as a string in lua? if I have {{template|blabla|huhu|||whatevr}} to get a string "blabla|huhu|||whatevr" ? [22:38:11] sure, frame.arguments or frame.parent.arguments contain them and they just need to be concatenated [22:38:52] rillke: I meant without it [22:40:15] auvajs, what's the issue? it seems to be a one-liner? table.concat( ..., '|' )? [22:40:52] rillke: ok, never mind :) [22:41:52] thanks a lot rillke.. worked like a charm [22:45:11] auvajs it just gets more difficult with named parameters ... but if you need an expert, a-no-mie is one [22:46:38] rillke: I'm a total beginner now [23:09:37] rillke: There's a requests page somewhere. [23:09:46] rillke: You can always start on GitHub and then import later, if you don't want to be blocked. [23:09:54] Or you can request an empty repo. [23:11:56] did all this already, but I can't invite someone for CR on GitHub, or at least chances are not that high that a WMF employee would review there [23:14:07] I think Chad is still the only person doing Gerrit repo creations. [23:41:05] rillke: https://www.mediawiki.org/wiki/Git/New_repositories/Requests [23:41:59] rillke: is this for UploadsLink? I can help with getting that reviewed/deployed [23:42:29] legoktm: Thank you so much! [23:42:44] Yes, it is for UploadsLink [23:43:07] Help and description pages are already written [23:43:14] commit is in GitHub [23:43:26] what else can I prepare? [23:43:55] https://github.com/Rillke/UploadsLink/commit/48812f7d84ea9148724da47eef87157152c72892 <-- this commit; I used SandboxLink as the base [23:58:07] rillke: have you read through https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment and https://www.mediawiki.org/wiki/Review_queue ?