[00:00:17] you want #ifeq [00:00:27] boblamont: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifeq [00:04:54] is there a style guide for how to cite websites in wikipedia? [00:05:47] depends on which Wikipedia [00:06:11] oh - i mainly just want to see what people recommend, for my own wiki [00:17:24] legoktm: {{#ifeq: {{FIELD}} | X | [[Category: X]] | }} ? [01:17:22] Inorder to see a task and its code/file(ex- https://phabricator.wikimedia.org/T151198) do I need to download MediaWiki-Vagrant? [01:21:08] No [01:22:47] Reedy:Do I need to sign up then? [01:22:56] at Phabricator [01:23:05] It's useful, if you're going to be working on tasks, yes [01:23:14] You don't have to though to view code [01:23:27] okay [01:24:26] for instance can you tell me whats Special:CXStats here- https://phabricator.wikimedia.org/T151198 [01:24:43] means* [01:24:53] It's a mediawiki special page [01:25:48] okay.. Say I want to work on this task. How do I get started? [01:26:02] Is this task okay for a beginner? [01:26:16] It's been marked as easy, so it should be [01:26:28] You want to clone a copy of hte content translation extension [01:26:58] yes [01:33:26] what next? [01:34:10] Find hte message that would give "1,700 translation" [01:35:07] or not [01:35:08] it's in the title [01:35:12] of the bug what the message is [01:37:18] just a sec. I havent clone yet! [01:41:01] Well I cant figure out how to clone from phabricator [01:41:54] !start | p_d [01:41:54] p_d: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker [01:45:17] There is no guide over there on how to clone! or is their? Is it same as git, can we do it with git CL? [01:45:40] "Download from Git — Download the latest source code from Git." [01:49:48] {{#if: {{{Field}}}|[[Category:{{{Field}}}]]|}} <-- displays as "[[Category: Field]]" instead of showing up as a category ... I'm missing something. [01:58:27] Reedy: Should I follow this tutorial( https://www.mediawiki.org/wiki/Gerrit/Tutorial) for cloning? [02:05:52] Does {{#if: {{{Field}}}|[[Category:{{{Field}}}]]|}} say "If the parameter Field isn't empty, add [[Category: Field]] to the template, if Field is undefined, add nothing? [02:07:10] boblamont: if field is undefined it will add the category also [02:07:20] unless you use {{{Field|}}} [02:07:50] in both instances or just the first one? [02:08:12] the first one [02:11:28] Vulpix:thanks. Instead of it showing up as a category, it displays "[[Category: Field]]" on the page. Is that syntax or where I'm putting it in the template? [02:13:28] maybe you have a line break between the "=" and the "Field" value, or some other weird syntax/characters? [02:18:31] {{#ifeq:{{{Field|}}}|||[[Category:{{{Field}}}]]}} boblamont is what you want. [02:20:55] that's analogous, not really different [02:21:14] #if tests for emptyness, #ifeq tests for equality [02:21:55] ok, I figured it out... the field name was defined with link brackets, instead of the link brackets being where they belonged in the template, so they broke the link brackets for the category [02:29:06] Just to practice my syntax, does shoemaker's statement translate to "If the field is equal to null, then do nothing, if not, print "[[Category: Field]]"? [02:31:38] null as undefined I guess, or empty [02:33:09] Yeah, that's what I interpreted it as. So it's basically the reverse of the #if statement, but accomplishes the same result. [02:35:57] not the reverse, it's just different [02:49:15] I appreciate the help, it got me over the bump. [04:53:24] #ifeq: is (or at least was) more accurate most of the time for reasons I don't currently remember. [07:37:15] Thanks https://phabricator.wikimedia.org/T76942#2816801 [11:53:54] Hi, I'm trying to learn this oojs thing, why does this helloworld style example not show a close button and why is it misplaced...? https://test.wikipedia.org/wiki/User:Gryllida/common.js Thanks in advance [12:00:46] gry: PopupWidget will not position itself. are you trying to do something in particular, or just playing with stuff? [12:01:02] just playing with it - would like to use it for gadget writing later on [12:01:10] gry: you probably want to use a PopupButtonWidget, which is a button that displays the popup when clicked, and which handles popup positioning [12:01:22] in this particular instance, the 'hello world' style task is show a popup next to the talk tab [12:01:34] ok [12:02:35] another thing, ... I would like my script to be loaded after visual editor is loaded, is that doable? [12:03:09] and https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Popups does not have popupButtonWidget docs [12:04:03] gry: it's linked at the very bottom: "You can also achieve this effect using the built-in PopupButtonWidget class." - https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Buttons_and_Switches#Popup_buttons [12:04:27] gry: yes - https://www.mediawiki.org/wiki/VisualEditor/Gadgets#Running_code_after_VisualEditor_is_activated [12:06:16] thank you [14:01:35] Q: did anyone here migrate from Atlassian Confluence to mediawiki? if yes: how did you migrate the data? [18:44:44] hola [18:44:55] help [18:45:18] !ask | icabeza [18:45:18] icabeza: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [18:51:49] Antes no me dejaba escribir, ahora puedo? [18:52:45] Resulta que tengo 4 archivos, tres de ellos enviados está mañana, en condor_q icabeza me salen que están corriendo pero he eliminado los archivos de sus carpetas, por lo tanto , están corriendo, hay alguna manera de eliminarlos?? [18:56:39] I don't know what "condor_q icabeza" refers to. [18:56:53] Is this a question about your own MediaWiki installation? [18:57:30] noç [18:57:36] me estoy equivocando de sitio? [19:01:23] icabeza: Welcome to the IRC support channel for the MediaWiki software. Is your question about the MediaWiki software? [19:02:54] alright. [20:23:46] Hi, there! Did anyone know something about storing mediawiki pages as files or similar ideas ? Eg. when you can load Titles from file on-the-fly. I wonder if there is anything similar to that already exists. [20:26:23] Vedmaka: Have you tried Kiwix? [20:28:11] bawolff: No, just checked their site and it does not seems to be related to my question :) [20:28:29] I think there are other similar projects, but kiwix is the most popular [20:30:21] I think I was a bit unclear - what I am talking about is ability to fetch pages content from file system instead of database on-the-fly, like if you could create a file named "MyPage" and transparently view/edit its contents in wiki main namespace. [20:32:30] I am not sure if Mediawiki abstraction layer allows such tricks though it would be interesting to experiment, hence I am curious to know if anyone already did something similar to that [20:33:15] Oh [20:33:26] Umm, the closest is using Sqlite as a db backend [20:33:45] but that's not really what you mean [20:34:51] The way MW stores page text is not overly ammenable to that type of storage (MW puts page text into immutable blobs in the text table, which don't easily correspond to actual pages) [20:35:12] If someone tried very hard they could maybe get something like that to work, but it probably wouldn't be easy [20:36:06] An easier solution might be to expose MediaWiki as a remote file system, and "mount" MediaWiki pages as a filesystem [20:36:22] If you just want to edit from command line, see maintenance/edit.php [20:50:00] Yeah, I guess it is not so easy. Yep, I've already coded Mediawiki remote filesystem proof-of-concept (MediawikiFS) few years ago though there were too much efforts required to build something more usable than just that proof of concept. [20:50:33] the db abstraction layer is designed pretty much exclusively for use with a db [20:51:04] a SQL db, at that, since mediawiki passes in raw SQL fragments in places on occasion (I believe mostly in extensions, I don't recall core doing much of that) [20:51:20] it definitely isn't a full-fledged ORM [20:55:29] we do that in core too, mostly for complicated conditions or joins [20:56:06] while in theory our abstraction layer supports join conditions not being raw sql [20:56:15] its just a rather confusing syntax [20:57:49] well, it supports it [21:19:05] yep, I guess this idea is doomed :O [21:34:51] tgr: In regards to Cindy's patch, I +1'd it for the security review, but I left it for you to +2 for review of it all fits in AuthManager ok, but if you want I could +2 it instead [21:41:13] bawolff: thx, I want fix a potential weakness (an attacker could use GET parameters to set form defaults which are then autosubmitted) and will merge afterwards [21:41:33] ok [21:43:17] Vedmaka: this also may not be what you're looking for but I'm currently in the early stages of building an extension for accessing wiki content with git. Not usable yet but feel free to keep an eye on it. https://github.com/MTres19/mw-extension-git [21:44:19] Oops, meant to ping bawolff, sorry. [21:45:11] Sorry, no, never mind. *wince* [21:45:23] I remember once upon a time someone did the same thing with svn [21:45:48] although that project ended up not being easy to use because it presented a directory containing 100,000 files... [21:46:17] SVN is definitely better suited to it but practically no one uses it these days because it's not "cool". [21:46:51] I plan to have my extension use namespaces as directories, but yeah it's not meant for really huge wikis of course. [21:48:23] The SVN extension I think was also meant to be an interface for webdav [21:48:38] it was cool from what I understand, but very rough around the edges [21:48:40] you could use git as mere storage but keep a db for the rest of tables [21:49:50] Oh, that's kinda cool. [21:51:06] You mean implement the page modification classes for git? It's an interesting idea but my method tries to interfere with normal wiki functions as little as possible. [21:51:48] It has a special page and only three extra tables to keep track of a few things MediaWiki can't store. [21:54:03] I admit that it doesn't have a wide use case; the motivation was that the administrator of the SuperTuxKart wiki didn't want to allow free user account creation with the moderation extension. [22:05:33] where can I find a core dev to take a look at https://gerrit.wikimedia.org/r/#/c/322039/ ? (I'm guessing nobody saw my message in -dev 'cause of all the botspam there) [22:40:40] how do i include one javascript inside another when coding a userscript in mediawiki? [23:12:13] MTres19: wow, really interesting!