[01:40:59] I'm trying to adapt a SpecialPage extension I wrote a couple of years ago so that it uses the new .json format. It shows up in Special:Version, but not under SpecialPages. Any idea how to start figuring out what I'm doing wrong? [01:46:09] Woozle: could you paste your extension.json file somewhere, like dpaste.de? [01:57:07] I figured it out. [01:57:35] You have to have a "SpecialPages": declaration in the extension.json file. [01:57:52] That ought to be documented somewhere... the documentation for the new format is extremely sparse in general. [01:57:56] AFK [07:41:34] ?? User::isValidUserName: '10.0.3.1' invalid due to empty, IP, slash, length, or lowercase [07:46:14] Nemo_bis: IP's are invalid usernames [07:46:33] * Checks if the input is a valid username, we don't want an empty string, [07:46:33] * an IP address, anything that contains slashes (would mess up subpages), [07:46:33] * is longer than the maximum allowed username size or doesn't begin with [07:46:34] * a capital letter. [07:46:58] Nemo_bis: Are you trying to make an anon user object for a specific IP ? [07:47:16] (if so, use User::newFromName( '10.0.3.1', false ); [07:47:57] I don't know what was being tried. :) I just opened [[Special:Version]] on a test wiki. I'll ignore that one, thanks. [07:51:29] Nemo_bis: I don't get that on my test install. Probably an extension doing something wrong [07:57:50] Yeah, go figure which one ;) [08:07:06] Fun! A single request to the wiki produces 70k lines of [deprecated] Use of wfMsgGetKey was deprecated in MediaWiki 1.21. [Called from wfMsgExt in /vagrant/mediawiki/includes/GlobalFunctions.php at line 1744] [09:14:14] ms406 [09:14:30] #ms406 [09:14:43] niiwosi [09:14:55] www.mr edu wpso.com [09:15:03] hooooooooo [09:15:08] eiiiu niws? [09:19:33] How can I help you? [09:25:14] Hi all, [09:25:16] Can someone please help me with the CSS to refer SPECIFICALLY to the Special:Preferences page? [09:25:17] I have placed some CSS into MediaWiki:Common.css which alters ALL pages, INCLUDING all special pages, EXCEPT for the Special:Preferences page. [09:25:18] For some reason the Special:Preferences page remains UNAFFECTED? :/ [09:25:37] aww [09:28:39] BradLee_: you need to set https://www.mediawiki.org/wiki/Manual:$wgAllowSiteCSSOnRestrictedPages to true [09:29:16] To apply it only to the preferences page, I would probably use the fact that body has a "mw-special-Preferences" class. I.e. "body.mw-special-Preferences" and nest your selectors in that. [09:30:57] MediaWiki:Common.css / skinname.css does not load on Special:Preferences, Special:Login etc unless activated with that setting [09:31:14] this is a somewhat recent addition/restriction [09:31:33] I understood that bit. I mean after that setting is active, the stuff would need to apply only to the preferences page, and I'm saying how I would do it. [09:31:55] @Vulpix: That looks like the culprit. What are the dangers of setting this to "true" though? (Since they obviously had a good reason for disabling it by default. [09:33:05] To avoid people breaking important pages. [09:33:10] Presumably :) [09:33:46] there's no real danger, unless a rogue admin of the wiki adds a malicious CSS rule that could stole credentials or something... but that's probably impossible with CSS, only with JS [09:34:00] Well yes, there's that obvious answer... but I meant security-wise, does it prevent any vulnerabilities? [09:34:48] @Vulpix: Ok. So am I better off just modifying the actual skin? [09:35:18] apparently, there's a possibility of executing JS from CSS... [09:37:03] BradLee_: if you mean modifying the skin's CSS, no, don't do that. Instead,create your own ResourceLoader module and load it on every page [09:43:32] Hello! I'm new to open source and I'd like to help out by fixing some bugs. Can I get some advice on how to start? [09:44:50] https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker used to be a nice resource [09:47:37] thank you! [09:48:10] No worries. You're most welcome to ask loads of questions here about the process as well as about status of various extensions and subprojects related to MediaWiki, here. [10:22:42] Would be nice to add cc/assignee to some reports I filed against extensions without component. (Many fatals.) https://phabricator.wikimedia.org/maniphest/query/BMuj0l2SyenO/#R [14:10:17] <_44Kbps_> Hi all! Has anyone is using yasec calendar extension? https://github.com/improper/mediawiki-extensions-yasec [14:10:50] <_44Kbps_> I'm creating an Event on the wiki and it don't appear on the calendar [14:12:14] <_44Kbps_> http://pastebin.com/cUhiYxp4 [14:13:10] <_44Kbps_> The wiki: http://f53hack.ddns.net [14:17:26] <_44Kbps_> hello¿ [14:21:35] _44Kbps_: That improper seems a bit ominous. Must You use that particular calendar? Why not a calendar from usual mediawiki extensions? [14:24:00] <_44Kbps_> I have no extensios for calendar on extensions package on debian [14:25:47] _44Kbps_: https://www.mediawiki.org/wiki/Extension:Calendar [14:26:37] _44Kbps_: That yasec calendar is for Mediawiki 1.22. What version is Your Mediawiki? [14:32:43] <_44Kbps_> Ups, fail, I'm running 1.19 [14:33:02] <_44Kbps_> What calendar extension recomends to me? [14:36:31] <_44Kbps_> Seems there are not calendar extension on the default package mediawiki-extensions on debian [14:44:04] <_44Kbps_> I will take a look on a upper versions, thanks all! [14:49:29] Hi, I'm trying to write my own extension to add a magic word that will return (for now) just some random text, but I get an error everywhere that the magic word I added is invalid. Can anyone help? [14:58:45] krispbacon: try rebuildLocalisationCache.php --force (in maintenance folder) [15:40:07] krispbacon: Make sure that your i18n.magic.php file is wellformed, and registered properly [15:44:14] Hello, I am a newbie and want to contribute for mediawiki but I don't know how to start ? [15:44:30] !start | rakhisharma [15:44:30] rakhisharma: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [15:50:52] wm-bot : thanks for the link [15:50:52] Hey rakhisharma, you are welcome, but keep in mind I am just a stupid bot, it was actually Vulpix who helped you :-) [15:51:39] heh [15:51:51] wm-bot: then thanks to Vulpix. [16:52:55] hi everyone [16:54:31] i would like to participating in opw this year [16:54:55] could anyone point me how to proceed for this winter session [16:55:58] hi, is there any good forum for MW/SMW questions? [16:57:26] Flexman: yes, you can also try https://www.mediawiki.org/wiki/Project:Support_desk [16:59:56] Vulpix: am i on the right channel for opw ? [17:00:38] Nesaa_: yes, it should be the right place. Let's see if we have more info... [17:00:39] !opw [17:00:39] https://www.mediawiki.org/wiki/Outreach_Program_for_Women [17:00:41] Vulpix: thanks [17:01:14] thank you Vulpix [17:01:38] i wonder if it is possible to group categories in multiple languages [17:07:34] hmpf crossposting [17:23:20] vulpix: Do I put that as a require_once in localsettings or something? [17:24:36] krispbacon: yes, although starting from MediaWiki 1.25 there's a new extension registration system. See https://www.mediawiki.org/wiki/Manual:Extension_registration [17:47:53] Vulpix: It says it must be ran as a script in command line, and I don't have access to that for this server. Also on MediaWiki 1.24.1 [17:48:53] so you're developing an extension and you don't have command line access? that's bad [17:49:11] it's just a simple one that will return a value from a query on the db [17:51:39] oh wait, found a way to get access [18:08:26] welp, tried to get SSH access, whole site went down for me... [18:17:14] fail2ban hehe [18:18:08] you should install MediaWiki in your computer for developing and testing [18:40:53] Vulpix: Heh, !opw pinged me due its similarity to another stalkword. [18:40:58] Word boundaries are hard. [18:41:45] and many IRC clients don't support them :( [20:40:34] Ayn Rand? The eminent 20th-century Russian-American philosopher? [20:40:39] Hi. [21:18:51] hello,I want to participate in OPW through this organization ,Need information about project and mentors. [21:19:10] rakhisharma: hello [21:19:41] You might be able to find more development-oriented support in #wikimedia-dev [21:20:40] GEOFBOT: hi , I drop the same message there but didn't get any reply. [21:21:12] !opw [21:21:12] https://www.mediawiki.org/wiki/Outreach_Program_for_Women [21:22:08] hi MatmaRex o/ [21:23:13] MatmaRex: I had go through this website link but didn't get any information about upcoming round projects. [21:25:53] rakhisharma: perhaps there isn't any? it doesn't seem like even the organizations where announced for next round [21:25:58] have you seen https://www.mediawiki.org/wiki/Outreach_programs/Possible_projects ? [21:26:46] There was a person interested in outreachy a week or so ago who had a patch merged [21:27:10] were announced* [21:27:15] https://gerrit.wikimedia.org/r/#/c/234852/ [21:29:05] MatmaRex: you are correct they will finalize the organization and there projects on 21st september.but on the website wikimedia is mentioned as the participating organization for upcomming round. [21:30:34] GEOFBOT: I want to do the the same that's why looking for the advise ,I am a newbie and want to participate in opw through this organization. [21:31:06] rakhisharma: you can get set up for development https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [21:31:45] Not sure how outreachy works, is it like gsoc where a person works on a big project? [21:34:26] yes ,It is same as Gsoc,Just differene is that opw is only for womens . [21:35:33] Can wm-bot be run locally? [21:35:53] GEOFBOT: opw is outreachy program for womens [21:37:09] https://phabricator.wikimedia.org/T112267 [21:40:41] GEOFBOT: Is there is any particular irc channel for participant and mentors of GSco and opw? [21:40:49] JustBerry: the source code is public, somewhere [21:40:51] !info [21:40:51] http://www.mediawiki.org/wiki/Special:Search?search=&go=Go [21:40:53] !help [21:40:53] There are a lot of topics you could be asking about. Besides, this bot is mostly for experienced users to quickly answer common questions. Please just ask your question and wait patiently, as the best person to answer your question may be away for a few minutes or longer. If you're looking for help pages, we moved that to !helpfor. [21:40:56] !bot [21:40:56] A bot is an automatic process which interacts with MediaWiki as though it were a human editor and is designed to simplify repetitive actions too cumbersome to do manually. An overview of how to create a bot and a list of known frameworks can be found at http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot [21:40:59] !wm-bot [21:41:00] Hello, I'm wm-bot. The database for this channel is published at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [21:41:10] fourth time the charm. [21:41:22] MatmaRex: I can't @add it back into my channel [21:41:28] It's stuck [21:42:13] JustBerry: maybe it doesn't listen to you? you have an unaffiliated cloak, not a wikimedia one [21:42:46] or maybe it's https://meta.wikimedia.org/wiki/Wm-bot#Bot_will_not_join ? [21:43:18] MatmaRex: Tried that already. [21:50:46] MatmaRex:As I am a newbie don't have any experience in resolving bugs but I want to start working on bugs but how ? [21:51:36] rakhisharma: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [21:51:47] rakhisharma: sorry, i don't have time to guide you through every step :( [21:53:14] MatmaRex: the links you provided here is enough to start,Thanks for your help :) [22:02:39] rakhisharma: there is no particular channel, maybe there should be :P [22:03:03] GEOFBOT:fine :) [22:04:52] GEOFBOT: I have knowledge in designing , how I contribute for wikimedia design. [22:05:18] rakhisharma: well, here are some open bugs related to design https://phabricator.wikimedia.org/tag/design/ [22:05:46] GEOFBOT: Thanks ;) [22:49:13] Are there any good examples of code for automatically creating wiki pages from within an extension? That is, I don't want a user to have to approve the contents via the usual edit (preview/submit) interface, though the pages will be based on user-submitted data.