[09:56:47] Grr why do people use [] in URLs [09:57:20] gwicke: before the internet over-the-top destroy us, are we still in a position to bully W3C into banishing [] from URLs? :D [10:57:21] Nemo_bis: grr why is wikitext so horrible ;-) [11:07:05] valhallasw`cloud: it's not like brackets work that well in IRC or email clients either [11:08:27] Really? http://somelink?param[]=1,2,3&somethingelse works for me in gmail and outlook [11:08:31] and in irccloud [11:09:26] and visualeditor just turns it into an equivalent urlencoded link [11:09:58] http://somelink/?param%5B%5D=1,2,3&somethingelse [11:23:18] valhallasw`cloud: what if the bracket it at the end of the link? :) [11:23:45] I'm not saying they don't work at all, but they're often poorly supported. [11:24:12] like http://somelink?param[] ? Gmail works. [11:24:15] irccloud works [11:24:24] even outlook works [11:26:41] Nemo_bis: so really, it's not poorly supported in general, it's just poorly supported *by mediawiki*. And not even that, as mediawiki has no issues with http://somelink?param%5B%5D [12:33:09] Nemo_bis: what would be your pitch for why those chars should be illegal? [12:35:25] gwicke: isn't it enough to say I spend 10 min twice a year to paste a ganglia link on wikitechwiki? :D [12:36:51] Hmmmmmmm https://code.google.com/p/chromium/issues/detail?id=74424 [12:37:13] Nemo_bis: ;) [12:37:29] there is a bug & patch to allow HTML a tags somewhere [12:39:10] Ah right. The scary bug. :) [12:45:48] not really scary from a security POV, the main scary bit is 'would this lead to unreadable wikitext everywhere?' [12:51:44] ? [12:53:11] ? [13:21:05] xfoss_: Do you need something? [13:23:48] Nemo_bis: You could fix Ganglia instead. ;-) [13:23:58] param[]= isn't really needed. [13:26:37] Carmela: or chromium, see linked bug. It already escapes quotes which Firefox doesn't, so why not brackets? :) [13:26:49] At least Firefox is consistent in its laissez faire [13:29:08] Chrome doesn't percent-encode (). [13:29:15] Which IRC clients do struggle with. :-( [13:39:07] hi Nemo_bis , I have submitted a patch https://gerrit.wikimedia.org/r/#/c/166990/ about which I have some questions. [13:42:02] what does the comment by jenkins-bot mwext-Translate-bundle-rubocop mean ? [13:42:21] It's a set of unit tests [13:42:38] You can ignore it, as it's new, under development, and also non voting [13:43:00] okay Thanks Reddy ! [13:47:39] If a patch #x has received a CodeReview -1, is it possible that the patch #(x+1) to have a CodeReview -1 even though nobody reviewed patch #(x+1)? Or am I missing something? [13:50:02] tuxilina__: Contiguous numbers don't necesserily mean anys ort of relationship [13:51:16] thanks prijaya for the patch [13:51:52] prijaya: https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines may be useful too [13:53:09] Reedy: so basically two patches are seen as distinct? [13:53:19] Yeah [13:53:23] They can have a relationship [13:53:27] well, dependencies [13:56:03] The reason I am asking this is because I submitted some patches, and now the current one _should_ be fine, it's just that I haven't received any form of feedback on the latest patch and it also shows a CodeReview -1. And I didn't now if I should continue working on it to improve it or if I should wait for approval. [13:57:42] Link? [13:58:47] https://gerrit.wikimedia.org/r/#/c/164726/ [13:59:35] tuxilina__: generally, if it has a -1, you should fix whatever was the cause for the -1. [13:59:51] if it sits there for a while with no feedback at all, go around and poke people [14:00:41] DanielK_WMDE: that's why I asked, I thought I fixed it, and I didn't know if I should be insistent or I should wait and not bug people :D [14:01:00] tuxilina__: it doesn't seem like you did: https://gerrit.wikimedia.org/r/#/c/164726/1..6/languages/i18n/en.json [14:01:12] err, wait [14:01:45] tuxilina__: oh, sorry, right. was fooled by the line wrap. [14:03:00] you could poke Siebrand to remove his -1. [14:03:20] DanielK_WMDE: Well, it needs a -1 for a different reason now :) [14:03:34] Reedy: yea, somone should actually review to code :) [14:04:45] tuxilina__: i see some code style issues.... [14:06:41] DanielK_WMDE: do you mean the spaces instead of tabs? Or is it something else? [14:08:11] !codestyle [14:08:16] * Reedy kicks wm-bot [14:08:19] !phpstyle [14:08:47] https://www.mediawiki.org/wiki/Manual:Coding_conventions [14:08:52] https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Coding_conventions/PHP [14:09:34] awesome, thanks reedy [14:09:45] tuxilina__: no, tabs are correct, use spaces in parameter lists. [14:09:52] look at the style guide & my comments [14:14:06] will do, thanks for your help guys [14:14:37] tuxilina__: np! if the review gets stuck (as it often does), come ehre and cmplain [14:14:43] the patch is small enough to get a quick review [14:18:12] I kinda feel bad 'cause I already hit patch #7-8 (even though, as said earlier number of patches don't have a direct relationship) and it's still a really minor bug. But I guess there has to be a starting point somewhere. [14:19:43] tuxilina__: There's someone that regularly makes 30-40 patchsets on one bug [14:19:45] It's fine :) [14:29:22] ? [14:29:47] xfoss_: Can we help you? [14:29:52] yes [14:30:01] Then ask a question, please. [14:31:53] I'm looking for a solution to hide the left sidebar which is for navigation. On small displays this is lost space. Is there a way to hide the sidebar by click? [14:37:15] How can I link to a bash script which I can upload? I tried just creating the bash script as a separate page to which I link but all the comments end up being lists ( Whenever I have "# something" in the code it turns into 1. something) [14:37:35] Heh. [14:37:41] ManDay: Use or similar? [14:37:54] marktraceur: I already use [14:38:02] It still turns # into 1s [14:38:04] Hm. [14:38:27] ManDay: What about ? I think that's an extension. [14:38:57] i ll have to install that then [14:43:14] win 1 [14:44:26] xfoss_: Maybe use MobileFrontend? [14:44:34] !e MobileFrontend | xfoss_ [14:44:34] xfoss_: https://www.mediawiki.org/wiki/Extension:MobileFrontend_ [14:44:48] stupid bot [14:45:06] Indeed. [14:45:29] works [14:45:50] ManDay: Yay! [14:49:17] marktraceur, ManDay: is just an inline html tag with no special semantics, just like . [14:49:49] marktraceur, ManDay: you want
,  or 
[14:50:04] 	 ( only works with SyntaxHighlight installed)
[14:52:56] 	 marktraceur: In do not use a mobile device, just a laptop with a small display
[14:53:36] 	 xfoss_: Ah. Well.
[14:53:46] 	 xfoss_: You could use your common.css to hide the sidebar.
[14:53:50] 	 !common.css
[14:53:50] 	 There is no such key, you probably want to try: !css, !csshideheader, !wptemplates, 
[14:53:53] 	 !css
[14:53:53] 	 To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page (NOT a file) and put your custom styles there (sysop/admin rights required). MediaWiki:Common.css is for all skins and should be used for content styles. MediaWiki:Vector.css is for the Vector skin (default), etc. For more information, see !skins and https://www.mediawiki.org/wiki/Manual:Interface/CSS
[14:54:01] 	 Close.
[15:05:34] 	 marktraceur: grep -Ri sidebar *css does find nothing. 
[15:06:12] 	 xfoss_: What?
[15:06:25] 	 Oh, you're trying to...no, just inspect the element and find the classes
[15:06:52] 	 I looked in all css files and found nothing for keyword sidebar
[15:08:28] 	 Then don't look for that keyword, it's obviously called something else.
[15:08:35] 	 Use your browser to find the class name.
[15:14:20] 	 marktraceur: Tried this in firefox but without success. There is a 
. If this is deleted the navigation space is just empty but it is still there. The content does not expand. [15:14:45] xfoss_: Don't delete it, just use CSS [15:14:54] And maybe use the parent instead of the #mw-panel [15:14:59] Though...maybe that's the highest level [15:15:02] mw-panel is just hte link block [15:15:29] #mw-navigation { display: none; } [15:15:33] xfoss_: ^^ [15:18:40] marktraceur: found some *.less files which look like css. Is it that? [15:18:56] Don't edit core files [15:18:59] MediaWiki:Common.css [15:19:23] Here is no Common.css file ? [15:19:33] It's not a physical file [15:19:42] http://en.wikipedia.org/wiki/MediaWiki:Common.css [15:20:53] Reedy: found that. Reading ... [15:21:25] hello [15:22:10] I want to submit a patch [15:23:07] For that I have made changes in a file but accidentally made some changes to some other file [15:23:17] which are unknown to me [15:23:38] what's the problem? [15:24:00] How could I get that file to its previous stage? [15:24:26] you can just git add or whatever [15:24:28] then git commit [15:25:37] But when I run the 'git pull --rebase origin master' [15:26:00] you can just use git checkout filename [15:26:07] which reverts those changes [15:26:09] ok [15:26:41] Thank You [15:40:47] While pushing the change set to gerrit I got the error of missing change id [15:41:20] How can I add the change id to my commit at this step [15:41:23] Did you follow the instructions it gave? [15:41:25] git commit --amend [15:41:28] then save [15:42:20] I added the commit message but skipped to add change id [15:44:12] Can you please tell me what is the change id? [15:44:34] I thought I was supposed to add only the commit message [15:44:58] If you set the git hook, it should add it for you automtically [15:47:08] How can I set it? [15:47:31] git should've told you when you tried to commit [15:48:12] Yes it did [15:48:19] but I am unable to get it [15:51:07] Why not? [16:02:53] Reedy: I'm able now to make the navigation to dissapear. But there is still the space of where the sidebar was an it does not get used by the content. [16:09:55] Nemo_bis I'll surely take care of the conventions next time.. [16:12:32] Reedy: #mw-navigation display:none does also remove search. That is not what I'm looking for. [16:13:07] lol [16:13:30] The skin is very much designed for the side bar to be there [16:30:48] Can I add any random change-id by myself? [16:31:04] Please suggest I am really stuck [16:31:07] You can, but you shouldn't [16:31:12] You didn't tell me what error it was giving [16:31:23] I think the reject message should give you a change id you can use [16:31:56] Yes it gave [16:32:21] But my bad I didn't noted it down [16:35:46] try it again [16:35:49] it'll give you another one [16:36:24] ok [16:42:32] It worked [16:42:35] Thank you [17:00:42] Why might my File: link descriptions not render? [[File:2014-10-10-foo.txt|Foo Was Awesome]] renders as 2014-10-10-foo.txt and ignores "Foo Was Awesome". [17:03:59] noric: It's in the tooltip - hover over the image with your mouse. [17:04:08] Oh, wait, no [17:04:24] noric: Use [[Media:2014-10-10-foo.txt|Foo Was Awesome]] instead maybe [17:04:42] Or [[:File:2014-10-10-foo.txt|Foo Was Awesome]], not sure which would work [17:08:04] Nemo_bis: I have a submited a patch [17:08:06] https://gerrit.wikimedia.org/r/167018 [17:12:39] marktraceur: it is utterly ignoring the description, not in tooltip either. Trying your workarounds now [17:13:08] marktraceur: Media: works! thanks [17:15:08] Woot [17:15:36] noric: Yeah, I thought you wanted it to be a caption at first. File: links transclude the image into the page, for images, and other files are sort of an afterthought. :) [17:16:03] Most people solve that problem by ignoring MediaWiki and using external links. Good job not falling into *that* trap. [17:52:49] se4598: I have made changes to my patch as suggested by you. [17:53:17] Please review it and suggest me for any further changes [18:04:10] marktraceur: The sidebar has bee removed permanently. Works with search :) [18:04:26] Cool! [18:04:59] Hmm. Just a joke. I installed MoiMoin. [18:05:10] ...what? [18:05:17] MoinMoin [18:05:33] O...K... [18:05:56] Nether the less I'd prefer not to [18:18:14] Hi! Are there any hooks that are called as a page is saved? I've added additional form options via EditPage::showEditForm:initial, but I've found now way to actually use them. [18:18:25] *no way [18:19:07] Umm, there should be a bunch [18:20:14] salmoncat: see also EditPage::importFormData, EditPage::attemptSave, EditFilter [18:22:16] bawolff: attemptSave seemed likely, but the function needs to be able to get the page's ID even if it's new (New Page -> Save - New Page ID -> Save Extra Data) [18:23:05] salmoncat: Maybe something in linksupdate would be suited to what you're doing (That's where categories and special:Whatlinkshere is updated) [18:23:51] there's the LinksUpdateAfterInsert hook [18:24:42] thanks alisha [18:24:44] see also PageContentSave [18:25:04] Nemo_bis: Your welcome [18:25:46] salmoncat: and also NewRevisionFromEditComplete PageContentInsertComplete, PageContentSaveComplete [18:25:59] I have studied your code and tried to use standard functions of JSON production which produces output same as the previous cod [18:26:03] code* [18:26:08] as suggested by you [18:26:50] Nemo_bis: Please suggest me the next step I should follow [18:27:05] to continue [18:27:44] bawolff Certainly lots of options! Are any those simply straight forward with getting the ID though? I keep seeing a "page objact", but I'm not sure what that entails. [18:29:24] yeah, page objects can be one of a bunch of things. They are an instance of either WikiPage, Article, ImagePage, WikiFilePage, CategoryPage or WikiCategoryPage [18:29:32] its really confusing [18:29:50] I personally think the way those classes are split up was not the best design decesion [18:30:21] Ack - Just dumped one those. I see what you mean, looks like tangled gibberish. [18:30:21] Page objects generally represent a page in the database, without reference to its revision [18:30:50] they have methods to get the latest revision of the page, but depending on where your hook runs that may or may not be what you need [18:31:45] salmoncat: However, many of the hooks (like PageContentSaveComplete) pass a Revision object as one of the arguments, which is more what you're looking for [18:32:00] My hook's running straight out of an extension file. Basically I've added a form option above the text space for editing the article. [18:32:18] and then from a revision object, you can just call ->getId() [18:32:42] It's really that simple? Thank goodness! [18:34:04] The page editing code is pretty hairy in parts [18:37:20] alisha: https://www.mediawiki.org/wiki/Gerrit/Code_review/Getting_reviews ;) and when you feel you don't have more to do, try another small patch [18:39:38] Nemo_bis: thank you for the link [18:39:38] I will surely go through another patches [18:46:37] what? [18:47:07] who added the free cloaks in a non-freenode channel part [18:48:17] A known troll [18:48:27] geo23? [18:48:30] yes [18:48:35] -_- [18:48:38] "Topic for #mediawiki was set by Laagonnie!2942262f@gateway/web/cgi-irc/kiwiirc.com/ip.41.66.38.47 on lun 13 oct 2014 18:06:09 CEST" [18:48:58] bawolff: Just to report - It works just as expected! [18:48:58] that was monday O_O [18:49:07] :D [20:12:14] http://www.webpagescreenshot.info/i3/5440265f1cc6d5-32130761 on [20:12:43] hey [20:13:00] can someone lend me a hand showing a jqueryui dialog? [20:13:12] i can't get the resource to be loaded [20:15:08] Axelei: mw.loader.using('jquery.ui.dialog', function() { /* stuff to do when dialog resource has been loaded */ } ); [20:15:39] i've done this: $out->addModules( 'jquery.ui.dialog' ); [20:15:50] ah, from PHP [20:16:08] well i can do it from js if needed [20:16:56] it can be done, but I usually don't do it so I don't have the code at hand [20:17:43] hmmm nope, it doesn't get loaded [20:17:58] do mediawiki has jqueryui dialog out of the box? [20:18:38] jquery.ui.dialog is present inside /resources [20:18:52] Apparently you're doing it well https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Server-side [20:21:38] do you know of any extension or example that uses anything related to jqueryui? [20:22:49] There's lots :P [20:23:24] any in particular you remember? [20:23:51] for some reason i've not found any dialogs in any mediawiki extension [20:23:55] seems they aren't very popular [20:26:14] reedy@ubuntu64-web-esxi:/var/www/wiki/mediawiki/extensions$ grep -R -c "jquery.ui.dialog" | grep -v ":0" [20:26:15] BlueSpiceFoundation/resources/Resources.php:1 [20:26:15] CategorySlideShow/CategorySlideShow.php:1 [20:26:15] EducationProgram/EducationProgram.php:3 [20:26:15] DisqusTag/DisqusTag.php:1 [20:26:16] OAuth/frontend/MWOAuthUI.setup.php:1 [20:26:18] ^C [20:27:17] thanks! [20:32:33] Axelei: LiquidThreads use it also. I mean it because it seems a lot more popular than the other examples [20:32:40] *I mention it because [20:32:50] i'm looking at disqustag wich is very simple [20:32:58] and i don't understand, i was doing the same [20:33:42] Axelei: I guess you're using a hook to do the "addModules"? [20:33:51] yes [20:33:58] i'm doing it wrong? [20:34:46] it's good, if it's being called in your situation ;) [20:34:54] wait [20:34:59] now it works [20:35:08] wtf [20:35:13] blame cache :P [20:35:21] blame it on the boogie [20:35:50] well whatever [20:35:56] Vulpix: thank you very much [20:36:14] yw :) [20:40:25] alas, i can't get it to be shown on load [20:40:50] for some reason $(document).ready( ... ) won't show it [20:41:04] but if i execute it on the js console it does [20:44:42] is jquery ready and resourceloader assymetrical? [20:44:43] are* [20:45:47] Uncaught TypeError: undefined is not a function [20:46:04] it seems it does not recognize the .dialog function on .ready [20:46:06] hm [20:46:26] but later in the console it does [20:49:01] Axelei: ideally, you don't $out->addModules( 'jquery.ui.dialog' ); You should create your own module that depends on jquery.ui.dialog, and add that module to output. Then from your module you can be sure that jquery.ui.dialog has been already loaded [20:49:37] i see [20:49:42] well i'll try that [20:49:44] that's the essence of dependencies [20:54:36] How can I host more than one wiki with one software installation? [20:55:34] !farm [20:55:34] To run multiple wikis, you can simply install MediaWiki in different folders, with different databases or in one with database prefixes. You can also have multiple wikis using a single installation: If you run a farm or want to, join the mailing list: [20:57:45] I am on Ubuntu and installed it via sudo. HOw do I install it again in another folder? [20:59:37] err you mean via apt-get? [20:59:56] you probably want to install by downloading the latest version from mediawiki.org [21:19:27] Thank you. [23:28:39] Hello, is anyone here? [23:28:39] Hi HalpMeh, I am here, if you need anything, please ask, otherwise no one is going to help you... Thank you [23:28:59] Anyone besides a bot? [23:30:18] I have a question about formatting, I have spent a lot of time looking for an answer and cannot find it [23:30:28] Can anyone help? [23:32:08] @wm-bot /help [23:32:31] help /? [23:32:52] HalpMeh: Why dont you just ask your question? [23:35:10] I am trying to organize 2 rows of 4 columns of the following https://dpaste.de/bJ0p [23:35:35] The formatting is going NUTS all over the place. I can't get it to sit right [23:36:19] Are headings inside tables even supported? [23:36:33] I have no idea [23:37:46] A list works fine, but I would much rather prefer a nice grid of 2x4. There isn't enough information to justify making the page that long.