[00:43:52] Is there a way via the API to determine if a wiki support uploads? [00:53:15] if I have an html file that I converted to media wiki…how do I upload this file to a media wiki site? [00:53:17] Skizzerz: I have no vested interest, but... poke: https://bugzilla.wikimedia.org/show_bug.cgi?id=64043 [01:05:20] john_doe_jr, Not sure exactly what you did [01:05:50] john_doe_jr, but if you have mediawiki wikicode, you can cut&paste it onto a wikipage, or if you have xml, you might use special:import [01:26:23] kim_bruning: alright it totally did not work…I mean it sort of worked.. [01:29:37] john_doe_jr, well, I don't know what you did, and I don't know what you mean by did not work, and I don't know what you mean by sort of worked :-) [01:30:09] And I don't know how you converted your HTML file, and I don't know what your resultant code looks like [01:30:29] kim_bruning: well, it looks sort of like the HTML file but it doesn't have the pics and they are in the wrong place [01:30:52] Ok, I don't know what "it" is. Though I can imagine there wouldn't be pics [01:30:58] HTML files don't have pics either, per-se [01:31:09] you need to upload those separately [01:31:21] Via Special:Upload. [01:31:25] right [01:31:32] Then use syntax "[[File:File name.ext]]" to include the images. [01:31:43] and won't work. Most other HTML works. [01:31:45] and you don't know what the input looks like? [01:31:47] ah yeah, well, I don't think we're anywhere near that point ;-) [01:32:04] john_doe_jr, can you show me your wiki? ;-) [01:33:21] kim_bruning: http://ec2-174-129-155-1.compute-1.amazonaws.com/mediawiki/Main_Page [01:34:14] and why are you converting html to mediawiki in the first place btw? ^^;; [01:34:33] The server at ec2-174-129-155-1.compute-1.amazonaws.com is taking too long to respond. [01:34:37] hmmm, that can't be good [01:34:45] kim_bruning: I have this memory aid that takes html [01:35:14] well, I don't seem to be able to connect to your wiki at the moment [01:35:30] kim_bruning: well, never mind my bitnami 1 hour trial expired [01:35:48] oh well [01:35:55] ok, then it's going to be rather hard to help you [01:36:18] though amazonaws is pretty cheap to run for a short while at least [01:37:23] so just to summarize, you told me virtually nothing, didn't provide the files you were using, told us "it didn't work" rather than what happened vs what you expected... [01:37:30] and your wiki is not currently operational. [01:38:08] kim_bruning: well, just a sec [01:38:27] kim_bruning: :-) [01:39:05] A certain german devops' grating style is rubbing off on me ^^;;;;; [01:39:14] OTOH maybe it's faster [01:39:30] kim_bruning, who? [01:39:56] Someone on a different IRC network :-P [01:40:14] We use IRC at work. [01:40:16] I like that. [01:40:39] kim_bruning: just trying to re-create a 1 hour server again so I can show u the media wiki output [01:40:47] Oh, Carmela is $blonde , I should have guessed ;-) [01:41:04] Someone has to hold the fort. [01:41:12] You been paying attention to wikimedia-l? [01:41:13] john_doe_jr, you don't normally have a vps stashed someplace? (they cost a few quid per month from any decent vendor) [01:41:25] Carmela, actually no, /me looks [01:41:43] kim_bruning: This year has seen a new ED. [01:41:45] And her partner. [01:41:48] And now MediaViewer. [01:41:48] kim_bruning: I guess I could download a media wiki cloud virtual machine and use it [01:42:03] Download a what? [01:42:18] Carmela, I told said partner to stalk gregory maxwell. He stalked Kohs instead :-P [01:42:23] john_doe_jr, do what? [01:42:29] MediaWiki is Web software. If you want to run it consistently, you'll need a dedicated Web server. [01:42:41] kim_bruning: Hah. [01:42:50] kim_bruning: Brilliant. [01:42:53] Carmela, I guess someone is offering a preconfigured VM image :-P [01:43:14] Probably, but if you just want to fuck around with MediaWiki, we have Vagrant. [01:43:17] !vagrant [01:43:17] https://www.mediawiki.org/wiki/MediaWiki-Vagrant [01:43:18] john_doe_jr, ok, show me the file you want to use on mediawiki [01:43:28] john_doe_jr, and why do you want to use said file on mediawiki? [01:43:49] john_doe_jr, actually, why are you running 1 hour instances with mediawiki on? [01:44:03] * kim_bruning wonders what the use case is, since mediawiki is usually more useful on permanent servers :-P [01:44:10] kim_bruning: well, its my calculus PDF book [01:44:11] rotfl [01:44:17] (unless you're just experimenting I guess) [01:44:31] kim_bruning: I'm experimenting..this is completely new to me [01:44:32] john_doe_jr, Ohkay... that's interesting enough :-) [01:44:42] john_doe_jr, Okay, well, what are you trying to achieve? [01:44:45] kim_bruning: how do I get it to u? [01:44:49] If you just want to experiment, you may want to try Vagrant. [01:44:54] john_doe_jr, well, what are you trying to achieve? [01:45:03] Carmela, don't give spurious info please? [01:45:13] kim_bruning: Did you click the link? [01:45:27] kim_bruning: I'm trying to make my calculus pdf that I converted to html look good in media wiki [01:45:32] Carmela, which link is relevant to my discussion with john_doe_jr ? [01:45:42] john_doe_jr, Ok, sure, why do you want to do that? [01:45:56] Shrug. [01:46:21] john_doe_jr, (I'm trying to figure if there's something else that might be a better Idea ;-) [01:46:31] It doesn't sound like john_doe_jr wants a Web site, just a means of playing around with MediaWiki. We have tools that make that a lot easier. [01:46:48] john_doe_jr, are you trying to learn how to use mediawiki, or trying to convert pdf , or do you want to share the textbook? [01:46:49] Easier than 1-hour AWS trials, I think. [01:47:01] Carmela, probably [01:47:06] Heh, sharing the PDF. Yes, there are certainly easier ways! [01:47:07] Carmela, but you're assuming :-) [01:47:11] Though transferring files is still annoying. [01:47:14] cariaso, yes ;-) [01:47:18] ;-) [01:47:37] john_doe_jr, or are you trying to achieve something else? [01:47:50] kim_bruning: I was going to PM you my dropbox link but I don't see u in the list [01:47:59] Carmela, ps. I mistrust vagrant for new users. It borked on me during wikimania hacking days [01:48:09] I've never used it, heh. [01:48:11] john_doe_jr, "In The List"? [01:48:13] I hear good things, though. [01:48:24] I think it's much easier for new users than setting up MediaWiki. (o; [01:48:25] kim_bruning: I don't see your name [01:48:26] john_doe_jr, can you tell me what you are trying to achieve first? [01:48:28] Though maybe not. [01:48:34] john_doe_jr, then we can determine what information we need [01:48:53] You can use the syntax "/msg kim_bruning" [01:48:59] john_doe_jr, and/or what steps to take [01:49:06] Carmela, I really wish you hadn't said that [01:49:10] :D [01:49:14] Knowledge is great. [01:49:17] kim_bruning: yes…see. I use a program called SuperMemo and it works great using wikipedia articles but not so much in html …it has all kinds of filters for wikipedia articles [01:49:36] kim_bruning: You seem a bit on-edge, FWIW. [01:50:01] kim_bruning: I'm trying to turn my PDF to HTML to MediaWiki so I can import the file into SuperMemo and start learning [01:50:02] Carmela, Just being more engineery than usual :-P [01:50:11] kim_bruning: In addition to wikimedia-l, there's quite a bit of Meta-Wiki activity as well. [01:50:29] john_doe_jr, ok, so do you know how supermemo imports information from mediawiki at all? [01:50:33] Upset letters to the Board, discussions about power and the role of the Wikimedia Foundation, etc. [01:50:46] kim_bruning: so I thought I could have a localhost media wiki running and import the files into SuperMemo [01:50:53] Carmela, it reminds me of a company I work for ;-) [01:51:08] john_doe_jr, I'm not sure that'd work out the way you'd think [01:51:13] kim_bruning: I've used it several times using wikipedia content…works great [01:51:20] john_doe_jr, can supermemo only import from mediawiki? [01:51:46] john_doe_jr, did you import mediawiki content into supermemo directly, or via a localhost mediawiki somehow? [01:51:58] john_doe_jr, it seems like what you're doing might be a tad nontrivial [01:52:01] kim_bruning: no…it can import html but it doesn't import exactly like the PDF so I spend a lot of time fixing it [01:52:07] okay [01:52:13] so why the intermediate mediawiki step [01:52:18] isn't that more complicated? [01:52:33] (and doesn't that make it worse?) [01:52:52] Carmela, checking wikimedia-l [01:53:01] kim_bruning: well, the filters for wikipedia are excellent and I really don't know why but it imports it exactly [01:53:04] Carmela, I caught most of the stuff going on at wikimania ;-) [01:53:19] john_doe_jr, ok, great, but the conversion from pdf to mediawiki really sucks :-P [01:53:19] Ah, right. [01:53:32] kim_bruning: see my problem [01:53:48] I figured out how to convert from html to media wiki [01:53:54] which still sucks [01:53:57] but go on? [01:54:58] kim_bruning: well, I pasted the media wiki markup and it produced all the text but no images etc..I'm assuming there is a lot more work that needs to be done…I was hoping for some quite conversion to media wiki [01:55:20] you need to upload the images to mediawiki separately [01:55:22] *quick conversion [01:55:35] kim_bruning: right….well, that sucks [01:55:38] right, typically there are no good conversions *to* mediawiki [01:55:53] you might be able to upload images in one go using one of the maintenance scripts [01:56:17] if you're any good at scripting, and the rest of your solution actually works, you could try scripting the lot together [01:56:29] but really it seems like you're taking a really really really roundabout path [01:56:43] Though I get why you might have thought to try it ;-) [01:56:57] * kim_bruning also gets myself into similar kinds of trouble at times [01:57:51] btw, seeing the kinds of questions you're asking, I'm guessing you probably aren't too good at scripting. (else you'd have had a lot of practice asking questions about that already :-p) [01:57:59] kim_bruning: well, I figured it I could just solve this problem of taking content from PDF to HTML to Media Wiki I could use any PDF content [01:58:15] insofar as that went, that was a good thought [01:58:30] insofar as why you thought it was a good idea in general, I shan't comment :-) [01:58:50] kim_bruning: scripting in several languages but not media wiki [01:59:14] Since you just came up with 2 huge new problems to replace your smaller original one ;-) [01:59:28] I was thinking something like python, perl, bash, or etc ;-) [01:59:39] kim_bruning: well, it handles wikipedia content really really well…I just thought if I created a tool chain for the PDF content …I could have any PDF content [01:59:51] kim_bruning: lol [02:00:01] Yeah except you chose a lossy conversion path to begin with [02:00:02] kim_bruning: I never need to brag on myself [02:00:09] * kim_bruning scratches head [02:00:25] well, what path would you choose then? [02:01:02] I wouldn't call it bragging. "Yes I speak German" or "no I don't speak german" is a perfectly useful and valid statement to make [02:01:15] (idem perl, python, or some other turing complete language) [02:01:33] john_doe_jr, well, frankly, I think you're pretty much bleeped. [02:01:40] unless there's a direct import path for pdf [02:02:08] kim_bruning: PDF file format is horrible to work with [02:02:09] otoh I don't know supermemo at all [02:02:44] kim_bruning: well, it's a nice program…I've been using it for a while now…It has got some worts though [02:02:56] I agree that PDF sucks [02:02:59] html is a lot better [02:03:06] mediawiki is aweful though [02:03:11] html is better than mediawiki [02:03:14] kim_bruning: mostly a bad program but I don't want to write it myself [02:03:19] if you have to do a conversion, take it from there [02:03:43] mediawiki syntax is nice if you're writing stuff, not so much if you're trying to do conversions [02:03:51] * kim_bruning scratches head [02:04:02] well, if the html to mediawiki conversion works well enough for you [02:04:11] you might want to try using a bulk upload script [02:04:17] (for the images) [02:05:17] kim_bruning: could it be done easily [02:05:24] if you can use command line? [02:05:35] kim_bruning: I can [02:05:48] there's an import script in the maintenance directory [02:05:52] called importImages.php [02:06:28] no idea how well it works, you'll have to figure it out :-) [02:06:36] but maybe you can make it a 2 step process [02:06:47] maybe not perfect, but at least you don't need to do 100 steps by hand :-P [02:09:50] kim_bruning: In the maintenance directory? [02:11:19] kim_bruning: I see a scripts folder with a setevn.sh and build-setevn.sh scripts [02:12:36] no such thing exists within the mediawiki directory [02:12:41] you're looking in the wrong place? [02:13:27] alright ….I see a apache2, common, mysql, php, sqlite, and scripts folder….. [02:13:45] kim_bruning: I used bitnomi media wiki [02:14:29] I don't know what that is [02:14:56] I cannot guess where mediawiki is stowed, but maybe there's a way [02:15:08] is mediawiki already running on that system? [02:15:11] can you give me a link? [02:15:18] or is this a local system [02:18:13] kim_bruning: it's on my local system sorry [02:18:21] kim_bruning: I was using the 1 hour demo server [02:18:31] well where are you now? [02:18:38] tell you what [02:18:43] let's take a gamble or two [02:18:46] try : [02:18:59] kim_bruning: thanks for all your help by the way [02:19:07] find . | grep LocalSettings.php [02:19:22] or, alternately [02:19:27] find . | grep maintenance [02:19:38] assuming you are on a linux shell [02:19:44] what does your shell prompt look like? ;-) [02:20:05] (aka, what's the bit in front of your cursor? Mine looks like this : [02:20:10] kim@they ~/public_html/rabowiki/mediawiki-1.19.2 $ [02:20:12] ) [02:20:36] kim_bruning: found all kinds of maintenance folders: ./apps/mediawiki/htdocs/maintenance [02:20:50] how many did you find? [02:20:56] that particular one looks interesting [02:21:36] ls ./apps/mediawiki/htdocs/maintenance | grep php | wc -l [02:21:40] kim_bruning: I downloaded the bitnomi media wiki install [02:22:05] (for yourself, you can try just ls ./apps/mediawiki/htdocs/maintenance and see if you have a lot of php files. [02:22:20] my own question is more complicated just so the answer will be 1 line and thus easier on irc ;-) [02:23:22] kim_bruning: all kinds of php files [02:23:27] if you have multiple maintenance directories, try the command I gave you on each and see if you can find one that returns some number > 100 [02:23:51] john_doe_jr, Ok sure, but the question I'd like you to answer is ls ./apps/mediawiki/htdocs/maintenance | grep php | wc -l [02:24:17] unless you used cd somewhere along the way, in which case it'll be a bit more difficult :-P [02:24:31] kim_bruning: 139 [02:24:38] Ok, that's awesome [02:24:52] you'll probably find the file importImages.php in that directory [02:25:17] can you figure out how to use that yourself? [02:25:37] kim_bruning: I can try [02:25:50] hmph [02:26:17] well, ok, I'd like to help more, but I need to sleep [02:26:32] kim_bruning: ok thank you very much [02:26:34] you can try letting that loose on the images included in your html file :-) [02:26:45] kim_bruning: I will thank you [02:27:05] incidentially, your mediawiki dir appears to be apps/mediawiki/htdocs [02:27:10] (for future reference) [02:27:20] and if you can't figure stuff out, ask around here some more [02:27:33] kim_bruning: right….well, I had no idea until I did the grep [02:27:41] john_doe_jr, right? :-) [02:29:20] Anyway, it's a bit hard to help you, since you only answer half the questions I asked :-P [02:29:46] And I had to ask twice too [02:29:51] that despite irc being a text medium [02:29:59] And I'm a bit grumpy because it's so late :-P [02:30:13] but that shouldn't be part of it ;-) [02:30:33] kim_bruning: well, sorry….new to the media wiki community [02:30:44] kim_bruning: I will do better [02:30:54] john_doe_jr, nah, nothing to do with that. It's the same no matter where you go for technical help :-) [02:31:29] john_doe_jr, ask smart questions, be clear about what you're trying to achieve, explain what you've already tried, and then ask for help ;-) [02:31:29] kim_bruning: alright well, I will do better [02:31:52] john_doe_jr, then when folks are helping, answer their questions :-) Take your time, it's a text medium [02:31:55] kim_bruning: sorry I was in the middle of dealing with my children [02:32:22] Oh right, and when getting help, make sure you're free to concentrate on the problem :-) [02:32:33] Though kids sometimes happen I know [02:32:55] And I'm not angry at you or anything mind you [02:33:05] just pointing out how you could have gotten help a LOT quicker :-) [02:33:17] (well, sometimes anyway :-) [02:33:37] So no need to apologize to me, at least:-) [02:33:38] kim_bruning: right…I will be clearer next time [02:34:07] john_doe_jr, Just takes practice. No worries! :-) [09:13:59] Hey, I just moved my wiki to another host, everything worked FLAWLESS so far, but I can't get Thumbnails working. I always get "Unable to save thumbnail to destination". Tried pretty much everything involving wgUploadDirectory, wgTmpDirectory, even putenv(TMPDIR) stuff. Anyone willing to help ? I don't have any approaches any more and already went through all relevant talks ._. [09:14:30] have you checked that your webserver process (apache?) is able to write to your thumbnail directory? [09:15:54] nginx, everything set to 775 - am running on a subdomain (wiki.blabla.com) - but in the end I set all pathes manually, so this shouldn't interfer [09:16:15] and yes, I quadrupple-checked my pathes :p [09:16:38] hm [09:16:39] $wgEnableUploads = true; [09:16:41] $wgUseImageMagick = true; [09:16:43] $wgImageMagickConvertCommand = "/usr/bin/convert"; [09:16:45] $wgUploadDirectory = "/var/www-wiki/wiki/images/"; [09:16:47] $wgTmpDirectory = "/var/www-wiki/wik/images/temp/"; [09:16:50] $wgMaxShellMemory = 524288; [09:16:52] $wgTmpDirectory = ini_get('upload_tmp_dir'); [09:16:54] # Because my server got stupid [09:16:56] putenv('TMPDIR=/var/www-wiki/wiki/images/temp'); [09:16:58] is what I have right now, sorry for spam [09:17:10] ImagMagick is fine as well [09:17:52] drwxrwxr-x 19 997 1001 4096 Aug 26 15:19 images/ [09:18:20] as I just ported, there already are a bunch of images - and if I view them without thumbnail the work fine [09:19:24] upload works fine with new files (but no thumbnails) [09:30:56] 1.22.5 - btw [13:00:54] somehow it's working now. [13:00:56] don't asl [13:00:59] *ask [13:01:13] legoktm: still thanks for looking into it ^^ [13:04:43] ahoy [13:05:48] i get lots of "NOTICE: PHP message: PHP Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/hosts/wiki/includes/MagicWord.php on line 902" with current REL1_20 HEAD. [13:06:18] could this be a leftover of bug #58640 ? The symptoms are the same [13:06:34] !bug 58640 [13:06:34] https://bugzilla.wikimedia.org/buglist.cgi?quicksearch=58640 [13:21:47] Hello; I have a problem, I want to redirect my user page to a category, but by doing so, my user page is listed in the category as well. http://wiki.flamingcabbitprod.com/index.php?title=User:Amanda&redirect=no How can I fix this? [13:28:32] Is there a way to address an edit by its global edit number? e.g. I see when I leave out the title info I can do: diff=32482&oldid=32474 and it still shows the correct page where it was [13:28:54] but that requires me to know the oldid (which I could get, but still a coding task more) [13:29:29] so, my question would be: can I have that difflink via just 1 id/link somehow? [13:30:05] me looks at permalink, perhaps it's there [13:30:50] OK, that solves my question [13:30:53] I can just use oldid=32486 [13:30:57] the bug is gone after upgrading to REL1_23 [13:33:08] Erkan_Yilmaz, you can also use 'Special:PermaLink/' followed by the same number you give for oldid= [13:33:39] thx, let me check out [13:34:01] nice [13:34:17] (so I can use it as real internal link) [13:34:32] yep [13:53:59] I want to redirect my user page to a category, but by doing so, my user page is listed in the category as well. http://wiki.flamingcabbitprod.com/index.php?title=User:Amanda&redirect=no How can I fix this? [14:03:17] Con_: change [[Category: to [[:Category: [14:03:46] Thank you very kindly! [14:03:53] you're welcome! [14:35:39] Hi @all [14:36:35] Does someone know if it is possible to get in a template the pagename+ns of the "calling" page? [15:14:36] One question, maybe it's the right place here. I reworked the extension:Tooltip. As i got it tested, it works quite fine now with 1.23.2 and i thnk with a few older versions too. It seems it was not meintained last 6 years. Unitl now i published my source updates on the talk page. But i think there are better ways? [15:21:39] One question, maybe it's the right place here. I reworked the extension:Tooltip. As i got it tested, it works quite fine now with 1.23.2 and i thnk with a few older versions too. It seems it was not meintained last 6 years. Unitl now i published my source updates on the talk page. But i think there are better ways? [15:22:23] !e Tooltip [15:22:23] https://www.mediawiki.org/wiki/Extension:Tooltip [15:23:33] baxi: the code is in SVN, but SVN doesn't accept commits anymore, because we moved to git [15:23:48] ok, so what to do with it? [15:23:51] you can request it to be moved to the git repository and maintain that extension [15:24:01] how? [15:24:18] and what about the old author? [15:25:07] baxi: https://www.mediawiki.org/wiki/Gerrit/New_repositories [15:25:35] as for the author, original files should have the author name already, as well extension credits [15:25:57] you can also email him about that if he's still interested in that extension [15:26:19] ok, i try to find the email dress, thx [15:26:32] *adress [15:26:48] it's on his user page [15:27:01] yes got it thx [15:27:33] If the repo is still svn only I'd say it's safe to assume that no one will object to a new maintainer taking over. [15:28:07] yep [15:28:25] i send him email. i maybe come back later. thx for now [16:19:22] Hi, is there a version of semanticmediawiki that works against wmf/1.24wmf ? [16:35:54] (answered-ish in #wikimedia-operations) [17:14:21] Hi all. Is there a way to install mediawiki without using a the config web form? I am trying to build mediawiki with a script. [17:15:10] skyler: there's a maintenance script called install.php or something [17:16:26] Vulpix: Thanks. I will take a look at it. [17:51:31] Are somebody connected? [17:52:57] botsnack [17:53:12] There aren't any help-bot [17:53:29] !help | dp07Daniel [17:53:29] dp07Daniel: 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. [17:54:28] Thanks Vulpix. [17:56:30] Sorry for the inconvenience. I recently upgraded my wiki from 1.19 to 1.23.1 [17:56:30] Since the update, I never was able to upload content to the wiki, I only get the Error # 403 [17:56:55] dp07Daniel: my first guess would be a problem with file permissions [17:56:59] !filepermissions [17:56:59] http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads#Check_directory_security [17:58:07] Oh! One possible solution. I will start to read. [17:58:12] Thank you so much [17:58:25] dp07Daniel: what do you mean exactly by "uploading content"? uploading files? saving edits? or just editing any page? [17:59:03] Saving edits [17:59:17] Starting a new page from a red link [17:59:50] Well, with short texts, works (no more than 5 words) [18:00:05] it may be a mod_security issue [18:00:22] With long texts, for example more than 10 words = Error 403 [18:00:45] !mod_security dp07Daniel [18:00:50] =S [18:02:06] dp07Daniel: mod_security is an extension of the webserver that blocks some potentially dangerous/spam content submitted through forms [18:02:25] Oh! One detail more: The Format buttons, disappear. [18:02:30] it usually defines a list of blacklisted words that will block, forcing a HTTP 403 response [18:03:43] Oh! For example: Module SimpleAntiSpam [18:03:45] Or similar. [18:03:56] no, that's not a MediaWiki extension [18:04:25] MediaWiki extensions will usually display an error message inside the normal skin [18:05:16] Vulpix, hablas espa�ol? [18:05:20] sí [18:05:41] Huis, con lo que me cuesta usar el google translator para escribir en ingl�s. [18:05:43] Jajaja [18:06:07] dp07Daniel: para no molestar a los que no entienden español, habla en #mediawiki-es [18:06:08] Debo buscar entonces como comprobar el estado del mod_security en google. [18:06:19] Ok. [18:06:37] is there a decent guide on locking down a wiki [18:06:42] the ACL stuff is confusing w/ groups [18:06:56] got hit hard by smallers last night, cleanup was fun... [18:07:02] spammers* lol [18:07:37] figured I need to add a captcha on registration and only email confirmed users can post [18:07:45] or edit.. [18:08:08] !spam | ReadError [18:08:08] ReadError: For information about combating and handling spam in MediaWiki, see and . [18:09:31] thank goodness for phpmyadmin, made quick work of it [18:11:56] phpmyadmin? :( [18:12:08] don't mess with the database unless you know what are you doing! [18:12:33] I couldnt find a decent way to purge all entries of them through the web interface [18:12:41] I did however backup the database prior to making any changes [18:12:51] !e Nuke | ReadError [18:12:51] ReadError: https://www.mediawiki.org/wiki/Extension:Nuke_ [18:13:08] ahhhh, see I dont know about all these fun extensions yet ;) [18:17:54] Hello? [18:18:09] Johanna_: hi, what's up¿ [18:18:29] Hi Vulpix! I've got a very special question [18:18:43] I want to create a family tree in my mediawiki [18:18:48] I'm really a beginner [18:19:15] and I tried to use a code sample which I found in wikipedia [18:19:24] http://en.wikipedia.org/wiki/Template:Family_tree [18:19:40] but unfortunately it won't work in mediawiki [18:19:48] !wptemplates | Johanna_ [18:19:48] Johanna_: 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... [18:20:11] okay, there's a lot to learn, I guess [18:20:25] thanks for the hints! :) [18:21:58] Johanna_: re-using stuff from wikipedia is usually not the simplest or best way to get things done [18:22:30] templates on wikipedia are old and crufty. they have grown over generations of code changes and user churn. [18:22:53] it's often easier to learn to write your own, rather than to understand the convoluted logic using on wikipedia :) [18:23:03] Ah, I understand, therefore it wouldn't work :( [18:23:13] a family tree diagram is probably better done in SVG directly, and uploaded as an image [18:23:31] but if it is an image, I can't modify it... [18:23:42] Vulpix: it's prettier, but not better. much harder to change later, harder to cooperate on. [18:23:48] also, harder to search, etc. [18:24:04] is there any good website you could recommend on which I could learn the "mediawiki code"? [18:24:19] !templates | Johanna_ [18:24:19] Johanna_: For more information about templates, see . See also: !templateproblems , !wptemplates [18:24:36] !wikitext | Johanna_ [18:24:37] Johanna_: For help with MediaWiki's Wikitext syntax, please see . For an (incomplete) formal specification, see . [18:24:51] your first link says: Bad title The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters that cannot be used in titles. [18:25:12] Johanna_: the easiest way to make a tree is probably using pre-formatted text. it's not very pretty, but quite useful. [18:25:13] okay, got it :) [18:25:36] just start a line with one or more blanks (spaces), then you have full "typewriter type" control over the layout [18:26:01] you can build a family tree using that. i think i have seen people use thif for taxonomies on wikipedia [18:26:38] okay, as a beginner I'm allowed to ask very dumb questions right? How do I make lines and squares" in the code? [18:26:57] Thank you DanielK_WMDE. Bye! [18:27:22] I'm going to save all your hints and going to work me through! [18:27:32] thank you very much! [18:29:14] oh, Johanna left! why! [18:29:42] Vulpix: i guess we should tell people to just stay and lurk, instead of leaving once they got a first answer... [18:30:54] I wonder if we ever got a direct SVG editor working on-wiki [18:30:58] I'd sort of love that [18:31:07] * marktraceur adds to personal backlog [18:32:30] I'd like to have support for direct embedding of SVG images first instead of rasterization [18:32:38] Vulpix: Oh? [18:33:09] SVGs have the capacity to be either way bigger or way smaller than their scalar thumbnails, I guess. [18:33:28] e.g. I still have some hundreds-of-MB SVG files on my TODO list at Commons. [18:33:52] (and it would be super neat to use an on-wiki editor for them...) [18:34:39] marktraceur: I'm missing all the mouse events and animation stuff of SVG [18:35:21] http://upload.wikimedia.org/wikipedia/commons/6/6c/Trajans-Column-lower-animated.svg for example [18:37:27] a 3D model viewer would also be cool http://p3d.in/ [20:10:19] https://www.mediawiki.org/wiki/Manual:Installation_requirements is unclear as to whether PHP 5.5 is supported [20:10:48] GPH|Nikko: it is, but right now 5.3 is the most tested [20:10:55] (Wikimedia wikis still run on 5.3) [20:11:10] ok [20:11:17] i think there are several wiki farms or big wikis that run 5.5 too [20:11:57] we have php5.5 [20:12:12] that page links to https://bugzilla.wikimedia.org/show_bug.cgi?id=49975 which details issues with PHP 5.5, but none of the unfixed ones appears important [20:12:30] (only affecting some obscure extensions or obscure configurations, apparently) [20:12:32] the sidebar says it's not [20:12:41] GPH|Nikko: yeah… it lies [20:12:51] that's what I thought [20:12:52] thanks [20:14:10] i would fix it, but i can't figure out how right now and i'm busy :) [20:27:57] MatmaRex: FOund it: https://www.mediawiki.org/wiki/Manual:Installation_guide [21:33:25] WikiPage class was introduced in MW 1.18 -- does it fully replace the Article class? Where can I find a good description about these classes? (I am migrating some new code to MW 1.17 - thanks but please spare me the advice to move away from 1.17!!) [21:35:10] maybe i should ask this way - is the Article class slowly being phased out in favor of WikiPage? [21:36:06] <^d> It was meant to be a better separation between UI and backend code. [21:36:19] <^d> Article is the higher level UI & action handling. [21:36:41] <^d> WikiPage is the backend stuff like "delete the page" or "check permissions on the page" or "edit the page" etc. [21:37:08] <^d> Still too much crud in Article, but that's the plan at least. [21:37:09] <^d> :) [21:39:03] ^d, interesting thx for the comment [21:39:14] <^d> hypergrove: you're welcome [21:39:30] Can you translate the css of a normal style sheet to a media wiki css or something like that? [21:39:48] There's nothing special about MediaWiki CSS [21:40:11] Same as any site, it's just differently named elements [21:42:18] Reedy: how do you I use my existing style sheet on a media wiki edit page [21:42:52] [21:42:53] ? [21:43:22] Do I upload the css sheet to media wiki? [21:45:43] john_doe_jr: There is a page called MediaWiki:Comon.css that you can edit if you're an admin [21:45:54] Sorry, MediaWiki:Common.css (two Ms) [21:46:15] Any CSS you put there will be applied to all pages [21:48:55] RoanKattouw: I'm using a bitnami media wiki virtual machine….it's running on ubuntu…where would that MediaWiki Common.css file be at? [21:49:27] It's not a file, it's a page on your wiki [21:49:34] Named MediaWiki:Common.css [21:51:07] RoanKattouw: alright I'm trying to find it…I'm admin …I see Main Page > Recent changes, Radom page, Help, Tools, etc [21:52:43] john_doe_jr: In the search box at the top right, type MediaWiki:Common.css and press enter [21:52:47] That should take you to this page [21:52:55] And you should then be able to edit/create that page if you're an admin [21:53:30] RoanKattouw: awesome…took me right to it [21:55:41] RoanKattouw: could I just upload the css files I have…I have several ? [21:56:43] RoanKattouw: can i upload the javascript files that I have as well? [21:57:01] There is MediaWiki:Common.js which lets you do JavaScript, yes [21:57:13] You can't upload files directly, but you can copy and paste the contents of the files [21:59:32] can someone help me debug some resources weirdness? [21:59:33] https://pl.wikimedia.org/wiki/Strona_g%C5%82%C3%B3wna [21:59:45] if you try opening Echo right after page load [21:59:53] it will take you to the notifications page [22:00:03] if you wait few seconds it will work [22:00:47] or sometimes won't at all [22:01:09] works after canceled requests show up [22:01:10] to [22:01:11] https://pl.wikimedia.org/w/api.php?action=query&format=json&prop=extracts%7Cpageimages%7Crevisions%7Cinfo&redirects=true&exintro=true&exsentences=2&explaintext=true&piprop=thumbnail&pithumbsize=300&rvprop=timestamp&inprop=watched&indexpageids=true&titles=Stowarzyszenie+Wikimedia+Polska [22:01:19] and https://pl.wikimedia.org/w/api.php?action=query&format=json&prop=extracts%7Cpageimages%7Crevisions%7Cinfo&redirects=true&exintro=true&exsentences=2&explaintext=true&piprop=thumbnail&pithumbsize=300&rvprop=timestamp&inprop=watched&indexpageids=true&titles=Wikipedia [22:04:01] lazowik: if the flyout JS hasn't loaded yet, you get sent to Special:Notifications because that's the no-JS fallback [22:04:39] okay [22:04:42] but why so long? [22:04:53] sometimes even more than 10 seconds is not enough [22:05:25] ah, not related to that canceled requests [22:05:45] oh [22:05:50] are you talking about opening the flyout? [22:06:11] there's a bug for that I was looking for a minute ago, because it took 15s on meta for me [22:06:24] nah, not opening [22:06:32] e.g. I open the website [22:06:38] wait ~10 seconds [22:06:54] and I'm still thrown to non-js fallback [22:07:07] seems quite random [22:07:25] hmm [22:07:27] idk [22:07:58] check what mw.loader.getState('ext.echo.overlay') returns? [22:08:35] got "ready" [22:08:36] worked [22:08:39] second time [22:08:42] got "ready" [22:08:45] didn't work [22:10:43] eh, that's weird [22:10:48] Can you upload a number of png files at once using media wiki? [22:11:41] lazowik: file a bug? there have been some pretty major changes to the Echo JS in the past 2 weeks [22:11:45] !e UploadWizard | john_doe_jr [22:11:46] john_doe_jr: https://www.mediawiki.org/wiki/Extension:UploadWizard_ [22:11:58] legoktm: with what? [22:12:14] the only description I can come up with is "doesn't work" [22:12:21] not really helpfufl, eh? [22:12:21] that's good enough :P [22:12:25] *helpful [22:12:53] also [22:12:57] ULS not working [22:12:58] like [22:12:59] at all [22:13:19] maybe you have bigger JS issues? [22:13:47] marktraceur: how do I figure out my media wiki version number? [22:14:02] * lazowik goes to common.js and hopes not to fall from chair [22:14:10] john_doe_jr: Special:Version [22:16:01] is there a way on the website I can install an extension? [22:16:11] legoktm: debug works [22:16:14] uls also [22:16:20] resourceloader broken? [22:16:34] are you using firefox? [22:16:37] nope [22:16:39] Chrome [22:16:56] 37.0.2062.94 if you care [22:17:29] I only know of https://bugzilla.wikimedia.org/show_bug.cgi?id=69924 which is Firefox only [22:18:32] meh [22:18:48] maybe "just" a broken deployment somehow? [22:22:07] legoktm: uls works when not logged in [22:22:15] o.O [22:22:21] default-for-logged-in-gadget? [22:22:22] maybe it's some user js then? [22:22:30] Don't have any user js :p [22:22:43] logged in today for the first time :p [22:24:02] 3 gadgets on the wiki, all disabled [22:26:23] Oops, forgot legacy. [22:27:58] [Wikitech-l] MediaWiki Security and Maintenance Releases: 1.22.10 and 1.23.3 [22:28:10] there were no security patches I thought? [22:28:16] hexmode: ^ ? [22:28:28] Shouldn't be any security patches [22:33:16] hexmode: Why does it say there are no changes in translations yet the patch file shows changes in like a three dozen i18n json files? [22:33:33] legoktm: who can I poke about that? [22:34:01] lazowik: Krinkle or MatmaRex? I don't know much about client-side RL [22:34:17] hum? [22:34:21] o [22:34:23] cześć [22:34:43] MatmaRex: do you want to read up [22:34:43] what's related to client-side RL? [22:34:57] Krinkle: weirdness at https://pl.wikimedia.org [22:35:01] for logged in users [22:35:08] ULS does not open at all [22:35:11] echo sometimes opens [22:35:20] sometimes you have to wait ~10 seconds [22:35:30] lazowik: http://i.imgur.com/yITwP5Y.png [22:35:35] opened in < 1s [22:35:35] everuthing works for anons and for logged in with ?debug=true [22:35:45] mpfh [22:36:03] hmm hmm [22:36:06] wiat just one sec [22:36:30] compact user bar breaks that [22:36:41] Firefox is working fine, too [22:37:07] Krinkle: try with the beta feature [22:37:15] "Kompaktowy pasek osobisty" [22:37:19] yeah, that's broken [22:37:41] that's been broken for a while, CPB has a bug with dynamically added portlet links [22:37:42] such as ULS [22:37:42] and Echo [22:37:50] beta features can be buggy [22:37:56] okay [22:38:00] it's been filed, I guess they're working on it. [22:38:03] sorry for buggin ya [22:38:15] forgot that beta is beta :) [22:38:33] Echo's portlet link is added via PHP, not JS [22:38:47] lazowik: btw, pl.wikimedia.org is overwriting link colors in a very annoying way [22:38:50] its' breaking stuff [22:38:54] Krinkle: I know [22:39:01] they just started that today [22:39:04] e.g. tabs that are supposed to be black (the current tab) is now blue [22:39:14] told them it's too much to overwrite [22:39:18] won't listen [22:39:23] and in CPB all items are blue even when hovering them (so blue on blue) [22:39:27] k [22:39:35] lazowik: got a link to discussion? [22:39:45] Krinkle: no discussion :p [22:39:54] wait a sec [22:40:17] if (mw.config.get('wgPageName') == '10_urodziny_polskiej_Wikipedii,_Poznań_2011' && jQuery.inArray(mw.config.get("wgAction"), [ 'view', 'purge' ] ) > -1) { [22:40:17] jQuery(document).ready(jQuery('#firstHeading').css('display', 'none')); [22:40:19] Krinkle: TarLocesilion wants to change colors [22:40:19] O_O [22:40:32] that must be the most rediculous way of hiding a header on 1 page I've ever seen [22:40:42] also half-broken in a hilarious way [22:40:47] it passes a function call to .ready() [22:40:51] lazowik: what's going on, dude? [22:40:53] so it doesn't actually wait for ready [22:41:14] https://pl.wikimedia.org/w/index.php?title=MediaWiki:Common.js [22:41:33] https://pl.wikimedia.org/w/index.php?title=MediaWiki:Common.css [22:41:37] yeah, !important. [22:41:41] that can't go right [22:41:49] TarLocesilion: ^ told ya [22:42:04] yep, say it to Yarl, told ya :p [22:42:33] they're shooting themselves in the foot. later in '.rss a' they need to use !important, again. It's a never lasting arms race. [22:43:00] maybe the best would be use sth like on wikimania wiki [22:43:05] Use the same selector as mediawiki, not stronger, not weaker, but the same. Then change the color within that. That way it'll overwrite (because common.css loads last, it wins, good), without needing !important. [22:43:14] That's what wikimania does too [22:43:18] Krinkle: I'm pretty sure that !important with rss was even before "recolouring" [22:43:24] <3 [22:45:16] Alright I installed the uploader but I don't see the ability to upload multiple files? [22:45:16] Krinkle: they want sidebar, footer etc. also [22:45:20] not only content [22:46:43] Would like to write an extension that only adds a hook if appropriate based on a global set in LocalSettings.php. The most tempting way to do this is to add a function to $wgExtensionFunctions. But Manual:Hooks specifically says not to do this (though I noticed that GlobalPreferences & Semantic Mediawiki do it anyay). So what is the correct way? [22:51:36] lazowik: footer doesn't override 'a' will apply there naturally [22:51:46] lazowik: sizebar overrides, so re-use that selector to set that one too. [22:51:52] mhm [22:51:56] e.g. a, .portal li a {} [22:51:59] which ever ones are relevant. [22:52:02] and probably in Vector.css [22:52:06] Indeed [22:52:17] all of it should be in Vector to be safe [22:52:24] blue might not be readable in other skins [22:52:44] and certainly not relevant on mobile [22:53:01] Krinkle: mobile doesn't have domain even :D [22:53:11] https://gerrit.wikimedia.org/r/#/c/156596 [22:55:04] Krinkle: thanks, will try to clean that up tommorow [22:55:06] js also [22:56:31] Ike: GlobalPreferences does some evil things, what you should do is set the hook unconditionally, and in the hook, check the value of the global and exit out early if it's disabled [22:58:28] legoktm: Thanks. Will do. [23:00:33] legoktm: thanks for help :) [23:00:48] :) [23:02:01] Krinkle: "a never lasting" --> "an everlasting" :-) [23:02:20] 'night [23:02:24] I enjoyed reading your JS/CSS feedback. [23:03:43] Carmela: haha, yeah, I wasn't even 100% I made a typo [23:03:53] I often confuse the logic of ever/never in English idoms. [23:04:16] rather convenient that the article becomes 'an' and 'a' respectively, so grammar is always right [23:04:24] an ever a never [23:52:03] how do u delete an image using media wiki admin task? [23:54:58] john_doe_jr1: what's an "admin task"? you can delete an image just like any other page [23:56:13] jackmcbarn: well, I when to the upload files page …it shows me the png files but it doesn't allow me to delete them even though I'm admin [23:56:41] john_doe_jr1: what happens when you try to delete? or do you not even have a delete button? [23:57:15] jackmcbarn: I don't have a delete button for some reason [23:59:12] john_doe_jr1: on the file page, if the url has index.php in it, put &action=delete on the end. if not, put ?action=delete on the end. then see what error message you get.