[00:42:15] is there a way to get the number of unique contributors that a wiki has gotten [00:42:41] I know Special:Statistics has how many registered users there are but on wikia wikis the number is ridiculously inaccurate for a single wiki [00:44:13] * cathfolant shrugs [00:44:19] Wikimedia wikis do the same thing. [00:44:35] So do all connected wikis, like ShoutWiki and Orain [00:44:42] yep i know [00:44:59] You were being Wikia-centric :P [00:45:27] the wiki I'm trying to get data for is a wikia wiki that's why I said that [00:45:39] http://lego.wikia.com/wiki/Special:Statistics [00:46:04] trying to fill out some forms about our community and I'd like a number of how many users have actually ever edited anything [00:46:52] ah ok. [00:47:09] our community being the one that's no longer on wikia but I still need data from the 8 years we were on wikia lol [00:47:09] on WMF wikis Registered users is just user accounts on that wiki [00:47:13] sorry, don't know a way. Was just saying that I'm annoyed by it too [00:47:38] Reedy: really? In my experience the number's always ridiculously large [00:47:54] https://en.wikipedia.org/wiki/Special:Statistics 23,094,817 [00:48:03] https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Statistiques 1,998,123 [00:48:08] Lots of people never edit [00:48:12] And then you get spam accounts [00:48:41] would there be some script I could make to go into the SQL revisions table and maybe count how many different items there are for the revision user? [00:48:59] * georgebarnick knows nothing about making scripts that do anything with SQL [00:49:01] if it's a wikia wiki, you wouldn't have sql access ;) [00:49:17] I could do it on our new site where we forked over all the revisions [00:49:28] so it would have the revision history for all the pages we imported [00:51:07] select count(distinct rev_user) from mw_revision; would be a very crude result [00:51:20] id of 0 would count for all anons [00:51:21] georgebarnick: i don't suppose semanticmediawiki lets you query user info does it? that's enabled on some wikia wikis [00:51:55] SMW is enabled on Brickipedia so if you could tell me how to do that I could try [00:51:56] select count(distinct rev_user_text) from mw_revision; [00:52:06] you get some false positives from imports from other wikis [00:54:23] gah i know nothing about sql when it doesn't work in a GUI :P how do I get to where I need to be to execute that command [00:54:53] depends on your setup :) [00:55:04] it's mariadb [00:55:17] you can do it through phpmyadmin (ugh) if you have that [00:55:20] which is gui [00:55:24] I'm in the server's terminal right now [00:55:51] mysql -u username -h hostname -p [00:57:41] georgebarnick, SMW lets you query the most recent editor, but i don't think it'll get all contributions :( [00:57:41] Reedy: done [00:57:50] samwilson: aw :( [00:58:06] so I'm logged into mariadb now [00:58:13] use dbname [00:58:25] alright [00:58:29] now what [00:58:30] select count(distinct rev_user_text) from revision; [00:58:36] okay [00:59:02] yay it worked! :D [00:59:24] 19402 is a much more believable number than the 12 million Special:Statistics says on Wikia :P [00:59:27] thanks a ton Reedy [01:00:35] now did you say that wasn't counting anonymous contributors or was counting them? [01:03:21] was [01:03:55] select count(distinct rev_user_text) from revision where rev_user > 0; [01:22:18] alright thanks Reedy! [03:37:20] was page views completely deprecated or was it replaced with something else? [08:39:39] Hi. I'm not so up to date with the PDF creation saga. [08:39:44] Is it still handled by Extension:Collection? [08:40:00] Nemo_bis: ^ [08:48:13] aharoni: sure [09:25:53] "we have a new technical writer " orly https://www.mediawiki.org/wiki/Frontend_standards_group/2014-11-07-Weekly [10:15:37] hi, i'm setting up a fresh mediawiki on Debian and am using the debian packages. Works fine. Only problem: I want to authenticate my users against LDAP (AD LDAP from samba4), which works, if I don't use wgLDAPAuthAttribute to filter my users. If I leave it blank, it works, but all filters fail, also the filter which works on an old VM. Is there any documentation, how this attribute has to be... [10:15:38] ...set in 1.19.20? espacially the syntax, because I read, there should be no () ? [10:21:45] Hey all, does mediawiki has a rest interface to fetch’s specfix part’s of a website? [10:21:58] For example this URL : contains some code [10:22:10] and is there a REST method to just fetch teh code as text? [10:24:45] If I am going to change group user rights for multiple users via the api, do I get a user token per person having the rights change, or am I receiving a token for me as the changer? [11:16:50] greetings! can anyone recommend an extension that handles image/datamanaging better than the special:imagelist page of vanilla mediawiki? the search function there seems not working as intended [11:24:42] Search function? Never heard of a search function there [11:28:31] there is a basic one but it doesn`t really work.Like,if you want to find the picture "Kittens.jpg" you`d have to search for "ittens" or it doesn`t show any matches [14:00:25] Hi, I'am really confused, the API move action is giving me articleexists errors ("The destination article already exists and is not a redirect to the source article") when I have no doubt that it is a redirect to the source article [14:01:03] jem: Hi, Really Confused, I'm Mark. [14:01:05] * marktraceur looks [14:01:09] :) [14:01:11] Thanks, marktraceur [14:01:20] jem: Any particular site? [14:01:23] es.wikipedia [14:01:56] I was trying to move some "X (desambiguación)" to "X" [14:03:06] (And all the "X" are redirecting to "X (desambiguación)") [14:08:27] OK [14:09:06] Which means...? [14:09:25] jem: I see [[X]] on eswiki, it's not a redirect at all [14:09:31] Oh [14:09:32] It's a huge article [14:09:48] Sorry! X means a variable in this case [14:09:52] A list of articles [14:10:21] 100+ articles with the form "(title of the article) (desambiguación)" [14:10:31] To be moved to "(title of the article)" [14:11:04] I hope I have explained better :) [14:11:40] (That's why I was talking about "some X", "all the X"...) [14:16:57] Oh. [14:17:11] jem: Can you share an example? [14:17:17] Yes [14:17:21] jem: Also, how did you generate the list? [14:17:53] The list is in https://es.wikipedia.org/wiki/Wikipedia:Tabl%C3%B3n_de_anuncios_de_los_bibliotecarios/Portal/Archivo/Miscel%C3%A1nea/Actual#Traslados [14:18:08] I copied and pasted, and then extracted the names [14:18:42] Then with some Unix cut I got the names without the parenthesys part [14:19:08] marktraceur: Salguero (desambiguación) -> Salguero , for example (the last of the list) [14:19:52] Ah, there are two lists, sorry [14:19:55] https://es.wikipedia.org/wiki/Wikipedia:Tabl%C3%B3n_de_anuncios_de_los_bibliotecarios/Portal/Archivo/Miscel%C3%A1nea/Actual#Traslados_2 [14:20:19] That's the second one, the first one was solved manually by another sysop [14:22:41] Hrm [14:22:47] I just manually moved one without issue [14:23:00] jem: Can you manually move them? [14:23:32] I guess yes [14:23:37] But I can try if you want [14:23:48] The problem is within the API, I think [14:23:58] OK, well, that's an important thing [14:24:08] jem: Do you have a tool that can do this to any page on any site? [14:24:47] Yes, to any Wikimedia SUL site [14:24:55] On any* [14:25:40] jem: OK, do it with https://test.wikipedia.org/wiki/API_page_move_test_%28disambiguation%29 please :) [14:25:45] Well, my bot has bot flag only in 2-3 projects, but I could do use my main account [14:25:53] Ok [14:25:56] Let me try :) [14:25:59] jem: It only needs to run one request, the bot flag shouldn't be necessary [14:26:08] Ok [14:34:28] jem: Any luck? [14:36:05] marktraceur: Sorry [14:36:13] I'm having problems getting the token in test.wiki [14:36:14] No problem [14:38:23] Ok, the problem is in the login part [14:38:39] But I have no time left, I must go out to have lunch [14:39:00] Oh, OK [14:39:24] marktraceur: Could I disturb you again in 2 / 2:30 hours? [14:39:31] jem: If you could report a bug when you get back...it's a hard one to repro, and I'd like to have someone with the tools available look at it more. [14:39:43] We can ping Brad or someone when you get back. [14:39:47] Ok [14:40:17] I'll keep on trying and report if necessary [14:40:28] Hope to read you later [14:40:31] And thanks for the help :) [14:40:32] Cheers [16:08:15] hi [16:13:08] Hi gecco, can we help you? [16:14:25] i'm trying to have a mediawiki visible under two different urls [16:14:51] (it's inside a virtualhost with an alias) [16:15:31] is there a way to avoid a new login request when the user switch url ? [16:21:52] gecco: do the two URLs share a same domain? [16:22:01] (e.g. a.domain.tld and b.domain.tld) [16:22:05] yes [16:23:12] How can I use a files DESCRIPTION as a CAPTION in another page ? [16:24:51] gecco: so, yes, it could be achieved rather easily, as the login cookie could be shared. But if you serve the same content wiki content in a. and b. you would get better results with your vhost linked to a and b as a vhost redirecting the URL to a. [16:25:58] gecco: MediaWiki isn't shipped out of the box with a working solution for the shared login. Wikimedia projects use https://www.mediawiki.org/wiki/Extension:CentralAuth. [16:27:05] b cannot redirect on a as they reside on different servers [16:27:44] gecco: if you have custom requirements and know the matter, you can build a custom solution with https://www.mediawiki.org/wiki/API:Login [16:29:34] altin: there is currently no mechanism out of the box to solve this issue, you could be interested to look what https://www.mediawiki.org/wiki/Extension:MultimediaViewer does to get the caption. [16:30:33] altin: for how many images do you need this feature? [16:32:00] Dereckson 100+ [16:32:51] Dereckson: well I'm trying to use that within wikipedia not my own installed mediawiki [16:33:48] altin: if > 500 with a planned growth to thousands, I would have suggested a Wikibase installation to describe captions and other images properties as structured data. Then, you would have been able to do stuff like {{ImageWithCaption|I1705}} with ImageWithCaption a template writing [[Image:Image matching I1705.jpg|thumb|right|}}. [16:33:55] altin: ah in the future that will be possible [16:34:06] Yeah, we're getting a plan together for image metadata in wikibase [16:34:20] Though it may be far future... :( [16:34:20] altin: there are plans to put a Wikibase installation on Commons. [16:34:40] altin: so describe and use images metadata on Commons will be like properties on Wikidata [16:34:58] altin: and that will be queryable too by other wikis / currently you don't have any solution for that [16:37:14] Dereckson, thanks. seems CentralAuth is too complex for my application [16:38:00] i have another question: is there a way to use the $wgActionPaths[$action] = "/$action/$1"; trick in an included php file? [17:06:50] marktraceur, jem: That page move issue, as far as I can tell, seems to be that the error message is slightly inaccurate. While [[es:Salguero]] is a redirect to [[es:Salguero (desambiguaci�n)]], it has more than one revision which disallows the move-over-redirect. The core page-move code doesn't report that as a separate error, and the message doesn't say something like "single-revision redirect". [17:12:07] Ahhh [17:12:27] That could be it, anomie [17:12:46] Let me search a redirect with just one revision [17:12:58] (in that list) [17:26:53] anomie: You're completely right (although I was pretty sure of it before the test :) ) [17:27:51] And yes, the error message is inaccurate. Proof is that it has confused me (and I have some years of experience!) [17:28:37] I'll try to convince whoever to change it... when I have more time [17:29:05] Thanks for the help, and to marktraceur too :) [17:30:45] Hadn't I already asked jem about that hours ago [17:31:02] Yep, 3 h ago 15.28 < Nemo_bis> jem: does the redirect have more than one revision? [17:32:03] Yes, Nemo_bis, you're right, but that was in #wikimedia-tech, and I forgot to check there after I was answered here [17:32:17] Anyway, credit for you too :) [18:11:20] Where can I find more information on MediaWiki's Google Code-in tasks? [18:13:47] Hi bool [18:13:59] Don't we yet have tasks in melange? [18:15:53] Nemo_bis: I am looking at some of the coding tasks from last year. What specific coding skills do I need to contribute to MediaWiki? [18:17:04] bool: we have many sorts of tasks [18:17:35] Nemo_bis: Yes, I mean specifically the code based tasks. [18:18:02] Did you see the draft list at https://www.mediawiki.org/wiki/Google_Code-in_2014 [18:18:44] bool: if you do some of the bug 38638 tasks, I can approve you the tasks later in melange even if they're not currently there [18:18:49] * Nemo_bis checking how to register [18:19:13] Begins December 1, oh. [18:20:35] Meh, I'll assume the ToS are the same as last year, when I read them carefully [18:21:36] Nemo_bis: Since I don't know much about MediaWiki and your tasks. I thought I'd do some research before the contest begins on the first. I know a bit of python. What other skills do you think I should have? [18:22:09] bool: well, if you know Python you can probably at least look at PHP without getting scared :) [18:22:41] That's often enough for so-called "easy" bugs, especially some i18n ones where most of the work is understanding how what the user sees interacts with the code [18:27:05] Nemo_bis: I've never done PHP before. But I could learn if its essential. But, I'm pretty new to Open Source Development. I have done Documentation and Outreach tasks in the past, but I want to get started on coding tasks. But, Iam not sure how to get started or go about it. [18:39:12] ouch, gone [18:39:22] I hope not lost :) [19:44:57] Hallo all! Can anyone tell me if there's an easier way to make a WebRequest object cough up an array of inputs other than by getting raw POST? [19:45:42] Trying to get MediaWiki classes to behave the way you want? [19:45:44] *again*? [19:46:10] ->getValues() ? [19:46:21] Reedy: Yeah. I just saw that [19:46:31] To be fair. V is very, very far down the list [19:46:46] marktraceur: Let's be real. Is making MW classes behave a battle I'm ever going to win? [19:46:54] Reedy: Thanks though! [19:47:27] Ulfr_: Nope. The only winning move is not to play. [19:47:48] marktraceur: You go ahead and tell my boss that. I'll just be in another country. [19:48:06] Ulfr_: Just show him Tic Tac Toe. [19:48:18] Say "I'm MediaWiki. Try to beat me." [19:48:36] Also, don't lose [19:48:51] That really was an excellent movie. [19:49:00] How do you beat an unbeatable AI? Throw him a curve ball. [19:54:12] Oh, thanks HTMLForm. Thanks for letting me know that "There are problems with some of your input" Heavens forbid you actually tell me what gave you a tummy ache. [19:57:44] Ulfr_: I'll see you that and raise a runJobs non-error failure: "[runJobs] Failed to start cron API: received 'HTTP/1.1 200 OK" [19:57:59] Rosencrantz: Re-raise: Too much recursion. [19:59:27] Hmmm [20:00:00] is there such a thing as a wysiwyg editor for media wiki? I am looking for assistance building tables [20:00:36] !visualeditor [20:00:36] VisualEditor is a project to create a simple editor for MediaWiki that would make it far simpler for people to contribute to Wikimedia projects. See also https://www.mediawiki.org/wiki/VisualEditor and #mediawiki-visualeditor channel. [20:00:43] mnathani: ^ [20:00:58] Rosencrantz: My code was valid. I just didn't bring Leonardo DiCaprio [20:02:02] legoktm: The longer i plug away at this stupid form the more I am in awe of what you managed to do :| [20:02:07] heh [20:02:18] I spent a good amount of time playing with it too :P [20:02:39] Visual Editor doesn't let you manage tables IIRC [20:02:47] legoktm: Okay, well riddle me this. I've got step 2 working. Life is beautiful [20:02:49] you can change the text inside them though [20:02:57] BUT IT SAYS THERE'S A PROBLEM WITH MY INPUTS. [20:03:09] Doesn't say why. I can't find a problem. [20:03:19] and there's no shutUpAndDrive() method :| [20:03:40] Vulpix: Who uses tables. Honestly. [20:04:38] mnathani at least, who askied specifically for such a feature :P [20:04:39] Ulfr_: you're using validation-callback right? [20:04:41] *asked [20:05:10] legoktm: Nope! There's precisely zero need for that. This is being written for doctors. They're not allowed to type [20:05:12] err [20:05:14] hang on [20:05:23] Yeah, I just have a submit-callback [20:05:25] no validation callback [20:05:38] uhh [20:05:44] can you use a validation-callback? [20:06:18] Sure! What is it. I can't find any mention in the class thingy [20:06:20] look at what https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/master/includes/specials/SpecialGlobalUserMerge.php does for the callbacks [20:06:49] So if I was to just have a method that returned true [20:06:59] it would shutUpAndDrive()? [20:07:56] uhh [20:08:14] basically validation-callback lets you check each parameter and check whether it's good or not [20:08:26] if you return true, it's good, otherwise return a string that is the HTML error message [20:09:31] legoktm: Presumably the error printing on page 2 means I need to rubber stamp stuff on page 1? [20:09:52] * Ulfr_ knows its a bad idea to rubber stamp. [20:09:54] yeah, you should [20:11:29] NOPE! The only ones I'm not rubberstamping are info fields and it's still whining ;; [20:13:07] pastebin your code? [20:13:53] thanks legoktm , Vulpix [20:15:10] legoktm: http://pastebin.com/FLFvNy3P [20:15:13] <3 [20:15:55] free as in pastbinned [20:16:43] Ulfr_: well first, you have an sqli :/ [20:16:54] legoktm: I know I do. [20:17:18] This isn't production code, I just want it working before I start adding protection [20:18:02] ok, so what's not working? [20:18:30] I haven't the foggiest. The form uses the second iteration of formDescription to define, everything looks perfect, and validation whines about problems with input [20:20:34] legoktm: http://imgur.com/vyyBkbG [20:20:57] oh [20:21:07] Ulfr_: try adding a return true; at the bottom of trySubmit? [20:22:04] no joy [20:25:14] legoktm: I can't really see a problem, can you? :o [20:25:36] Is there any reason you can think of that just HIDING that bloody div would bite me in the arse? [20:26:16] well [20:26:20] it won't let you go further [20:26:31] I really don't see what's wrong with it. [20:30:49] * Ulfr_ whimpers [20:32:55] legoktm: Do I have to say it's a multipart form anywhere?! I'm about to lose my mind. [20:46:24] legoktm: Last time I'll bother you, I promise! Does this make ANY sense to you? https://doc.wikimedia.org/mediawiki-core/master/php/html/Preferences_8php_source.html#l00114 [20:46:48] I read through it once and then ran away [20:46:56] But it says validation ;; [21:18:01] okay, I'm just trying to make the stupid thing skip that step in validation by extending the class and making my own trySubmit, but I'm getting errors about undefined methods. What do I do to fix this ;; [21:28:59] OK Im trying to figure out why my wiki is having sigs in CET timezone [21:42:19] I'm trying to create a template for showing the output of a shell command. I'm displaying white text on a black background for this, using a tag with a style for the colors. The problem I'm having is that I can't seem to make it work for multiple lines. It just concatenates the lines together into one line. I can't seem to find a way around this. Anyone have any clues as to how to overcome this? [21:43:06] emacer: use to preserve line breaks [21:43:20] Vulpix, wow, I haven't seen that tag. I'll try it. Thanks! [21:43:22] or even
 (but it may do weird things inside a template)
