[02:25:44] Hello. Is there anyone who can answer my question regarding MediaWiki API? [02:26:33] Hello? [02:26:40] Is anyone online? [02:37:49] deguBurger Do you know about MediaWiki API? [02:42:43] Considering it's the middle of the night, I doubt it. [02:43:01] Asking random people joining is unlikely to be productive either. [02:46:05] Hi Guest49939. [02:46:32] Guest49939: It's difficult to answer a question you haven't asked. What's your question? [02:47:00] Thank you for your concern. [02:47:15] I have previously used MediaWIki API for many times. [02:47:42] There is a parameter called "continue" which is very straightforward. [02:48:48] However, today I have an application in which I should use "Usercontribs", and instead of continue, it has "uccontinue". I searched a lot a was not able to figure out how to use this one. [02:56:01] I also have one more question: What is the difference between edit "size" and "sizediff". I can see the definition, but the difference between the two are not clear to me. [02:57:11] IIRC, size is the size in bytes of the entire page, after the user's change; and sizediff is how many bytes the user added/removed [02:57:12] I think [03:00:57] Thank you. That's reasonable, but the documentation defines it as size: Size of the edit. [03:01:38] sizediff: Size delta between the edit and its parent [09:42:17] hello [09:42:26] is there a {{}} tag for English ? [09:59:08] GeekShadow: on English Wikipedia? {{en icon}}? [10:06:02] Hi, trying to get the Scribunto extension working with Infobox, but I get this error: Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive. Any idea? Under phpinfo() disabled_functions it says no value, so it should be working [10:09:55] stalkr_, review php.ini [10:11:09] https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Lua_error could help [10:11:12] LuisMiguel: I don't have access to the php.ini file unfortunately, only a web interface (so only a few fields) [10:12:30] LuisMiguel: but my webhotel has said it should be enabled, so I don't really understand the error. The directory is 755 too [13:29:42] https://dpaste.de/fwXr [13:41:35] ankitaa: You should describe your problem statement here, not in a paste. [13:44:35] I get the error : " Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive " when template is invoked. But in my instance "proc_open" is not added to disable_functions in php.ini. Then is there another reason for this error? [13:46:57] Hey everyone. I just imported the "stub" template from Wikipedia to my wiki and it says "This article is a stub. You can improve Wikipedia by expanding it.". My question is, how do I change it from "Wikipedia" to my wiki's name? [13:50:18] edit the template [13:50:53] Yes I did that but I do not see anywhere that has "Wikipedia" in it. [13:50:57] also, have fun going down the rabbit hole that is wikipedia content :P [13:51:16] it's buried in there somewhere, possibly in another template [13:51:33] Yeah I already have been going down the rabbit hole :P [13:51:35] Haha [13:52:43] Hmm, I think I might have found it. [13:53:07] wikipedia is pretty much "yo dawg, i heard you like templates" [13:53:35] Heh, that is too true. [13:54:16] Got it! :D It was in module:asbox [13:54:51] Alrighty, thank you for your help! Time for me to bounce! :) [13:55:38] Bye bye [14:58:55] Hey. I'm pretty sure the code at http://www.mediawiki.org/wiki/Manual:Extension_registration#Migrating (if(function_exists) ...) is wrong. [14:59:37] Shouln't it warn if you DONT use wfLoadExtension instead of if you do? [14:59:59] I would fix it myself but I am not confident enough that this is right [15:21:21] jgroeger: hi! what looks wrong about it? [15:23:14] jgroeger: the function_exists call is to see if you're running a version of MW that supports extension registration as some people like to keep compatability with older versions [15:32:33] o/ [15:32:44] anyone here knows about using alternative free licenses in mediawiki? [15:37:03] legoktm, I understand. When running MW<1.25, this function never exists and thus the warning is never issued. However, on MW>=1.25, the function will exist, the extension is loaded and then a warning is issued [15:37:27] jgroeger: yeah. the warning is so people write wfLoadExtension('FooBar') directly in their localsettings.php [15:38:46] legoktm, instead of? [15:39:06] require_once "$IP/extensions/FooBar/FooBar.php"; [15:40:40] So this function_exists stuff is not in the LocalSettings.php ? [15:42:38] legoktm, and if so, why is it in the documentation? [15:42:56] no, this stuff should go in your extension entry point [15:43:18] ahhhh [15:43:20] see https://gerrit.wikimedia.org/r/#/c/201235/1/Citoid.php,cm for example [15:43:23] this is not very clear there [15:43:55] if I change the heading to "Migrating for extension developers" would that be better? [15:44:24] the "Usage" section is the one for sysadmins, and "Migrating" is for developers [15:45:01] "Migrating for existing extensions" ? [15:45:58] yes [15:46:07] legoktm, "Migrating for extension developers" is good [15:47:28] thanks [15:47:37] https://www.mediawiki.org/w/index.php?title=Manual%3AExtension_registration&diff=1558901&oldid=1509819 [15:47:41] :) [16:06:55] hey gang [16:07:13] I'm trying to add my css for my skin, but I can't get it to load. I've used: [16:08:08] https://dpaste.de/aCJ3 [16:08:27] I'm also trying to add an external CSS file, which is the second one [17:22:55] DanielK_WMDE_: by chance do you know if theres a "no-ip" antispam filter in mw by default? [18:03:51] how do I just add a CSS ? [18:08:03] Anyone with experience with MobileFrontend? [18:08:32] I'm trying to figure out, from within a hook-called function, if I'm in mobile mode or not. [18:15:16] Randomage, MobileContext::singleton()->shouldDisplayMobileView() [18:15:37] Thank you, I'll check that out! [20:22:00] So, I ran across this error on the REL1_25 branch. PHP Fatal error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in includes/profiler/TransactionProfiler.php on line 35 [20:24:05] hi Rosencrantz [20:24:09] Does anyone have any idea what that might be? To me it looks like it's not loading something properly somewhere, I'm just not sure where to go from there. [20:25:00] Rosencrantz: if you installed mediawiki from git, you need to install the required libraries separately. run `composer install` (after installing Composer itself), or clone the mediawiki/vendor repository into the vendor directory in mediawiki/core. [20:25:09] !composer [20:25:09] Composer is a dependency manager for PHP. MediaWiki uses it to include certain external libraries. See https://www.mediawiki.org/wiki/Composer for more details. [20:25:09] Ah! [20:25:40] mediawiki is supposed to output more helpful errors when you don't do it, though. [20:25:42] I had my own composer.json that I was using, didn't think to check for a new one before putting mine back in. [20:45:03] hey fellas, is this the right place to try and get help with gtkpod? [20:45:30] MatmaRex, looks like that worked. Thanks! [20:45:42] yay [20:46:19] ++ [20:46:35] gtkpod? doesn't sound mediawiki-related [20:47:17] for osme stupid reason their website told me to come here... guess i should have read a little deeper into it MatmaRex lol [20:47:32] link? [20:47:52] perhaps you needto join a different channel [20:48:10] i did [20:48:19] there is an actual #gtkpod channel [21:20:59] Anybody know the status of an epel 7 RPM (for RHEL 7)? [22:28:31] Hi. Does anybody know about Usercontribs in MediaWiki API? [22:34:54] presumably, yeah [22:41:01] Hi. Does anybody know about Usercontribs in MediaWiki API? [22:41:57] !ask | Guest59214 [22:41:57] Guest59214: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [22:46:28] I have previously used continue parameter in the API, but Usercontribs does not accept contineu. It has uccontinue instead and I don't know how to use it. [22:47:15] Hi. Does anybody know how to use uccontinue parameter of Usercontribs in MediaWiki API? [22:54:18] Guest59214: https://www.mediawiki.org/wiki/API:Query#Continuing_queries [22:56:29] Sitic: Thank you for your response. As I said, I have previously used continue, but API:Usercontribs does not support continue. It supports uccontinue. [22:56:45] And I don't know how to use uccontinure. [23:00:16] Guest59214: eg. https://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=Sitic&continue= and the next one is https://en.wikipedia.org/w/api.php?action=query&list=usercontribs&ucuser=Sitic&continue=-||&uccontinue=20150321210926|652927087 [23:02:50] sitic: Thank you so much. I have one more question: Would you please tell me the difference between these two: size: Size of the edit 1.16+ AND sizediff: Size delta between the edit and its parent 1.20+ [23:05:30] size: Adds the new size of the edit. sizediff: Adds the size delta of the edit against its parent. [23:06:07] so sizediff is the diff in size of the edit, size is the new page size if I understand it correctly [23:06:51] (in bytes) [23:56:52] Guest59214: So let's say I correct a typo (e.g. "Presdent" to "President") in the Barack Obama article [23:57:02] Before my edit, the size of that article will be something like 106457 bytes [23:57:07] After my edit, it'll be 106458 bytes [23:57:28] So 'size' will be 106458 (size after my edit) and sizediff will be 1 (how much the size changed because of my edit) [23:58:02] Or if I corrected "Hawaiii" to "Hawaii", the size would go down by one, so sizediff would be -1 [23:58:27] Ugh Guest59214 left :S