[00:03:37] 14,99[15:14:50] 99,99 9,99zabe:99,99 redirect.py is for fixing double and broken redirects. fixing_redirect is for fixing links to redirects in an article, when there is an article, which contains a link [[Foo]] which itself is a redirect to [[Bar]], fixing_redirect replaces [[Foo]] with [[Bar|Foo]] in the article. [00:03:37] 14,99[15:16:39] 99,99 9,99zabe:99,99 And I at least understood the question to mean that the second was intentional, but it may also be that I misunderstood the question. [00:03:37] Yes, the second is what I want [00:08:50] ok, then fixing_redirect.py is the correct script for the job [00:11:15] Okay, thank you [04:59:46] Does VisualEditor work with Timeless? [05:01:52] yes [05:03:11] Okay thank you [05:03:24] Does it work on mobile without Mobile frontend? [06:08:28] unless I get work to do, today is shaping up to be ‘find out why my MW decided to bug out in a fascinating way after the 1.37 upgrade’ [06:08:47] though I have a vague suspicion it is related to me using PostgreSQL again [10:20:42] I feel like this is just plain weird: the Page information page (action=info) has empty page names in Transcluded templates sections *for pages in Template: namespace only* [10:22:02] regular page: https://i.koumakan.jp/2022-02-15/1644920484.png vs template: https://i.koumakan.jp/2022-02-15/1644920514.png [10:22:43] wait, no, I mean the Pages transcluded on section [10:22:58] that one has empty links [10:23:11] going to poke source further :| [10:53:58] seems like LinkCache::getSelectFields() is the culprit [11:01:08] oh sure is, and it seems fixed in master [11:04:51] * Remilia uses https://github.com/wikimedia/mediawiki/commit/ec074a6a2793fede0ff4c46c910acd7d9daf6ef4 to patch her local instance [11:25:13] Hello, is this the place to ask for information for a locked IP? [13:33:15] I'm trying to rename my own account on my MediaWiki site, got an error, and found this: [13:33:16] "You can't rename the same account from where you're performing the rename. Use the command line maintenance script to do the rename, or use a different account to do the rename." [13:33:30] how am I supposed to do that, though? I can't find any documentation or discussion about it. [13:33:47] (which command line maintenance script to use, with which arguments, etc.) [13:36:36] are you talking about the Extension:RenameUser [13:37:04] yes [13:37:41] the page for it (https://www.mediawiki.org/wiki/Extension:Renameuser) says this, but it goes into no details about what to do [13:37:47] no does the linked task page [13:37:49] *nor [13:37:52] there is a maintenance folder in the extension, you can run that from the cli [13:38:13] sure, but with which arguments, etc.? [13:38:37] did you look at the file? [13:38:40] also, there are two scripts [13:38:45] I don't know if I need to run both, just one, etc. [13:39:25] I can look at it and get an idea what I should maybe do, but I'm not a PHP developer [13:39:33] renameuser is the one you want, the others are older [13:39:43] there is no script called simply renameuser [13:39:59] I see renameUserCleanup.php and cleanupArchiveUserText.php [13:40:17] those are the two scripts in the maintenance folder in the RenameUser extension folder [13:40:29] no documentation in there, either, about how to run them to accomplish an account rename cleanly [13:41:30] uh, i think youa re running a old version [13:41:52] let me check [13:41:57] it was added in 2020 https://github.com/wikimedia/mediawiki-extensions-Renameuser/commit/7dd4c77d1495acdea40d2479e0324cefe7c8a89e [13:42:40] oh, there it is [13:42:52] is it just renameUser.php $olduser $newuser? [13:47:25] I think I got it [13:47:40] yes, thanks [14:27:20] tsundoku: most maintenance scripts accept `--help` [22:05:15] I'm working on a bot using PyWikoBot that needs to run every time someone edits a page in a certain namespace. Is that possible? [22:07:16] kj7rrv: yea, possible, though you might have to wrie something like this: https://www.mediawiki.org/wiki/Manual:Hooks#Writing_an_event_handler [22:07:32] or your own script that just checks the history page for changes or asks the API [22:07:36] Oh okay [22:08:00] How often should it check history? It needs to respond as quickly as possible without overloading the server [22:08:23] Since it isn't an extension, I would assume it can't use hooks? [22:08:28] in that case you want the "hook" [22:08:32] that is more proactive [22:08:40] as opposed to checking every X minutes [22:08:49] Okay [22:09:01] So I would write a small extension that runs the bot? [22:12:42] kj7rrv: you can add that in LocalSettings.php without writing an entire extension, as far as I see [22:13:11] Register the event handler by adding it to the global $wgHooks array for a given event. Hooks can be added from any point in the execution before the hook is called, but are most commonly added in LocalSettings.php, ... [22:14:40] Oh okay [22:14:59] So it would just call PyWikiBot with my script? [22:15:09] though.. it might only let you use a PHP function and not any random shell command [22:15:16] maybe ask the pywikipedia bot people directly too [22:17:03] kj7rrv: I suggest you ask for "best practices" how to make pywikipedia bot do something based on a wiki edit here: https://www.mediawiki.org/wiki/Manual_talk:Pywikibot [22:17:40] see how there are already similar things like "check if a page exists" etc [22:17:54] Oh okay thank you [22:18:03] yw