[07:10:20] h [12:39:03] hi folks, how do i add a multiline preformatted text block, usin visual editor? [12:40:37] an EOL return seems to end the preformatting block :/ [12:41:13] aah, shif+return [12:43:25] meh, not working [13:25:47] damn, I did 'git pull -r' in extensions/Translate and it hosed my entire mediawiki (local) [13:26:09] I guess it was from MLEB and I should not have done this [13:32:17] What now? Backup .env and LocalSettings.php and do 'git reset --hard'? Then what do I do with Translate extension so I can develop it? [14:59:05] isn't https://phabricator.wikimedia.org/T136342 resolved? [15:03:02] Tamzin: I think it got disabled in en wikipedia, but the feature in mediawiki still exists [15:06:08] hmm https://www.mediawiki.org/wiki/Requests_for_comment/Future_of_magic_links [15:06:23] funny enough, the enwiki page says it was removed from core [15:17:23] I tried 'git reset --hard' and it didn't do anything [15:17:47] Do I really have to nuke everything? [15:20:27] Tamzin: that feature is controlled by a setting: https://www.mediawiki.org/wiki/Manual:$wgEnableMagicLinks [15:24:57] Tamzin: I think that was the intention but everyone got nervous actually doing it [15:25:06] buovjaga: What are you trying to do? [15:25:28] develop the Translate hook [15:26:06] so if I nuke everything, should I clone all the necessary extensions instead of using MLEB? [15:26:16] buovjaga: I mean, what are you trying to accomplish with git reset --hard ? [15:26:28] to get into a working mediawiki git state [15:26:40] current state: fucked [15:27:03] try: git reset --hard HEAD; git checkout master; git reset --hard origin/master [15:27:28] [This will kill anything you might have been working on] [15:28:29] thanks, no worries, I have notes and I have that one patch in Gerrit for ReplaceText [15:29:34] It doesn't permenantly delete anything you've actually committed, just figuring out how to get stuff back can be confusing (While, git reflog makes it easy, but most people don't know about that command) [15:30:22] didn't do anything, but thanks, I'll work on it later [15:31:46] As far as MLEB goes, I've never used it so don't know much about it, but i don't think its designed for dev work. In general I reccomend just cloning mediawiki from git, and cloning any extensions separately. Or at least that's what i do, different people do different things i suppose [15:32:50] yeah, it will be quick enough to nuke and start from scratch now that I've got the handle on things [19:47:26] when I dm someone it is showing me "You must log into your NickServ account to message this user" Can someone help how to solve it. [20:02:04] Nikhil61: Are you familiar with NickServ? [20:03:01] nope [20:11:48] Nikhil61: Type: [20:11:53] /msg NickServ help [20:12:36] but the tl;dr NickServ is how you register an account on irc. You have to register your account before sending dm's (to help prevent spam) [20:19:31]  /msg NickServ help [20:20:58] sorry for this message. I misunderstood. [20:21:04] No space in front [20:26:49] hey thanks I have created an account [20:28:05] Nikhil61: indeed, you show as logged in to me [20:28:08] Congrats! [20:34:52] i was told by rhinosf1 that my solution to pull request to fix issue #9 on https://github.com/marohh/mediawikiRemoveRedlinks was not the right way to fix and that IRC would know the right way [20:34:52] so can someone help pls [20:36:06] Can someone with performance knowledge please help [20:36:38] * bawolff looking [20:36:39] The extension was just showing red links based on the logged-in state of the user who triggered the last cache purge [20:36:48] What’s the best way of doing it sanely? [20:37:05] JS like proposed or split cache based on show-red or not [20:37:10] And if split cache, how [20:37:18] Or a way I haven’t thought of [20:37:21] Hey bawolff [20:39:09] RhinosF1 / Colleiflower[m] : So i just wrote some Split cache code for Extension:MyVariables. You can follow that if you want to take that approach [20:39:26] alright got it [20:39:29] thanks [20:40:09] Performance would be mildly better with a JS solution since cache wouldn't be split, but the difference is probably not huge [20:40:16] bawolff: which way is likely best / least horrible to do it [20:40:20] and js based comes with its own issues in that it doesn't apply immediately [20:40:51] so users get a flash of the wrong version at the beginning, which most users don't like [20:41:02] i noticed [20:41:08] Logged out users should all see the same page anyway [20:41:20] Logged in could have config anyway that splits [20:41:31] https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MyVariables/+/886409 is what i did for MyVariables [20:42:08] kk [20:42:11] although you're from a link hook, which isn't always called from the parser, so you would have to do something tricky to get a parser instance [20:42:24] a bit busy right now so i'll look into it later but understood [20:42:40] i know that it is possible because fandom did it [20:42:40] but i have no idea how [20:43:29] There is no saying fandom’s way was the least horrible [20:43:38] wif you want to split the parser cache always (regardless of if a link is used), you can also use the onPageRenderingHash hook [20:43:53] @Legoktm Are you here? [20:44:00] I mean surely you should only split if you need to bawolff [20:44:16] So it should only have the redlink split if there is a redlink [20:44:22] ideally yes [20:44:26] Otherwise it’s an unnesscary split [20:44:39] I can’t spell unnesscary but shrug [20:44:46] Even spellcheck hates me [20:45:03] RhinosF1 (@_discord_583048585982246918:t2bot.io): fandom's way is likely horrible [20:45:04] (didnt mean to discord ping oops) [20:45:04] the only reason their site isnt laggy from all the hacks and horrible code is because they spend a lot of money on hosting and such [20:45:22] just look at their glassdoor reviews to see how they manage development [20:45:28] Necessary =) Got the S's and C mixed really. [20:45:28] Wow the relay is laggy [20:45:34] The other method, is if you don't care about actually getting rid of the link, but only the appearence of that, you could do a pure css method [20:46:01] i do care about getting rid of the link [20:46:01] mainly for SEO reasons [20:46:06] but also because i dont find the redlinks too helpful [20:46:11] Collie’s ping to me was just after Embryonic’s first message [20:46:13] for logged out users [20:46:28] yeah i noticed the relay lag too [20:46:34] its laggy on the discord end [20:47:01] Embryonic: hi [20:47:05] I was hoping that Lego was here, but apparently not. I am using his Debian script linked on the Installing_MediaWiki page, and am Configuring Mediawiki now, but it is asking for a MySQL Root username and password, that I cannot find anywhere in docs. Anyone have any idea what that might be by default? I was not asked to set it during installation. [20:47:08] Oh, Hello! [20:47:50] e.g. You could use css pointer-events to prevent clicking and style as normal text. Which would fix the JS problem of stuff not showing up immediately, but probably not your SEO desires [20:47:56] also css pointer-events is kind of evil [20:48:02] You'll want to create a mysql user for MediaWiki [20:48:30] e.g. https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql [20:48:35] Ok, so the script didn't create one for me? I need to go configure MariaDB? [20:48:45] Gotcha, I was just a little thrown is all - Appreciate it [20:50:09] yep [21:02:13] That was it, Thanks again! [21:08:14] anyone know why Cargo might create duplicate entries in tables, like here? https://bg3.wiki/wiki/Special:CargoTables/weapons [21:08:41] you can see it right at the top, where Adamantine Scimitar is repeated twice [21:11:48] If the template was on the page twice maybe? [21:11:55] doesn't look like that is the case [21:12:04] I would probably do a null edit and see if it disappears [21:15:48] Cargo has some troubles if there are missing values passed in. I'm not sure if this was resolved in a newer version though [21:16:37] I think I'll just add an explicit column with the page name that's set to unique... [21:22:55] how to see logs of direct messages? [21:25:07] Nikhil61: direct messages where? [21:25:35] dm here on irc [21:26:12] unless your IRC client logs such messages, there are no public logs of those messages [21:26:35] they're basically private messages between 2 users [21:27:54] so how will i see reply to my messages if i leave the channel once? [21:28:12] you won't be able to see them [21:28:21] :; [21:28:30] okk thanks [21:28:55] it would be like the other party is talking to a wall [21:29:40] Nikhil61: Vulpix: This channel is logged tho, as mentioned in the /topic https://wm-bot.wmcloud.org/logs/%23mediawiki/ [21:29:58] yay i know this