[21:44:37] 	 yeah, 
 wasn't working
[21:44:59] 	 emacer: you could convert all  \n's to \n\n
[21:45:10] 	 nah,  doesn't even seem to be recognized
[21:45:18] 	 Betacommand, how?
[21:45:35] 	 oh, hmmm,  was integrated into core recently, it was part of an extension
[21:45:40] 	 !e Poem
[21:45:40] 	 https://www.mediawiki.org/wiki/Extension:Poem
[21:45:42] 	 emacer: the  requires and extension 
[21:46:05] 	 hrm, any other ideas?
[21:46:09] 	 emacer: every newline needs to become two
[21:46:17] 	 I don't really want to install any more extensions unless I absolutely have to
[21:46:22] 	 I use notepad++
[21:46:26] 	 or maybe it hasn't been integrated yet? hmmm, I'm confused
[21:46:35] 	 Betacommand, I use Linux
[21:47:24] 	 darn, https://bugzilla.wikimedia.org/show_bug.cgi?id=52061 it's still in review
[21:48:30] 	 emacer: you can use 
 inside a template, but it's a bit tricky. See for example: http://disable.wikia.com/wiki/Template:Code
[21:48:37] 	 emacer: any good text editor should let you
[21:48:51] 	 I used to use dokuwiki, and there was a really slick extension for it that made the output look like it was in a terminal window and everything.  I haven't found an equivalent for MediaWiki, so I need to figure out how to do this here.  I would be willing to install an extension that provides the full shebang...
[21:49:31] 	 Betacommand, nah, I meant I wanted the template to do the conversion automatically.  I have a team of people who will be using the templates, and they'll complain if they have to do that manually.
[21:50:30] 	 emacer: then using the code template would be the closest
[21:50:38] 	 or wait... one sec
[21:51:10] 	 Vulpix, interesting...
[21:51:31] 	 for multiline, better to use 
 that . You can just use 
 without a template...
