[00:01:09] looks like flow to me [00:02:53] well, [[Extension:Flow]] doesn't say how flow is supposed to be :) [00:16:35] Does anyone know of an extension that allows exporting every page in a category to a .txt file for each page? [01:01:46] hi, I installed and allowed SyntaxHighlight_GeSHi but when I load a modul page I get this error and an empty page shows up: Fatal error: Class 'KzykHys\Pygments\Pygments' not found in /var/www/mediawiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 278 [01:01:53] any idea what can I change? [01:25:25] auvajs: how did you install it? I thought it was bundled now. [01:40:15] wmat: via git [01:43:09] wmat: 2.0 (3710114) 24. 8. 2015, 19:34 [01:48:39] auvajs: what version of MW? [01:48:53] auvajs: make sure the extension version matches the MW version [01:54:03] wmat: 1.26alpha (c1cdf49) [01:54:03] 25. 8. 2015, 22:23 [01:55:22] auvajs: ok, i seem to recall a bug in Phabricator about SyntaxHighlight missing pygments on the master branch [01:55:29] auvajs: not sure if it's fixed yet [01:56:18] auvajs: you could install pygments somewhere else and point syntaxhighlighter at it [01:56:51] wmat: I'll probably just stick with CodeEditor :-) [01:57:50] auvajs: fwiw, SyntaxHighlight GeSHi did just undergo a major rewrite [01:58:28] auvajs: https://phabricator.wikimedia.org/T110079 [01:58:57] wmat: ok, so it's probably not yet fixed [04:14:53] Hello, I'm utilizing the CategoryTree extension to display a category with 300+ pages with the Manual tag. Is there an easy way to display this as a three or four column table? [04:40:55] Hello, I'm utilizing the CategoryTree extension to display a category with 300+ pages with the Manual tag. Is there an easy way to display this as a three or four column table? [06:25:14] I was curious if there's a way to use the IF parser function in such a way that you can set multiple to the one value, for example: {{#if:{{{show}}}|Foo,Bar=blue|Lorem,Ipsum=orange}} [06:29:49] Not sure, but you could always nest the if functions [06:31:12] Nevermind, I misunderstood. [06:31:14] MakeShift: I'm not sure what you mean [06:31:24] #if doesn't set values [06:31:41] So essentially when a template is used, if the "show" variable is equal to two different options, it will display the single result [06:32:05] Ah. I think you had #if and #ifeq confused [06:32:44] They do confuse me, yeah. [06:32:52] {{#if:{{{show}}}|Foo,Bar=blue|Lorem,Ipsum=orange}} literally means, if the text {{{show}}} is non-blank output the string "Foo,Bar=blue" otherwise output the string "Lorem,Ipsum=orange" [06:33:00] anyways, #switch can do what you want [06:33:18] I'm not really a pro in any sort haha, but thank you [06:33:26] Will a simple comma work? [06:33:44] you can do things like {{#switch:{{{show}}}|Foo|Bar=blue|Lorem|Ipsum=orange}} (I believe, a while since ive used it) [06:33:58] I'll try to use it now, hold up [06:34:05] #switch is basically nested ifs, so I was sort of right. [06:34:53] jcm123: One could use nested #ifeq's too. Its just a little more tedious [06:35:35] @bawolff and much cleaner! [06:35:41] Ah, perfect! It seems to work with any number of values. [06:35:48] Thank you so much bawolff! [06:36:25] no problem [06:36:52] bawolff, any ideas for this? Hello, I'm utilizing the CategoryTree extension to display a category with 300+ pages with the Manual tag. Is there an easy way to display this as a three or four column table? [06:37:23] Directly view the category ;) [06:37:57] No, I want to have the list on Main_Page [06:37:59] jcm123: You can use the DynamicPageList_(Wikimedia) extension to list all category members, and then use css columns to make it be in columns [06:38:35] Ok, I'll check it out. [06:58:20] * bawolff goes looks at this newsletter extension [07:34:43] I am running mediawiki 1.25.1, but want to install an extension which only supports 1.24. Is there a way or strategy for downgrading to 1.24? [07:37:28] In some cases, you could just update the files on disk with older ones, it may or may not work [07:37:31] Which extension? [07:37:34] Why doesn't it support 1.25? [07:39:56] ghostknife: Does the extension just claim to only support 1.24, or did you try it and it didn't work? Most (but not all) 1.24 extensions will work with 1.25 [07:48:23] hi bawolff. it doesn't seem to load, and a google indicated that the extension is not supported on 1.25. [07:48:43] ghostknife: Ok, just wanted to make sure that you actually tried it [07:50:18] if I install a clean 1.24, would it be relatively simple to write a script that recreates all articles on the clean installation? it's a barebone wiki installation with very simple article. has mostly been nothing more than an information dump which we now want to expand. [07:51:21] ghostknife: Generally, databases are downward compatible if you're just going 1 version [07:51:35] * bawolff double checks what db changes are in 1.25 [07:51:45] ok, that sounds promising [07:52:08] and, uh oh [07:52:16] this might not be one of them [07:53:10] You'd need to re-add the column page_counter to page table, and ss_total_views column to site_stats, and possibly the hitcounter table [07:54:50] where did you see this? [07:55:08] for interest sake [07:55:27] I looked at the database updates listed in includes/installer/MysqlUpdater.php [07:55:52] That's generally something, that as a user, you're not expected to know :) [07:58:08] ghostknife: So two options available to you: If you're comfortable with databases, you can alter the tables to get them back to the way they were before and then just overwrite all the php files. Option 2 would be to use something like dumpBackup.php and then importDump.php [07:58:30] But, dumpBackup.php is meant for public backups of content, so private things like user accounts would be lost [07:58:50] Which extension is it? [07:58:57] BlueSpice [07:59:51] bawolff: dumpBackup sounds like a good option. though I'm going to first see if I can modify the database. I'm comfortable with DBs and PHP [07:59:52] hmm [08:00:03] It will get updated eventually [08:00:40] Hmm, nobody's ever really been able to explain to me, what bluespice really is [08:01:10] It's like a collection of extensions [08:01:25] that kind of make your wiki more corporate friendly I guess [08:01:26] well, bundle [08:01:31] https://www.mediawiki.org/wiki/Extension:BlueSpice [08:01:41] "It can be extended with a multitude of business features so that BlueSpice can implement comprehensive Enterprise 2.0 solutions." [08:01:44] lol. [08:02:02] bawolff: please excuse my ignorance, but I don't see page_counter in the MysqlUpdater.php script. [08:02:36] array( 'dropTable', 'hitcounter' ), [08:02:51] sorry, its called page counter in half the places, hitcounter in the other [08:03:37] mine looks like this: http://pastebin.com/075ma4uC [08:04:06] hmm, maybe 1.25.3 looks different [08:04:26] or .2 [08:05:15] https://github.com/wikimedia/mediawiki/blob/REL1_25/includes/installer/MysqlUpdater.php#L269-L272 [08:05:40] bawolff: looks like it wasn't put into 1.25 [08:05:47] yeah [08:05:54] but its in the 1.25 section on master [08:05:57] which is confusing [08:06:27] wonder if it got backed out [08:06:38] https://github.com/wikimedia/mediawiki/commit/f6823b8014f3e5def99ac80e0133e2669c68fe43 [08:06:39] Yup [08:06:56] ghostknife: That's good news for you [08:07:03] * Reedy makes a patch [08:07:27] You should be able to just replace all the php files with the 1.24 php files (except keep your LocalSettings.php, and extensions, any images), and it should all just work [08:07:48] i seems like it :) [08:08:07] thanks for the assistance bawolff. I now have some good insight into mediawiki [08:09:48] bawolff: patch incoming [08:11:51] I will +2 it when it appears [08:24:58] damn git fetch --all [08:25:14] I don't suppose anyone here knows of an extension that can export pages in a category to a .txt file of the same format as clicking "edit" to see the markup to edit the page? [08:26:49] not really, but you can also view that format by appending ?action=raw (or &action=raw depending) to the end of the urp [08:26:51] *url [08:27:16] yeah, the issue is I want to save a copy of about 900 pages so manually would be far too lengthy [08:27:40] script it :D [08:27:55] That's why the export feature works but is xml where I want txt [08:28:00] I would if I knew how ;p [08:28:11] I'm not good with scripting [08:32:28] I doubt there is one for rtf either [08:33:10] There are programs that can convert html -> rtf. Putting ?action=render through one of those is probably the closest you're going to get [08:33:26] but again, if you can't program, that's going to be super tedious [08:33:33] yeah [08:33:52] I'd looked for ages but couldn't find any prebuilt scripts/extensions [08:33:54] thanks [12:58:30] Hello. I am using the DataTransfer extension; it's very useful. I'm wondering if it's possible to call an import from a command line instead of via the special page? [13:04:13] no, there's no maintenance script for that in the DataTransfer code... [13:07:52] Well you could always call it with curl [13:07:53] If someone submits a change to a gerrit repository for which I have +2, and I want to modify their change, how do I go about doing that? [13:08:57] jamesmontalvo3: For wikimedia deployed extensions, if you make significant changes to the other person's extension, you're supposed to get someone else to review it [13:09:22] jamesmontalvo3: but to answer your question, you can amend the patch just like any other patch [13:09:30] git review -d [13:09:53] bawolff: it's not a WMF extension...here's the change: https://gerrit.wikimedia.org/r/#/c/228419/ [13:09:54] make changes. git add ; git commit --amend; git review -R [13:10:19] jamesmontalvo3: if its not a wmf extension, then the people with +2 make the rules :) [13:10:31] git review -d ....that's what I needed, thanks. [13:11:04] Don't see that anywhere on mediawiki.org....I'll find a place to add it (or make it more visible if it's there somewhere) [13:11:45] I'm sure its somewhere, but I do find out git documentation hard to navigate [13:12:07] Vulpix: that's what I was wondering. Thanks! [13:12:43] bawolff: yes I considered that briefly, but I think instead I'll do it with the mwclient python library. DataTransfer is brilliant for manual imports, but I need to do unattended [13:13:21] Yeah it's there...easy to find when you can search "review -d", not easy when you're looking for "modify someone else's commit". [13:13:49] jamesmontalvo3: https://www.mediawiki.org/wiki/Gerrit/Getting_started [13:14:54] bookmark that page, like me :P [13:15:56] Vulprix: that one doesn't appear to say anything about amending someone else's change...added it in this change: https://www.mediawiki.org/w/index.php?title=Gerrit%2FTutorial&type=revision&diff=1862249&oldid=1781508 [13:16:29] >> To review other people's code, just follow the same steps to amend a change described above, using the corresponding . [13:16:31] Vulpix: SyntaxError: Unexpected identifier [13:19:49] Ideas? https://phabricator.wikimedia.org/T110034 [13:21:16] jamesmontalvo3: I think its just generally assumed that its rare for someone to amend somebody's change that isn't there own [13:22:02] Reception123: is user_id null on that query? that seems odd, isn't it the primary key? [13:22:26] !db user [13:22:26] See http://www.mediawiki.org/wiki/Manual:user_table [13:22:46] ah, auto increment [13:23:24] Reception123: I don't know much about db locking, but I don't really understand how one could have deadlock if there is only one transaction going on [13:24:22] Vulpix bawolff : Would it be possible to comment on the phabricator ticket? (I am just helping someone, I am not sure and/or do not have access to more jnfo) [13:24:56] I'm not sure if "I have no idea" would be a very useful comment [13:25:05] well, there may be other processes: If you have the PROCESS privilege, you can see all threads. Otherwise, you can see only your own threads [13:25:18] https://dev.mysql.com/doc/refman/5.0/en/show-processlist.html [13:25:45] Good point [13:26:41] will comment on the task [13:26:48] ok, thanks! [13:45:54] I have a page on my wiki called "MediaWiki" and the title on that pages is hidden. I have no clue why it's gone. [13:47:31] This is the site. http://hackernet.se/index.php/MediaWiki [13:48:28] I think this ({{DISPLAYTITLE:{{FULLPAGENAME}}}} [13:48:29] is why [13:49:30] Reception123: no its not. I just added it, i forgot to remove it. [13:49:31] Sparco: http://hackernet.se/index.php/MediaWiki:Common.css see "Hide elements on the main page" [13:50:04] copied from mediawiki.org, I guess :P [13:50:10] Vulpix: ye it is :) [13:50:29] should i remove all of it? [13:51:20] if the page called [[MediaWiki]] is not your main page, remove the entire section, yes [13:51:55] removed it now. still no title [13:53:23] Vulpix: i have a title now. Took a while :) [13:53:35] Thanks for the help :) [13:55:09] yw :) [14:32:04] I have a 1.24 setup and I can't sideload after adding $wgAllowCopyUploads = true; and $wgCopyUploadsFromSpecialUpload = true; to my LocalSettings.php [14:32:22] is there another option I need to enable? [14:32:37] (this is logging as admin) [14:37:57] malaverdiere: do you get an error? does the upload by url appear in Special:Upload? [14:38:28] in Special:Upload, I only get the default upload [14:38:36] as for error, lemme check now (sorry I forgot) [14:38:59] malaverdiere: are you a sysop on that wiki? [14:39:07] > Users also need to have the associated user right upload_by_url before this option is available. By default only administrators (sysops) have this permission. [14:39:08] ya [14:39:31] This is a test setup, and I logged in with the sysop users [14:39:42] nothing in error.log [14:40:40] was that feature temporarily broken and fixed in later 1.24 versions? [14:42:46] mmm, in my test 1.24 wiki it also doesn't show on Special:Upload :S [14:43:19] lemme add it to the acl just in case [14:43:34] $wgGroupPermissions['sysop']['upload_by_url'] = true; ? [14:44:27] wtf, yes, I had to add $wgGroupPermissions['sysop']['upload_by_url'] = true; to make it appear [14:45:02] hm, so the ACL was modified [14:45:08] * malaverdiere wonders if that's the same in 1.25 [14:46:07] it's commented out in DefaultSettings.php [14:46:26] let's blame it [14:46:47] gotta love the name of that feature :) [14:49:36] http://git.wikimedia.org/commit/mediawiki%2Fcore.git/7c4f300587361d34ade6bdd13a85d816c52d36eb [14:49:45] you're faster than me [14:49:50] OMG turned off since 1.20 [14:51:24] nope [14:51:31] 1.23.x tests worked just fine [14:51:57] I mean, after setting the flags to true [14:52:28] OK, so this new default is not an accident, so its just a matter of unupdated docs [14:53:29] yes, I'm updating it [14:53:54] thx [14:59:54] Vulpix: that's clear now [15:12:19] Reception|away: how was it fixed? [15:12:33] (T110034) [15:13:14] With the advice that jcrespo gave [15:14:36] so you changed contention level to READ COMMITTED and it worked? [15:14:54] SPF|Cloud ^ [15:14:55] would be good to clarify that on the bug [17:46:54] hello [17:47:37] is it possible to display categories somewhere else than footer? [17:53:23] guest22: not by default. That's something that can vary by skin, I think, so each skin defines where categories are displayed [17:53:46] if you know JavaScript, you could write a script to move categories somewhere else [17:54:14] well, or hack a skin if you know PHP :P [17:54:35] vulpix do you live here :D [17:54:42] lol [17:55:17] no, but if I'm at home then I'm usually around here [17:56:15] okay. i believe i've been visiting this chat once in every few months for past 2 years now and i always see you responding. [17:57:07] I'm probably faster than others in replying, so I gave them no chance to help :P [17:57:15] haha, okay [17:57:37] btw, the list on the right is not accurate at all right? [17:57:48] so many people, like 200, but nobody talks [17:58:14] we lurk [17:59:05] okay. lego, i think i've seen your name somewhere [17:59:11] probs an extension [17:59:52] my name appears on lots of plastic as well, for example https://upload.wikimedia.org/wikipedia/commons/3/32/Lego_Color_Bricks.jpg [18:00:05] hhhaaha, funny [18:00:08] okay [18:00:26] didn't know people at mediawiki were such comedians [18:00:34] but that's cool :P [18:01:41] :) [18:04:05] i looked you up and you made some pretty major extensions, do you get paid? [18:04:23] I do work for the WMF, yes. [18:04:59] is it nice to work there. i like the platform, but making extensions would be another level :D [18:06:35] yep :) developing extensions isn't that scary, it just takes time: https://www.mediawiki.org/wiki/Manual:Developing_extensions [20:59:45] !namespaces [20:59:45] See http://www.mediawiki.org/wiki/Help:Namespaces for user help and documentation, and http://www.mediawiki.org/wiki/Manual:Namespace for administration. For adding namespaces, see !extranamespace [21:00:22] wm-bot: help? [23:15:01] Hrmm, how can I copy and paste something to a mediawiki page and not have it mess up the formatting? So I am copying alot of text with some ASCII characters in it, i tried blocks which work the best but it stil screws up the formatting from the source? I hav tried nowiki that looses source formatting too, what else can i try? [23:15:17] for instance an ascii art graphic? [23:16:36] zoidberg-:

[23:31:24] 	 thank you :)