[00:51:01] Where do I edit the {{languages}} template? [01:06:43] nm found it [03:30:46] What's with "Your language setting Canadian English is poorly supported. It loses many interface messages. " [03:30:53] Like isn't that the point of fallback languages? [03:31:26] Yes. [03:31:28] That seems silly. [03:33:05] bawolff_: where's it coming from? [03:33:13] Special:Preferences [03:33:18] Just a second, looking up the code [03:33:58] ueslang=qqx is a well supported language i guess [03:34:16] It looses many interface messages is weird phrasing too [03:34:38] That string doesn't seem to be in mediawiki.. [03:35:05] https://en.wikipedia.org/wiki/MediaWiki:Preferences-summary/en-ca [03:35:23] Wikipedians being silly [03:35:33] ................ [03:35:49] that's not even true anymore is it> [03:35:51] ?* [03:36:00] you see the local override regardless of what language it's in [03:36:48] https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=641276142#%22Your_language_setting_British_English_is_not_recommended.%22 [03:36:58] I'm never sure how overrides work [03:37:25] I don't think local overrides override for interface messages [03:37:49] I don't know [03:39:40] People should just change the english translation [03:40:00] and if its an actual customization, they should use a content message [07:30:46] teamconnect it is something mediawiki related or not? [08:10:06] heeeeeyyy [14:03:24] Is it possible to somehow query for how many times a template variable has been set? [14:08:17] harmaahylje: no [14:25:10] Platonides: ok, thanks [14:25:32] I managed to do that by exporting the desired pages as XML with the templates. [15:24:32] Hi! I've been unable to figure out why any uploaded videos are not getting thumbnails generated (mp4, webm, ogv). I'm on 1.27.5 on Debian Stretch. I have ffmpeg installed and php-imagick enabled. Regular images get thumbs just fine. What am I missing? [15:27:11] you have ffmpeg configured? [15:29:59] Platonides: I have $wgImageMagickConvertCommand set, and I was under the impression that mediawiki would use that command on video, too, since imagick wraps around ffmpeg. Are there settings that I'm missing? I haven't been able to find them.' [15:31:21] I don't think it will use $wgImageMagickConvertCommand for videos [15:41:20] I've been unable to find anything on the subject except for extensions :( [15:44:13] not 100% sure, but I don't think mediawiki even has any special support for videos without an extension; pretty sure it just treats it as any other arbitrary file type that isn't an image (i.e. a binary blob that it doesn't do anything with) [15:46:03] cysill: did you install https://www.mediawiki.org/wiki/Extension:TimedMediaHandler ? [15:48:10] I did not... I was trying to avoid extensions. I guess I was wrong to assume that it was in core. What is https://en.wikipedia.org/wiki/Hindenburg_disaster_newsreel_footage using? [15:50:08] that's using Extension:TimedMediaHandler [15:50:25] cysill: avoiding extensions in mediawiki is a *really* bad idea [15:50:43] a lot of the fancy stuff you see on wikipedia and elsewhere is only possible using extensions [15:50:52] Skizzerz: I meant avoiding extensions in lieu of using built-in functionality if it's there. [15:50:56] Anyone here using a WAMP server to run Scribunto? [15:51:17] Yeah, we don't have any built in video support [15:51:35] other than saying [[media:FileName.ogg]] which directly links to it, and you hope your browser can play it [15:51:57] So the thumbnail that is shown in the above article is from an extension? I'm fine with having the browser handle the video. [15:52:19] Yes, Wikimedia uses TimedMediaHandler [15:52:30] Which makes the thumbnail, and provides a pretty player [15:52:48] And does low bandwidth transcodes, possibly in multiple formats, that sort of thing [15:52:59] cysill: at the bottom of that extension page link I gave there's a box that says it's in use on wikimedia; that means that those extensions received a thorough security review, etc. and likely won't horribly break things if you install them [15:53:03] Also, add a JS codec if your browser doesn't support VP8 [15:53:27] * bawolff used to work on TimedMediaHandler a long time ago [15:53:59] bawolff: Thanks very much for that information, that's very helpful. [15:54:32] The extension is much better now then when i used to work on it [15:55:30] It'll be even better when we finally move to VideoJS for clientside playback. [15:55:46] bawolff, Skizzerz: Thanks for the help. [20:10:12] hi [20:12:02] I need to add age in this format Month day, year (age number) [20:12:12] what would you guys advise to automate it? [20:13:28] like add something|=month-day-year [20:13:30] or something [20:13:30] ? [20:34:08] "Script error: No such module "age".)" [20:34:48] !wptemplates [20:34:49] To copy templates from Wikipedia, use Special:Export and check the "Include templates" option to get all the sub-templates, then upload the file with Special:Import on your wiki. You'll also likely have to install the ParserFunctions extension, Scribunto extension and install/enable HTML tidy. You also might need some CSS from Wikipedia's Common.css. You'll also need a lot of... [20:36:17] right [20:36:22] i remember that now [20:36:58] one more thing please [20:37:03] i want to grab all that Age [20:37:22] could you provide with me this particular example? [20:37:46] do i add Template:Age on category? [20:41:48] ok its coming [20:44:36] is it possible to import a template from command line [20:44:37] ? [20:46:32] importDump.php [20:46:39] ok thanks [21:12:11] bawolff: i imported it [21:12:25] but it says again Script error: No such module "age". [21:14:09] ideas? [21:16:01] maybe some sort of content handler issue [21:16:42] explain please [21:22:46] like it imported in wrong namespace or wrong content model [21:22:55] * bawolff in the middle of something else, sorry [21:23:16] ok [21:23:17] i have this [21:23:22] Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted [21:23:26] that might be it [21:24:47] That's definitely not helping things [21:25:09] probably a php config issue [21:25:47] make sure that proc_open is allowed in php config, etc [21:25:58] e.g. https://www.mediawiki.org/wiki/Extension:Scribunto#cite_note-1 [21:26:02] and similar things [21:28:22] but it seems dangerous [21:28:52] If an attacker is in control of your php, you are screwed anyways [21:28:58] regardless of what you restrict [21:35:40] yeah, disable_functions is a security misfeature [21:35:53] it doesn't actually protect you from anything [21:36:27] besides casual script kiddies [21:36:47] and even then there's a lot of damage that you can do in PHP with things that you pretty much have to always have enabled [21:38:13] ok thanks [21:43:13] although proc_open [21:43:21] isnt even on open_basedir [21:43:30] unless proc_open = popen? [21:55:55] biberao: disable_functions, not open_basedir [21:56:06] and yes, the two are synonyms [22:00:35] Skizzerz: i only got popen on open_basedir [22:00:56] disable_functions [22:00:57] sorry [22:01:57] unless proc_open = popen? and yes, the two are synonyms [22:02:26] yes [22:02:28] thank you [22:07:39] but still not working [22:07:42] same error [22:54:07] Hey, if I'm setting up a mediawiki instance for an org and want to restrict user creation access to certain people, what's the best way to do so? [22:58:35] MtDu: $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['accountcreator']['createaccount'] = true; [22:58:44] then add people to the accountcreator group in Special:UserRights [23:00:36] Cool, thanks! Skizzerz [23:16:22] What does this statement mean? "To enable file uploads, change the mode on the images subdirectory under MediaWiki's root directory so that the web server can write to it. Then enable this option. [23:16:22] " [23:18:54] In unix based systems, there's a command called chmod [23:18:58] which changes permissions [23:19:23] you need to make sure mediawiki (usually user www-data) has the ability to write to that directory, so it can put pictures there [23:22:38] I have an old mediawiki installation and I'm trying to upgrade it. I extracted the mediawiki snapshot 1.31 on top of the old one, and when I visit the site, it says "MediaWiki 1.28 requires at least PHP version..." [23:23:03] I expected it to say v 1.31. [23:23:26] lmat: better to do it in entirely different directory [23:23:40] otherwise you might have a mix of different version files that conflict with each other [23:40:09] So what's the command if I wanted to get www-data to be able to write to something [23:40:11] bawolff_ [23:42:22] assuming that apache/php/mediawiki is in the group that owns the directory (maybe not the case by default, may need to change it with chgrp), it would be chmod g+rwx images [23:57:10] Skizzerz: i was right [23:57:23] its not disable_functions