[03:14:28] you there my buddy old pal tale? [03:52:52] You're back. [03:53:14] who? [03:53:34] fdrdox. [03:54:04] im really starting to love mediawiki [03:54:08] Nice. :-) [03:54:10] ive got it figured out mostly [03:54:21] now i have to spent hours and hours typing articles [05:42:50] https://meta.wikimedia.org/wiki/MediaWiki_Ideal [06:11:53] Hello, I have linking problem with MobileFronend of my wikis. I have two wikis, one in english and other in german. Wikis work great together on desktop view but on mobile view I cant get the linking work properly. My URL´s for my wikis are: english - ´mainwiki.com´ & 'm.mainwiki.com' and for german 'de.mainwiki.com' & 'de.m.mainwiki.com'. I have tried differen variations on $wgMobileUrlTemplate but I cant get it to work. Any [06:13:59] I mean linking between articles i.e. 'Read in another language' same as on desktop view language link appers on the left if I have linked it on another language. [06:54:39] fdrdox: I have asked you not to highlight my name. Please stop doing that. [06:56:16] hey buddy [07:32:23] Error creating thumbnail:  Error code: -1 [07:32:26] for every image [07:32:35] cannot find anything in google [07:32:56] tale can help you [07:38:24] Hello, I have sitemapping question. I have two wikis and I have linked folders docs, extensions, includes, maintenance, resources, serialized, skins and tests from 'mainwiki.com' to 'de.mainwiki.com'. Will the sitemapping work with this setup if i run it to 'de.mainwiki.com' or will it fetch its data from 'mainwiki.com' or does it mather? thanks. [07:58:51] I am looking for an extension or tool that would enable me to make some modifications to the monobook theme in mediawiki [07:59:52] I have tried make changes to the css directly, but I am getting adverse effects [08:00:48] any suggestions? [08:01:08] have you tried flushing local cache? [08:02:19] yes, each time I make a change to ensure I am viewing the change. For example, I wanted to modify the sidebar a bit and removed the header image, but anything I do causes the sidebar to drop all the way down to the bottom of the page [08:02:52] is the main.css the only file that styles the page? [08:04:10] you probably had an unbalanced tag [08:04:24] and/or tidy is fighting with whatever you tried to do [08:05:15] for example, if I simply removed the image header, it does this. no tags changed, etc. [08:05:48] if I want to allow capital letters in the heading on the sidebar, it does this [08:06:10] drops all the way down to the bottom of the page, as if something stops it from being just under the logo [08:09:34] once the sidebar drops there doesn't seem to be a way to get it to move any where, in fact, even if I change all the settings back where they were, it does not restore, I have to upload a fresh css in its place on the serve. It is very strange [08:10:40] perhaps some other time then, have a great night [08:49:54] Hi everybody ! My company is running a wiki under Mediawiki 1.22.2 and we are planning to upgade our server to PHP 5.5. Before doing that I need to know if it's totally safe to run mediawiki wih this new version of PHP. Can anybody give me some information about it please ? (What I found on the web is quite unclear about it) [08:57:58] geneawiki: Hi! MW 1.22 has been relased after PHP 5.5 relase so I think there shouldn't be any issues. [09:03:08] Ok, thank you for answering, what is "scarying" me is that it doesn't seems to be officially supported according to http://www.mediawiki.org/wiki/Compatibility (in fact there is almost nothing about PHP 5.5) did you try or see it running with 5.5 ? [09:28:31] geneawiki: Yes [09:29:29] Great Thank you very much ! [09:29:31] Hello! I need help: http://stackoverflow.com/questions/25907743/how-to-add-external-script-to-head-section-for-all-mediawiki-pages Thanks in advance! [09:35:25] Algin: OutputPage::addInlineScript is maybe what you are looking for [09:41:12] I tried $wgHooks['BeforePageDisplay'][] ='onBeforePageDisplay'; function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) { $script = "http://static.wowhead.com/widgets/power.js"; $out->aaddInlineScript($script); return true; }; [09:41:48] Page load emty, without any code [09:43:36] AIgin: you have a typo. [09:43:37] !blankpage [09:43:38] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [09:43:42] "aaddInlineScript" [09:47:41] I spent 6 hours last night and tried different options, but probably need to do through ResurseLoader. Sorry for the typo, the page is loaded, but there is no script. [10:15:29] Hey guys, is there any template/parserfunction/magic word for detecting if a user is an admin? [10:18:37] Would the happen to be someone who is SEO expert? I have my site 'mainwiki.com' and im wondering if I change it to $wgServer = "de.mainwiki.com" and put de.mainwiki.com as alias to my apache config. Will this setup affect my search-listings? [10:19:00] Would there.. [10:27:06] Hi everyone, I just installed mediawiki and want to put in HTML Styles (i.e. style = "color : red") on tables headings (for example)... but the HTML style is just printed out, its not interpreted as HTML - I don't want to enable the "allow all HTML tags" option but is there a way to allow just the "style" tag? [10:32:47] KillerJim: the style attribute is enabled (
), or you can edit Mediawiki:Common.css on your wiki, which might be more suited to your purpose [10:33:37] take a look at the top of https://www.mediawiki.org/wiki/Manual:CSS [10:35:08] ebraminio, I'd like to know that as well -- detecting user rights from within a template [10:35:17] or any wiki markup really [10:36:29] Svetlana: we a subset of admins list but I was thinking if it has something like {{GENDER:User name}} [10:36:41] *we hardcoded [10:37:03] I don't know. I asked here a couple times this week but got no reply and didn't figure it out yet either. [10:41:11] zuzak: I was doing the style on a table so it looked like | style ="color : red" [10:41:17] but I will look at evolving the css [10:50:03] hi there... what is the best way to have mediawiki authenticate users via PAM? basically i want my unix users to be able to logon without needing to create a separate account [12:37:39] !pam [12:37:39] There is no such key, you probably want to try: !chanspam, !spam, !worstcase, [12:37:48] yuck [12:38:15] ? [13:13:22] How to establish a local mirror of Wikipedia [13:14:13] I need to use it in LAN because of the bad connection in China [13:15:40] What kind of server is required? I have a CentOS server installed apache [14:13:38] Answer: a raspberry ppi is enough with kiwix-serve. But not even a NASA cluster will be enough if you don't have 2 minutes of patience. [14:22:31] Sob. https://bugzilla.wikimedia.org/show_bug.cgi?id=70999 [16:01:45] So, is there any kinda known wonkiness regarding using an int to select an id in a table? [16:01:58] Because I can't do it, and there's no error, it just returns an empty set [16:03:32] http://pastebin.com/tC46ED29 [16:05:55] Hello, how can i alter my urls so that it uses a - instead of a _ in between words [16:08:27] hello , i want to have tree in my wiki page, for example if i click on text, then its subsection appera [16:08:53] how could i do that? [16:10:07] sth like what i have doen in sidebar, but this time i want same on any page [16:42:05] Figured it out, thanks anyways! [17:58:50] http://en.wikipedia.org/w/api.php?action=tokens says it is deprecated but https://fa.wikipedia.org/w/api.php?action=query&meta=tokens&type=edit has not edit token, how I should retrieve it? [18:00:12] ebraminio: the API doesn't have an edit token anymore, just a standard "csrf" token which most modules use [18:00:24] so just use https://fa.wikipedia.org/w/api.php?action=query&meta=tokens [18:00:37] legoktm: is it okay csrf for CORS edit? [18:00:41] yes [18:00:46] thank you [18:01:40] how can i add tree, like what we ahve done in sidebar, in any wiki page [18:01:41] ? [18:01:46] could you help? [18:02:06] I can't. [18:02:25] it is possible, or not? [18:34:45] do you know my question answeR? [18:35:00] how can i add tree, like what we ahve done in sidebar, in any wiki page [18:35:40] use nested lists? [18:36:00] what is it? [18:36:09] i want to have tree, like sidebar [18:37:02] sidebar is not a tree AFAIK [18:37:25] i want toadd sth like that [18:38:28] * bawolff does not understand the question [18:41:19] could help? [18:41:30] bawolff: https://www.mediawiki.org/wiki/Manual:Logging_to_Special:Log should tell what you just said on https://bugzilla.wikimedia.org/show_bug.cgi?id=70999 [18:42:00] zOMG, we have docs on something! [18:42:14] * bawolff will update it [18:42:20] yeah, that's vicious nikerabbit documenting stuff [18:50:51] Hi all, I'm doing some testing and cleanup of my wiki upgrade procedure and I'd really like to eliminate the need to disable DPL when upgrading so as to decrease downtime. [18:50:56] The error is: SELECT page_id,page_len,page_is_redirect,page_latest,page_content_model FROM `page` WHERE page_namespace = '10' AND page_title = 'Extension_DPL' LIMIT 1 [18:51:22] Uh that' the query that is the problem, the error is: Error: 1054 Unknown column 'page_content_model' in 'field list' (10.28.41.61:3399) [18:51:37] It's discussed here but no good resolution IMHO: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/upgrade_from_1.16.1_to_1.21.1_failing [18:52:18] jcl: did you set $wgContentHandlerUseDB = false ? [18:52:37] Never seen that variable. Let me look it up... [18:53:41] update.php should create those fields anyway [18:53:52] if not, that's probably a bug [18:54:26] legoktm: what about this on that variables doc page: Overall, set to false, no database updates are needed, but content handling is less robust and less flexible.? [18:54:46] yeah, so set it false during the upgrade, then enable it afterwards [18:54:47] Vulpix: I've had this issue for a long time. If it's a bug, what's the best way to address it? [18:55:01] bugzilla [18:55:13] Convince somebody to maintain that extension :P [18:55:18] with steps to reproduce, etc [18:55:34] legoktm: Ok, I'll test that procedure. If it reduces the need for downtime, so much the better, even if it's not perfect. [18:55:40] Vulpix: I'll do that, thanks. [18:56:39] bawolff: I'll give you $50. ;) [18:57:14] I once read the source code of DPL (Third-party). I lost a little bit of my soul ;) [18:57:47] Seriously though, that extension is scary beyond scary. I wouldn't trust it [18:58:48] bawolff: It's apparently heavily used in our wikis and the community effort to replace it with the equivalent SMW code, or whatever would be necessary, is probably prohibitive. [18:59:18] I don't doubt it [18:59:29] Its quite powerful [18:59:46] Its just also happens to be a giant blob of spaghetti code that could induce nightmeres [19:03:57] Alright, thanks everyone for the feedback. I'm going to go test the $wgContentHandlerUseDB change. [19:08:03] If you still have trouble, just temporarily disable DPL during upgrade (or do something like if (!$wgCommandLineMode) { require_once "foo/dpl.php"; } [19:17:05] bawolff: The test appears to work. I know I could disable DPL but that's what I'm trying to avoid. I want to minimize downtime during MW upgrades as much as possible. [19:17:06] bawolff: remember that one can upgrade from the web :) [19:17:50] bawolff: I'd rather see about getting that bug fixed, but I'm a purist/idealist, which doesn't go well with reality. :P [19:29:01] Vulpix: Since I don't fully understand what does and should go on under the hood, do you have a recommendation for how I title the bug report? [19:29:44] I'd like for it to be clear, concise, and correct as possible. :) [19:33:47] "DPL breaks the update script" maybe? [19:35:41] hi - how do i find the list (in the code) of what special pages are available and the correct label to use? [19:39:11] Vulpix: Works for me. Done! https://bugzilla.wikimedia.org/show_bug.cgi?id=71017 [19:41:26] okay, I'll have it on my radar ;) [19:41:39] Thanks again for the help. [20:01:54] hey guys, does anyone know how to make a wiki page auto refresh, I've searched high and low for some sort of extension that does this [20:02:10] auto refresh based on what? [20:03:11] just a timer, example I tried playing with meta tags and silver meta extensions but none of them accepts meta refresh tag [20:03:30] silver was a typo srry [20:04:39] I have one page that I'd like to reload every 5 seconds, for a very specific and odd purpose. [20:08:03] guest439: use this piece of JavaScript: if (mw.config.get('wgPageName') == 'My_Page') { window.setTimeout(function(){window.location.reload();}, 5000); } [20:08:21] but that's terrible [20:08:39] change 'My_Page' by the page name you want to reload [20:08:54] Any MW admins around? A developer I'm working with needs the 'confirmed' permission on his account: https://www.mediawiki.org/wiki/User:Dmak78 [20:08:56] and add that code to MediaWiki:Common.js, for example [20:09:57] ragesoss: Uh [20:10:18] As admin and 'crat, apparently I can't [20:10:24] presumably my staff/sysop rights allowed me to [20:10:46] Reedy: that's weird. [20:11:10] mw.org is configured differently from the other wikis for 'confirmed', I guess? [20:11:20] Probably [20:11:27] We should fix this though I think [20:11:37] no one uses 'confirmed' for anything afaik… [20:11:46] vulpix u rock thank you [20:12:15] MatmaRex: it's necessary (or autoconfirmed) to request OAuth stuff. [20:13:56] guest439: yw ;) [20:15:48] damn, install error to oracle db [20:16:07] oracle isn't actively maintained as of late [20:16:34] Reedy: yeah, I'm aware, but this is client mandated :/ [20:18:33] ragesoss: its like 10 edits to get autoconfirmed or something, tell him to go nuts on his/her userpage [20:18:59] p858snake|l: isn't it also a certain time limit, like 3 days?\ [20:19:58] https://www.mediawiki.org/wiki/Project:Autoconfirmed_users [20:20:58] I don't know if that page is up to date :P [20:21:17] 4 days, so looks like his account is not quite old enough. [20:21:33] Is there anyreason they aren't autoconfirmed already and requiring oauth stuff now? [20:22:17] p858snake|l: this is the developer at a company I'm working with to implement a Wiki Education Foundation project. [20:22:29] we just started work this week. [20:30:23] ragesoss: Done [20:31:05] Thanks! [20:31:30] behold Reedy, the approver of OAuth requests [20:52:14] YuviPanda: Well, I can't actually do those now anymore either [20:52:15] :P [20:55:57] Is it possible to use the API to get statistics from a specific time period, i.e. say getting http://en.wikipedia.org/w/api.php?format=json&action=query&meta=siteinfo&siprop=statistics from exactly 1 week ago? [20:56:36] I'm trying to determine if I can not only get stats from my wikis but also calculate percentage changes over the last period [20:56:54] jcl: stats are not stored [20:58:04] Betacommand: I figured that'd be the case, so I'd need to store them in a file or something each time I retrieve them and then query my saved stats [20:58:46] jcl: or add your wiki to wikiapiary :) [21:00:37] Vulpix: I feel silly for not knowing about wikiapiary, but I'd also need to talk to a colleague about whether I'd be allowed to do that. :) [21:01:04] is the wiki public? ;) [21:02:15] Yes, multiple wikis in fact, but you know how some companies can be. :P [21:02:49] I work for a cool company but it's always better to be safe than sorry. [21:04:48] Heh, apparently at least some of our wikis are already in there. [21:05:37] :) [21:13:26] mlauter: hey there [21:13:44] hi sumanah [21:13:44] mlauter: so you're interested in learning more about https://www.mediawiki.org/wiki/FOSS_Outreach_Program_for_Women/Round_9#Wikimedia_Performance_portal right? [21:13:50] yes! [21:14:21] mlauter: so I just wanted to give you some information, and to tell it to you someplace public, so other people can also jump in maybe if they want to pipe up [21:14:41] I actually know a little about all this because I wrote https://www.mediawiki.org/wiki/Performance_guidelines earlier this year - a set of performance guidelines for developers of code that's intended to run on Wikimedia sites [21:15:19] so, this year, AaronSchulz and Ori Livneh (Aaron is here in the channel; ori is not, but usually comes under the nick "ori") started really heavily focusing on Wikimedia performance [21:15:26] on helping our sites run fast [21:15:32] ori's here! [21:15:36] Oh hi ori! [21:15:47] I think my nick completion was failing, maybe I was in the wrong channel [21:15:53] hey sumanah [21:16:04] ori: mlauter is a Hacker Schooler who is sitting near me :) and is interested in the OPW project re performance portal [21:16:16] mlauter: ori is an ex-New Yorker who works at the Foundation and is mentoring that project [21:16:27] ori: have you gotten nibbles yet from prospective candidates? [21:16:47] i saw a couple of pings about that in my inbox the day before yesterday but i'm hideously behind on replying [21:17:05] not sure if they were from mlauter or not. but either way: hi, mlauter! very glad that you're interested in this [21:17:08] mlauter: https://www.mediawiki.org/wiki/Performance_profiling_for_Wikimedia_code is something I wrote - a guide for the developers who write MediaWiki code and want to actually know how to check the performance of their code, both as they are developing it, and once it is deployed to Wikipedia [21:18:02] hi ori! [21:18:42] mlauter, sumanah: i don't know a lot about OPW, so i'm just reading up, so i know what is expected of me as a mentor [21:19:28] ori: so one of the things that caught my interest about this project (among other factors) is it’s one of the few projects on the opw site that offers the opportunity to code in python [21:20:01] what're we coding in python now...? [21:20:16] ori: I don't know whether you have already checked out https://people.gnome.org/~federico/docs/summer-of-code-mentoring-howto/ or my case study with Frances http://www.harihareswara.net/sumana/2014/08/13/1 [21:20:28] Reedy: you know well that in Analytics they're doing a bunch of Python [21:20:49] Right [21:20:58] But Performance != Analytics [21:20:59] mlauter: Reedy is alluding to the fact that most Wikimedia Foundation engineers used to be PHP coders but we are branching out and doing ancillary things in Python and other languages these days as well [21:21:01] At least, obviously [21:21:20] there's a lot of performance instrumentation that is in python, too [21:21:24] sumanah: yes, I did notice the emphasis on php in most of the other wikimedia projects listed [21:21:38] ori: cool! so I wanted to ask a little bit more about that [21:21:42] mlauter: in an engineering org there's a tradeoff to be made, between uniformity and flexibility [21:21:48] it seems like what you’re saying is the tasks in python are not limited to data analysis? [21:22:06] it's nice if everyone is working in the same lang, but then again, the right tool for the job is not always the one we've historically used [21:22:58] Ops have been doing stuff in python for years ;) [21:23:13] right. [21:23:37] mlauter: there are various parts of the performance monitoring software stack that utilize python, but as far as concrete tasks go, the ones i have in mind are mostly data-analysis-related. other than python, what else about this project is compelling to you? and what other relevant skills do you have? i hope i'm not being too forward in asking -- it'd help me try to craft specific goals that could work well for you. [21:23:56] (nicely done ori! good mentor move.) [21:24:31] sumanah: :) "you must have a clear vision of what your student wants to accomplish." <-- I need to spend some time on that, I think. [21:24:54] ori: absolutely. So unfortunately, I have to run out at the moment, but I’m going to send you an email with the answers to those questions and some more info later tonight. it was really nice to meet you, and I look forward to being in touch [21:25:12] mlauter: np at all, and ditto! -- looking forward to your e-mail! [21:27:57] ori: thanks! [21:28:05] thank you sumanah [21:28:13] ori: I think it's fine to iterate on the vision *with a candidate* [21:28:27] like, during the application period (i.e. these next several weeks) [21:29:31] ori: there is a super long GSoC mentoring guide http://flossmanuals.net/GSoCMentoring/ that is also pretty applicable to OPW ... I would recommend you start with my case study blog post, then read Federico's guide, then if you are still hungry read the big manual [21:32:14] also ori https://www.mediawiki.org/wiki/Performance_profiling_for_Wikimedia_code may actually be a useful thing to mention to the other applicants as well, to let them know what already exists.... in further detail than the current seed idea [21:32:28] Hi heatherw! [21:32:53] sumanah: yep; will mention it [21:32:57] Cool [21:33:11] sumanah! [21:33:51] hi heather [22:14:02] I repeat, how do I check for user rights within a wiki page (template)? [22:14:24] Svetlana: I don't think you can (or should) [22:14:26] Svetlana, check for the right of a given user? [22:14:40] oh, for a given user, rather than 'current' user? [22:14:57] Yes, YuviPanda, Krenair. I'd like a couple buttons to appear in an edit notice where a user has a certain user right. [22:15:06] Or links rather. [22:15:25] Svetlana, the user its being shown to? [22:15:30] YEs. [22:15:52] you want to put information specific to the user being shown the page... in the cache? [22:18:58] <^d> There might be an extension to do it. [22:19:09] <^d> Core MW won't, because it's cache-busting (as Krenair is alluding to) [22:20:02] Extension:UserFunctions [22:20:08] ifingroup [22:37:35] Svetlana: look how enwiki does it [22:38:18] Reedy: thanks. jackmcbarn: where? [22:39:27] Svetlana: when you're editing a page, wikipedia's editnotices are set up to call the editnotice templates with "notice action=edit", and when you're viewing the page's source because you can't edit, the error message calls the editnotice template too, but with "notice action=view" [22:39:43] so you still don't know the user's exact rights, but you know whether or not they can edit the page [22:49:05] Aw. EN.WP doesn't have it. [22:49:17] I mean, the userfunctions extension. [22:49:58] Both groups can edit, but I have to distinguish one. [22:53:00] Svetlana: so do the other thing enwiki does. Look at MediaWiki:Common.css and MediaWiki:Group-sysop.css [22:53:10] .sysop-show [22:55:31] Ok. Also, does https://www.mediawiki.org/wiki/Extension:InputBox provide an option to open page in a new tab? I don't see target=blank param. [22:58:41] Yeah, thanks, group CSS is the nice tool for it. [23:00:16] Nope, no option to do that [23:00:24] Do you have a need for that? [23:01:01] As a general rule, opening things in a new window/tab tends to be an annoying behaviour (most of the time, there are exceptions) [23:23:49] Some people prefer it. [23:32:08] https://www.mediawiki.org/wiki/Extension_talk:Variables#Edit_intros [23:32:51] variables is a silly extension :P [23:33:08] bawolff: fwiw I'm thinking of adding https://en.wikipedia.org/wiki/User:Gryllida/draft/under-review to draft edit namespace -- page needs to tell whether page is under review and who submitted it [23:33:22] edit intro is supposed to reflect that to reviewers [23:34:09] there is no way E:variables is ever going on wikipedia if that's what you're aiming at [23:34:24] I'm of course likely thinking it all wrong and not the wiki way so suggestions would be welcome; it's just that they're leaving talk message /templates/ and I'm trying to make that a bit more canned-responses-like as their templates are quite silly [23:34:30] ok [23:34:56] how to do it then without javascript mess? [23:36:57] So basically you want to figure out who was the first person to create the page, and use that information in an edit-intro [23:36:58] ? [23:37:20] no, it can be different, they currently indivate it in {{submit|submittedby=foo}} atm [23:37:28] it can be also different from lastrevision user [23:38:10] I should check how often it is the folk who created the page, that's pretty often actually, just not always the case [23:40:39] So you want to access arbitrary data from a template invocation in the page, in the editintro? [23:42:24] yes [23:43:26] I could use an input text and a button, if the button behaved more like a link (ie open new tab on middle click) [23:43:43] and have the reviewer type the name by hand (copy paste from template) [23:44:35] I don't think you're going to have much luck with that [23:44:52] then I'm solving a wrong problem [23:45:01] what other means of doing this can I have? [23:45:22] ie if we assume I can holler at them and redesign their template and review system [23:48:36] Generally speaking, wikitext is designed so that it has no global state. You can't access something defined in wikitext later [23:48:38] probably this is just wrong, I should leave review comment on article talk and leave it as that [23:48:49] except with javascript [23:49:02] Maybe lua can load the text of the article and you could try parsing that [23:49:35] ok, so another question - can I have an edit notice for me personally? User:Svetlana/NAmespace/Draft/Editnotice or something [23:50:27] with js yes [23:50:44] aw, ok [23:50:58] enwp does some weird template magic to extend edit notices, but i don't think they managed to make them per user [23:52:21] thanks, I guess I'll just ping the user on draft talk by hand and not leave anything on their own talk page - less edits, more sense (personal talk page is really for talking about a user, really, where the discussion isn't best suited for another talk page) :) [23:54:10] bawolff, maybe we should have some reverse WP:DEVBEANS policy covering this [23:54:20] :P [23:55:49] Krenair: I actually tried to do something like that on commons once, but it ended in infinite loop (Read the current page, run regexes to try and extract something on the current page) [23:56:39] it was a bad idea [23:56:52] it's just a wrong thing to Do [23:57:03] personal talk pages are misused :P