[01:18:24] Reedy: James_F: regarding https://gerrit.wikimedia.org/r/c/mediawiki/core/+/607413 , there's confusion in the new UI what to do when a recheck works after the initial +2. Do you remove the +2 and +2 again? [01:18:33] currently in this same position at https://gerrit.wikimedia.org/r/c/mediawiki/core/+/616644 [01:18:52] the button says "Submit" which apparently means Merge [01:23:37] don't press submit [01:23:44] that bypasses jenkins [01:23:57] oh, that's explained [01:24:14] musikanimal: to retrigger +2 jobs, you just need to leave a comment while having a +2 vote [01:24:29] it could be anything, usually James and I use "..." [01:25:41] that couldn't be more confusing, heh [01:30:06] musikanimal: basically jenkins triggers the gate-and-submit pipeline whenever it sees a comment with a +2 vote. So it doesn't matter if the vote already exists or not [01:30:29] submit and V+2 should never be used in jenkins-managed repos [01:30:43] got it. Looks like gate-and-submit are running now. Thanks! [01:31:11] I wish we had more control over the UI. The "Submit" button in particular is awfully inviting when you think things are stuck [01:34:32] in other repos we've disabled the "Submit" button, but it's still necessary in some cases (usually security backports when things are very broken or you want to actually bypass jenkins) [01:37:41] can we change it to say "Merge"? [02:00:30] addshore: Amir1: wikibase CI is failing master. This is due to https://gerrit.wikimedia.org/r/616923. https://integration.wikimedia.org/ci/job/wikibase-client-docker/17121/artifact/log/mw-dberror.log/*view*/ [02:00:45] I suggest disabling the affected tests at your earliest convenience :) [02:00:54] Looks like it might be just ChangeVisibilityNotificationJobTest. [02:02:42] actually, maybe that's a genuine issue caused by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/602195/ [02:02:57] that'd be pretty cool if in its first hour the new check is already preventing a regression [04:00:58] I have a scribunto question, is this a decent place to ask? [04:02:48] specifically I'm wondering if there's a way, from within a lua module, to expand a parser tag into wikitext or html [04:07:10] I think I might see the way to do this actually [04:36:48] ningu: not sure why you need that since in order to run the lua module in the first place you need an invoke call. You can wrap that up in a template to make it nicer, add other stuff around it, or pass more things to the lua module [04:50:55] Skizzerz: the wikitext would be passed to the invoke call [04:51:16] but it turns out they removed that functionality (inspecting html output of wikitext) for security reasons [04:51:50] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess [04:51:57] lets you expand a parser tag into wikitext [04:53:14] yes, but I specifically need the result of from ProofreadPage, which it looks like I can't do [04:53:40] it just gives the strip marker [04:54:02] and unstrip() has effectively been removed [05:00:14] {{#tag:pagelist}} [05:00:14] instead of [05:00:24] former gets pully parsed at the same time all templates are expanded [05:00:34] (I think) [05:00:40] hrm, ok [05:00:43] interesting idea [05:01:16] been a while since I looked into it, so I could be wrong there. but the tag function allows you to pass {{{params}}} to tag extensions so it does have some parser magic backing it [05:04:16] Hi, need some help with VE on vbox , no SELINUX , forewall or https ...VE does not show up and mediawiki is working fine [05:04:46] parsoid running as well [05:04:47] Skizzerz: see what I did here https://commons.wikimedia.beta.wmflabs.org/wiki/File:Carcan-kucing.djvu [05:04:56] Skizzerz: and here: https://commons.wikimedia.beta.wmflabs.org/wiki/Module:Palmleaf [05:05:07] ok, t you [05:05:15] it seems to still be producing the strip tags? [05:05:26] I used as a test case [05:06:08] or do I need to do the frame preprocess? [05:06:37] no, if that still passes the strip marker I'm not sure there's much you can do from a module [05:07:06] ok, so what I really want to do is this [05:07:30] on wikisource index pages gives the list of numbered pages colored by status, here: https://wikisource.org/wiki/Index:H.M._Der_Untertan.djvu [05:07:56] ideally I want the same output but I want to modify the links to go to a toolforge tool [05:08:18] i.e. same kind of output with colors, zero-padding, i18n etc etc [05:08:49] I could talk to the author of ProofreadPage I guess, or re-think whether I really need to do this [05:09:28] maybe it would help if you explain what you're actually trying to do [05:09:50] if you want to reroute links, use JavaScript [05:09:55] legoktm: I need a different editor from ProofreadPage for a particular kind of source (palm-leaf manuscripts) [05:10:08] make a gadget [05:10:15] ok [05:10:20] that's an option too for sure [05:10:39] and then the gadget could be installed on the wiki site I guess... what's the process for that? [05:10:45] I mean the wikimedia process [05:10:48] I can look it up [05:11:27] you need a local interface admin to add it [05:11:39] well yes, that much I know [05:11:47] I'm just wondering what can be approved and how it is done [05:12:50] I can ask on #wikimedia-tech [05:15:57] oh I see, gadgets are just wiki pages? cool [05:16:43] nevermind, just the Gadgets-definition [05:21:25] gadgets are just wiki pages [05:21:30] MediaWiki:Gadget-foo.js [05:21:32] and .css [05:24:58] ahh ok [05:24:59] cool [06:04:58] ddd [09:08:21] Hi guys, can please someone tell me how I can disable StructuredDiscussions so that it's not anymore shown? I don't want to deinstall it [09:28:32] I have a question regarding https://www.mediawiki.org/wiki/Extension:MsCatSelect first for 1.34 I had to patch it like this: https://www.mediawiki.org/wiki/Extension_talk:MsCatSelect but I was wondering if it's normal that I only see uncategorized categories in the dropdown? :/ [16:04:09] Hi, I'm trying to configure MediaWiki on my RPi4 [16:05:25] I think i'm running into issues currently [16:09:54] I'm a total noob. What does "MariaDB [(none)] debian-sys-maint " do? [16:10:39] What do you mean what does it do? [16:11:56] The article mentions "The configuration process will prompt you to download a LocalSettings.php that must be saved to the parent directory of the new wiki. The configuration page will give the exact directory/filename that must be moved" [16:13:53] I'm sorry. I actually started with the config as it turns out :D [16:16:28] I finally see an error [16:17:20] https://www.irccloud.com/pastebin/3NSDTSOc/ [16:19:30] here we go --> https://dpaste.org/aVqN#L12 [16:22:25] chrisalbon: Yes you do [16:22:28] !update [16:22:28] update.php is a script that updates the database tables. You usually need to run it after upgrading MediaWiki or installing certain extensions. For details, see [16:25:33] am i supposed to run an update? [16:26:23] No [16:26:28] ok [16:26:28] You've put in credentials that don't work [16:27:25] how do I lookup the users I have defined in MAriaDB? [16:31:10] select * from mysql.user; [16:42:18] Thanks Reedy `docker-compose exec mediawiki php maintenance/update.php` did it! [17:58:11] Hi Reedy. Thank you for your help. I am now running the Mediawiki server [17:58:22] I had forgotten my password I had set [19:16:58] hello, how can I get full url of image in Scribunto? I want to create a direct link to image. Normally [{{fullurl:{{PAGENAME:File:IMAGENAME.JPG}}}} link] works, but how can I expand it in Scribunto? [19:18:42] ah, [{{filepath:{{PAGENAME:File:IMAGENAME.JPG}}}} link] works [19:19:04] but in Scribunto? [19:35:26] i think there are some methods to evaluate parser functions like 'filepath'? i don't remember the details [19:35:49] and there's also some method to expand all brace syntax in given wikitext [19:36:24] something like mw.getCurrentFrame():callParserFunction('filepath', file) [19:36:39] but I get Lua error: callParserFunction: At least one unnamed parameter (the parameter that comes after the colon in wikitext) must be provided. [19:37:11] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:callParserFunction [19:37:38] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess [19:38:43] sorry, i'm not too familiar with it myself, i just know where to find the documentation [19:39:18] yeah I found it but I don't understand it well enough to make it work :) [20:25:59] Hi, I was able to setup the server, my RPi4 was turned off accidentally while the device was functioning and now I see this log --> https://dpaste.org/Y2hM#L10 [20:26:08] What does it mean? [20:26:50] !upgrade [20:26:51] http://www.mediawiki.org/wiki/Manual:Upgrading [20:30:30] mysql/mariadb probably isn't running [20:36:22] I tried systemctl restart mysql. no changes [20:36:37] Restarted apache2.service too, just in case [20:37:02] check the mysql logs? [20:37:14] i haven't [20:51:54] is there a technical difference between a user script and common.js? [20:53:38] Define technical? [20:56:50] according to https://www.mediawiki.org/wiki/Gadget_kitchen, "User scripts are similar to the personal JavaScript pages such as Special:MyPage/common.js, but they allow single code chunks to be shared with other users" [20:57:03] what about them allows that? what's the difference? [20:58:28] You can include other users user js into your js pages [20:58:46] But you can include another users common.js if you want too [20:59:10] hmm... ok [20:59:18] via resourceloader? how does that work? [20:59:33] No [21:00:26] well, kinda [21:00:29] mw.loader.load( 'url' ); [21:00:31] etc [21:00:44] and that url would be just the fully specified url? [21:00:56] so .../wiki/User:Foo/bar.js [21:01:00] mw.loader.load( '/w/index.php?title=MediaWiki:Example.js&action=raw&ctype=text/javascript' ); [21:01:04] ah ok [21:01:07] makes more sense [21:01:26] can do full urls and load from other wikis and stuff [21:01:31] but things like CSP can break that [21:01:49] yeah, I don't need any of that, just wondering about concepts [21:02:06] ok, so I am going to just experiment with common.js and that seems fine, and it will load for any page on the wiki for me, right? [21:02:22] The user one? Yes [21:02:40] yes. but then if it gets promoted to a gadget (on wikimedia wiki in this case), can specify which pages it should load for, right? [21:02:55] Not exactly [21:03:13] In the JS itself, you can do like a NS/page name check, and bail out [21:03:49] ah yeah, ok I see [21:04:07] that seems easy enough [21:04:32] this is pretty trivial stuff I'll be doing (I think) -- I want to detect certain links and rewrite them [21:04:47] I don't mean trivial in terms of being approved for general use, just for coding the js [21:05:01] can assume jquery is loaded, it seems? [21:07:41] I think so... As long as js is enabled in your browser. As obviously if it's not, none of it is going to be run [21:07:45] https://en.wikipedia.org/wiki/Wikipedia:User_scripts/Guide [21:08:10] yeah of cours [21:08:13] e [21:16:26] Reedy: do you know how you're meant to check the current wiki page title/content from js? [21:17:16] hmm, mw.config apparently has some of it [21:17:38] wgTitle would tell you that [21:17:44] https://www.mediawiki.org/wiki/Manual:Interface/JavaScript [21:18:07] ok yeah, so wgTitle gives the page name, but if I want to look at the wiki page content, that depends on teh skin I guess [21:30:25] mw.util.$content I think? it might be named something else now [21:36:49] found it, there is a hook called wikipage.content [22:06:42] ningu: the title is usually in $('#firstHeading') [22:06:45] but it's skin dependent [22:06:57] no standard way as it is upto the skin to decide [22:07:21] but yeah mw.config is the way to get the string [22:07:45] note that wgTitle is without namespace prefix. e.g. "Foo" not "Wikipedia:Foo" or "User:Foo" [22:07:56] wgPageName is with that as well [23:17:37] Krinkle: thanks!