[21:51:36] 	 Vulpix, are you sure that's not just there so that it doesn't look wrong when the template is viewed directly?
[21:51:47] 	 lemme try that
[21:51:59] 	 emacer: try using 

[21:52:53] 	 emacer: the trick is to use <pre>. So the 
 is only inserted on the page, not in the template itself. Betacommand:  
 already implies , thus breaking templates
[21:53:57] 	 or try 
[21:55:18] 	 pre doesn't seem to work at all with the style
[21:55:25] 	 Betacommand: isn't that another extension? :P
[21:55:34] 	 oh okay
[21:56:04] 	 Vulpix: I think thats in core
[21:57:02] 	 nah, that doesn't work
[21:57:08] 	 it breaks up text into multiple lines
[21:57:10] 	 emacer: well, you can style it with CSS on the entire wiki. At least, I think you can give it a class like 
. You can define CSS globally as explained in https://www.mediawiki.org/wiki/Manual:Interface/Stylesheets
[21:57:18] 	 I have the color of text changing within one line
[21:57:43] 	 Vulpix: yeah its not code :(
[21:57:48] 	 *core
[22:02:44] 	 hrm
[22:03:11] 	 just got it back to where I was.  There's no way to mark several pages' versions as belonging together, like a tag in git, is there?
[22:03:33] 	 emacer: have you heard about "categories"?
[22:03:43] 	 !category
[22:03:43] 	 http://www.mediawiki.org/wiki/Help:Categories
[22:04:11] 	 lemme look
[22:05:19] 	 at the bottom of the page it presents the category / categories of the page, and following those links you can find all pages, media or even subcategories belonging to that category
[22:06:18] 	 uh, I was looking for a way to sync the version control versions of multiple pages at once
[22:06:52] 	 we already use categories.  Template: is a category, actually.
[22:06:58] 	 ah, like a tag or branch... no, that's not possible with MediaWiki
[22:07:42] 	 all pages display only the last version. Or maybe a "stable" version if you have flagged revs installed
[22:08:18] 	 hrm okay thanks
[22:58:08] 	 Does anyone know how to fix this, Error creating thumbnail: Unable to run external programs, proc_open() is disabled. Error code: 1
[23:00:05] 	 smoss: one sec
[23:02:09] 	 smoss: do you use wgUseImageMagick  ?
[23:02:12] 	 smoss: check php's safe_mode and disable_functions settings
[23:03:04] 	 Betacommand: Yes, it is set as true
[23:03:21] 	 smoss: set it to false
[23:06:25] 	 Thank you Betacommand.
[23:07:05] 	 smoss: odds are you have an over restrictive web host
[23:07:27] 	 Yea, that not my department. I was was appointed to run the Fleet Wiki