[00:36:02] TE MATARE ALVARO MOLINA.. TE ARREPENTIRAS DE HABERME DELATADO CON JEM [00:36:04] HHAHAHAHAH [00:47:41] hello [00:47:59] i'm creating a template and i'm a little confused about how the parameters work [00:51:29] jfive, what's your question? [00:53:55] !ops [00:54:21] Cameron11598: ? [00:54:31] wpayuda71626 has joined (~be2ea74a@128.199.207.95) [00:54:32] Platonides has kicked wpayuda71626 (wpayuda71626) [00:54:32] wpayuda71626 has joined (~be2ea74a@128.199.207.95) [00:54:33] 17:54 Platonides has kicked wpayuda71626 (wpayuda71626) [00:54:35] wpayuda71626 has joined (~be2ea74a@128.199.207.95) [00:54:37] Platonides has kicked wpayuda71626 (wpayuda71626) [00:54:39] wpayuda71626 has joined (~be2ea74a@128.199.207.95) [00:54:41] Platonides has kicked wpayuda71626 (wpayuda71626) [00:54:43] ChanServ has changed mode: -o Platonides [00:54:47] Cameron11598: I see that [00:54:53] Lol [00:54:56] MIERDA AAHHAHA MUERETE [00:54:59] AAHHQIWF [00:55:02] Cameron11598: that is an op working [00:55:19] Betacommand: it's a script [00:55:31] Not an actual person kicking [00:56:59] Betacommand: Well that was unintentional [01:00:21] Cameron11598: don't paste large blocks of text [01:00:38] Yea I figured that now I got to get my bouncer unbanned somehow... [01:00:56] you'll have to poke a staffer if you can find one [01:06:15] ahhh [01:07:37] yeah we decided Bot-Platonides is better than the real one :D [01:31:15] MaxSem: sorry got distracted [01:31:24] so i have a template at Template:Checkmark [01:31:28] it looks like this: [01:31:28] http://hastebin.com/esetuyetub.django [01:31:49] I'd like to somehow add an option to sometimes center the checkmark and sometimes not [01:32:09] maybe by adding an extra class if a "centered" option is provided, for instance [01:32:29] but in the documentation i'm reading i'm not quite seeing what that would look like [01:33:22]
[01:33:43] (assuming you have ParserFunctions) [01:33:51] (which you should really have) [01:34:31] https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifeq [01:35:22] ahh ParserFunctions is an extension! that completely de-mystifies the documentation i was reading lol [01:36:13] MaxSem: thanks [02:29:11] Can I get here aby API help? [02:29:24] any* [02:31:23] COOurb, yes [02:31:55] ok, I need to make a simple search form with javascript. [02:32:29] But I still didn't get what parameters I should set in API string [02:32:45] I think it should be action=query [02:32:58] I still reading [02:33:33] and main questions: how can I set number of pages returned? [02:34:29] which parameter make a search with multiple pages in response? [02:34:57] I mean, if title is == to what I set, it should return some near' [02:35:02] 'near' pages [02:35:43] and how to also get some short info about pages that it returns [02:36:19] what I want is kinda list of structures with id / title / short-info [03:54:02] ok, I've got what i want [03:55:26] now: hot to get links to the files from the pages returned by list=serach? [14:49:06] hi! [14:49:23] so i'd like to show one skin if the user is logged in, and another if the user is anonymous [14:49:37] but the $wgUser object is null at LocalSettings.php [14:49:56] so im not sure how to test if the user is logged in at such an early stage int he execution [14:50:18] im looking for a way to do that, or maybe some hook later on in the execution but before the skin is loaded .. [14:50:22] anyone knows? [14:55:06] Sophivorus: you could probably use the RequestContextCreateSkin hook to do this [14:55:24] !hook RequestContextCreateSkin [14:55:24] https://www.mediawiki.org/wiki/Manual:Hooks/RequestContextCreateSkin [14:55:42] thanks! i'll try it out [14:59:32] MatmaRex: it worked, thanks !! [14:59:43] yay :o [16:30:21] platonides necisto ayuda [16:39:22] I use this query to get the latest contribution date to a specific group of users, but when I run it, it take a long time to execute. Is there any optimizations to the query?. [16:39:25] select (SELECT rev_timestamp FROM revision WHERE rev_user = user_id order by rev_timestamp asc LIMIT 1) as 'last' from user where lcase (user_name) not like "%bot%" and user_editcount >100; [16:44:34] ASammour: not really, it's just a slow query. if this is your own wiki and you maintain the database, you could try adding an index on user_editcount. otherwise nothing can be done. [16:46:54] MatmaRex: Thanks for your reply. Do you mean there are no another queries that can establish this goal?. [16:50:26] ASammour: no. there is no index on user_editcount, so the database has to scan all rows to give you users with more than 100 edits. [16:51:49] (for the "bot" part, you could join with user_groups table instead of looking at the username, which would probably be faster, but it doesn't matter as long as the user_editcount problem exists) [16:57:13] MatmaRex: I've already used inner join with table user_groups, then I remove it; because making join between user, user_groups, and revision tables is a catastrophic query!. [16:58:08] it wouldn't be catastrophic. scanning the whole user table is surely worse. [19:10:25] hey guys [19:10:54] can anyone tell me why im getting this error when installing an older version of mediawiki [19:10:56] http://prntscr.com/c231xc [19:11:18] Need to look waht's in that box [19:11:27] have a look using browser developer tools [19:11:29] its a screenshot of the error [19:11:44] I know [19:11:44] Creating main page with default content... failed [19:11:47] But there's the big X [19:11:53] and No text next to it [19:11:58] The error would like be in there [19:12:01] how do i fix that? [19:12:29] f12 right? [19:12:42] yeah, that should let you view it [19:13:49] pfft no idea [19:13:56] not the most tech savvy perosn in the world [19:15:55] where am i looking? [19:27:56] Guest9542, which web browser? [19:38:24] im in google chrome [19:45:12] Guest9542, see https://developer.chrome.com/devtools [19:45:22] how to use the developer tools of your browser [19:57:19] what am i looking for i had the dev tool i just wasnt sure where or what i was finding :/ [20:47:38] Any changes at instant commons in the last time? In one of my wikis it doesn't work anymore [20:48:43] it went HTTPS-only [20:49:32] Alice-Chodura: https://www.mediawiki.org/wiki/InstantCommons#HTTPS ? [20:50:16] oh. Thank you! now i'll fix my wiki [22:43:51] * Betacommand grumbles about preventing API logins [23:09:56] Hello, I am trying to delete an article but it's giving Permission denied (permissiondenied) [23:10:18] Even on my self hosted mediawiki, but I also tried it on Wikipedia [23:11:01] My own article page [23:20:06] Doesn't matter if it's your own article [23:20:16] If your account dosn't have the correct rights, you can't delete it [23:23:51] Reedy: but I am the first user of the install, shouldn't I have all the rights by default? [23:36:50] ardian_: have a look at Special:ListUsers and see what groups you are in [23:43:06] p858snake: (bureaucrat) [23:48:10] ardian_: you need to be an administrator to delete pages. as a bureaucrat, you can give yourself administrator rights [23:48:19] using the page Special:UserRights on the wiki [23:49:34] MatmaRex: I added my user to sysop, seems to fix the issue [23:50:24] right. sysop = administrator [23:50:49] MatmaRex: thanks for the UserRights page, I did it thorugh the cli