[00:26:32] is there a raw version of diff view, i.e. in plain text only? i added a few hundreds of lines to a page on another wiki, and VE started dying on it. i'd like to move these lines back out, into a subpage, and then transclude it. in the normal diff viewer, selecting a few hundreds of table rows may as well take an hour, i'd like to avoid that [00:45:59] Resolved by viewing raw wikitext of a page revision, rather than of the diff. [01:54:35] does anyone know an easy solution to the problem where a float:right image causes ugly text wrapping on a narrow screen? E.g.: https://i.imgur.com/t9XuJEB.png You can see here how the "The" beginning the sentence is at the top left, and then the text continues below the image... [01:55:20] even with MobileFrontend with the MinervaNeue skin it has the same issue on my smartphone for example [01:56:59] the page in question, in case anyone would like to inspect closer: https://bg3.wiki/wiki/Morningstar [02:03:08] taylan: One possible solution is to use Extension:TemplateStyles with media queries to do different css depending on the page width [02:05:19] taylan: See also https://css-tricks.com/minimum-paragraph-widths/ There's a pseudo element thing you can do, but that would also require Extension:TemplateStyles [02:13:49] thanks, that seems like a neat extension to have in general [02:39:45] taylan, don't know if someone answered you, but the problem with images that are just images is that they can't assume what context they're in. they could be a 25px flag included inline or something of the nature you've linked [02:39:55] if you want to guarantee that performs well in a mobile context, you need to make it a thumb [03:07:26] is there a way to make mediawiki strip empty paragraphs by default? I don't know if I've ever really had a situation where I wanted to keep them, and if I did, I could just use an NBSP or so I suppose. on the other hand, I often have to fiddle with the code and make it rather cramped to make sure the page doesn't end up having extra blank space. [03:09:28] actually it seems to insert
tags, not empty paragraphs, when there is extra whitespace in the source of the page [03:55:53] taylan: nope [03:56:20] common trick is to use HTML comments around newlines you want to keep in wikitext for readability but don't want to impact the parser [03:56:25] e.g. [05:44:45] Hi, I was here yestersay with an issue. Someone suggested I should look at the php error logs of MediaWiki, but I don't know where to find them. Can anyone help? I'm running MediaWiki in a docker container, if this is relevant [05:48:49] I don't know about docker specifically... [05:48:51] !debug [05:48:51] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [05:51:30]  warning This line has a length of 116. Maximum allowed is 100 max-len [05:51:30] warning ':disabled' should be on a new line vue/max-attributes-per-line [05:51:31]  warning Attribute ":disabled" should go before "v-on:click" vue/attributes-order [05:51:31]  error Missing space before function parentheses space-before-function-parenthensis [05:51:32] I am getting this error on jenkis bot review when i publish a patch [05:51:32] how can i make sure before publishing the patch that so i do not get this type of errors [05:52:37] Probably by running the tests locally ;) [05:53:35] but i am using window machine when i run npm test it just fill up my console with line ending with LF instead of cLRF type of error [05:54:58] https://stackoverflow.com/questions/29817511/grunt-issue-with-line-endings [05:55:04] Two potential solutions, I guess [05:59:07] okk thanks let me try it [05:59:07] Also how to make sure that when I publish a patch jerkin bot start testing it instead of reviewers needing to do it by themselves [05:59:43] You need to get yourself added to the allow list [05:59:57] If you've created a few patches, and they seem reasonable, it's easy enough to do [06:00:23] to do/ask someone to do [06:00:57] whom to ask ? [06:00:57] reviewers ?? [06:17:21] You can write the patch to add yourself if you want. The docs are at https://www.mediawiki.org/wiki/Continuous_integration/Allow_list [06:17:59] okk thanks a lot [06:32:18] Reedy I did add those, but there doesn't seem to be some sort of PHP error [06:45:45] I've no idea what the conversation was, but there might not be a PHP error [06:52:57] Well than I will give you some more context:) [06:52:58] I tried to implement onPageSaveComplete, but it does nothing after editing and saving the wiki artikel. It was pointed out, that my original code used $wikipage->getTitle() as if it was a String, which I changed (see code below). But still, no changes. Since this is the first time I implemented a Hook, I wasn't sure, if I implemented it correctly [06:52:58] in extension.json [06:52:59] - extension.json: https://dpaste.org/Jyumn [06:52:59] - LocationDataHooks: https://dpaste.org/0SihM [07:03:57] .quit [07:30:28] if someone could take a look at it, it would be great [07:55:27] I mean it would atleast help if someone could check if the hook is included correctly. Because I don't know if MediaWiki even runs onPageSaveComplete or not. [08:20:58] is there really no one who can help me?:( [08:31:47] What would also help, is if someone can tell me a way to debug this code with custom log entries. I tried everything on the "how to debug" page, but seemingly it doesn't put any logs anywhere, which sparks my suspicion that the said Hook isn't even called [09:04:15] Okay, another question: I'm trying to get Xdebug to work, based on this page https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/Xdebug_config_for_VS_Code [09:04:15] Do I understand Note #2 correctly, that I can't put Breakpoints in my extension code first, meaning that I fist need to set a BreakPoint in a php script from mediawiki itself? [09:06:55] > my suspicion that the said Hook isn't even called --> An easy way to check if your code is actually being executed, is to put an instruction that will cause a runtime error, for example: die("XXX"); [09:07:21] Ah, thanks for the hint, I will try it [09:10:26] Okay, it actually does go inside my Hook. But with this trick, I can actually go on and debug my code. Thank you very much Vulpix (y) [10:03:55] there doesn't happen to be a way to pass on all one's template parameters to another parameter, does there? [10:04:06] err, to another template I mean [10:04:43] the intent is to factor out a part of a very complicated template into another template, but it needs access to all the original template's parameters, and if I pass them on one by one then I haven't gained much [10:11:05] You have to pass them on one by one. Subtemplates only gain you any value when you are using them to work around wikitext's lack of iteration. [10:11:26] More or less. [10:12:15] If you actually want to work with parameters at scale or are dealing with a particularly complex template, a Lua module should be preferred generally. [12:17:26] There isn't a way using wikitext, you need to redeclare them all like `|1={{{1}}}` [12:17:26] Lua can do that however [13:38:48] Hi - I asked this question yesterday too, but: does anyone know why this patch is failing Selenium validation? https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WatchAnalytics/+/883522 [13:39:54] It displays a bunch of weird error messages - mostly timeouts, but the first one says that it attempted to create the page 'Creating BeforeEach-name-0.9040066256130086-Iñtërnâtiônàlizætiøn' but instead created 'Creating BeforeEach-name-0.9040066256130086-Iñtërnâtiônàlizætiøn\n0\n0'. [14:59:50] Yaron: I would just try rechecking again. It doesn't seem to be related to the patch itself. [15:31:15] Nikerabbit: okay, I did the recheck again, and it failed again, as I expected. I think it's safe to say it's indeed not related to the patch. But how can this be fixed? Is there a way to, for instance, disable the Selenium checks? [15:32:08] Hello! I'm having Wikibase installed on one wiki. When I or someone else wants to search for something, Wikibase items are popping out as a result. How I can disable that? [15:32:47] ChatGPT is telling me that I should place $wgEnableWikibaseRepoSearch = false; in LocalSettings.php, but on codesearch I don't see any result for EnableWikibaseRepoSearch. [15:46:20] Trusting AI with code is a good way to hallucinate when reviewing code ^^