[00:00:04] [1/2] As long as the wiki doesn't become a storage dump for assets in the game you should be fine. [00:00:04] [2/2] Every image should be used to reinforce the information on the articles. [00:00:12] the problem with game wikis is not talking about the game but rather using game assets [00:00:44] Sure. I got the assets from the Devs and am not planning on overloading the wiki with every single thing I got from them [00:00:52] then you're good [00:01:06] assuming they gave your permission to use them on the wiki [00:01:43] I don't think ever technically said that I had permission, but it was strongly implied by me asking for them for that purpose. [00:01:48] Its fine to use renders for characters or in some cases screenshots, like if theres a specific bug. But full soundtracks etc. They would probably start to take an issue with. [00:02:08] what I said isn't legal advice btw, just stating that e.g. the Battle Cats wiki has no contact with the game devs, uses so many assets that there's an entire thing to view every animation in the game, and still has got into 0 legal trouble [00:02:45] Nothings ever legal advice lol. [00:03:04] Skye is one of the legal-type people here although I don't know how much of the copyright stuff she does [00:10:34] would be hard to be on the team if I didn't exercise some knowledge in dealing with copyright [00:11:13] the tl;dr is that most of it would fall under free use, and I imagine the developers probably won't come knocking if they gave them to you yourself [00:13:01] not a huge concern yeah [00:13:18] the animation viewer is certainly a risky move and likely wouldn't pass the fair use test [00:14:19] that would, however, be for you and the lawyers to hash out in court if they ever send us a DMCA [00:17:22] does anyone remember this tutorial/beginner's guide page on how to write a lua module [00:29:46] this one? https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual [00:30:03] [[User:PetraMagna/lua]] is the general tutorial [00:30:03] [00:30:17] i like that one more [00:30:58] [[mh:battlecats:Project:Lua]] was written in Fandom times but is a little more detailed [00:30:59] [00:32:46] sorry I keep on realising how little I know about mh 😭 [00:33:15] We all always learning [00:33:35] no, dw, definitely not a wrong assumption to make that some people wouldn't deal with copyright [00:33:36] oh yeah definitely not. worst comes to worst I can defect to North Korea or something [00:34:02] worst comes to worst you just wont have an animation viewer [00:34:09] that's about it [00:34:39] TL; DR: biggest thing is to make sure you're attributing the rightful owner of the assets on the file page [00:34:58] thanks for the clarification [00:36:25] Absolutely. Near certainly fair use esp if given freely by developers, but still good practice to mention the developers are the originators of the assets [00:41:34] Is there a template for the general wiki pages that show an image in box with info under it and other sections? I’d appreciate the help! [00:41:54] Just a general wiki page. I don’t really know what template that is [00:42:01] Or if it’s a code? [00:43:29] [1/2] if you're talking like this then [[Help:Infoboxes]] [00:43:29] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470218513489854575/image.png?ex=698a7f30&is=69892db0&hm=f4144b4deefb655c45cfd1b0b2bfb7e726e60d4121cdc403cd83367f6363c9ea& [00:43:30] [00:49:00] hey guys [00:49:04] look under there [00:52:21] Lol [00:52:42] Probs an #offtopic thing tho [00:56:39] what do you mean by "there"? where is "there"? [00:57:47] please direct all nonsensical conversation starters to #offtopic [00:58:45] yes it was this one [00:58:58] right under there [02:05:28] quick question, is there a way to add alt text to images when updating them? [02:07:49] if not, is there a way to implement alt text in the portable infobox? [02:08:11] you can't really add alt text to images, no, you can only add alt text when you're using them [02:08:17] lemme double check if you can add alt text to PI [02:09:37] okay, so alt syntax appears to be `` i think? untested tho [02:11:00] ill try that, thanks [02:13:13] doesn't seem to work, ill put a caption describing the image in the infobox, hopefully it should work for screenreaders [02:30:42] [1/2] how do i change this [02:30:42] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470245494490927372/image.png?ex=698a9851&is=698946d1&hm=0cb5e402e5571202d80c3c9ae5c71eadee7d9c6a7684dc0d2d5b35b542e7de3f& [03:09:43] [1/3] I just got an email saying that an extension my wiki uses is being removed in MW 1.45. However it is not on the page [03:09:43] [2/3] [03:09:43] [3/3] I have a feeling it's Extension:MassEditRegex cause I noticed the page said it was incompatible with 1.45, however it does not have an entry on this page and my other wiki which also uses it did not get the email [03:10:07] Hi [03:10:23] I just created mi wiki but i dont know where to go [03:10:44] From which wiki did you receive the email? [03:10:57] ZeroRanger Wiki [03:11:24] the wiki that did not get the email is Void Stranger Wiki, but they should have identical extensions (I may have forgotten to sync one or two changes though) [03:11:40] :moonch: [03:11:48] Someone answer me aghhh [03:11:49] MassEditRegex is not being removed. That one has a much heavier use case we would do everything we can to maintain high use extensions before removal. Just to clarify. [03:12:10] Whats your username onwiki [03:12:37] HitZack [03:12:48] interesting. but the extension page says it's not compatible. what happens with it then [03:13:06] We can probably fix it ourselves if thats the case. [03:13:08] I just created it ,but i dont know how to go to it and post something and that [03:13:09] It has Flow enabled. [03:13:49] youversuspeter.miraheze.org [03:14:07] Though Flow is in a slightly different situation compared with the other extensions on the list: with enough popularity and clear use cases we might be able to fix the other ones, but Flow is going away since not even the WMF is willing to maintain it. [03:14:26] huh ok. could have sworn it was unchecked when I searched managewiki [03:14:40] (in the toilet now) [03:15:06] good to know. I rely on it quite a bit [03:15:54] [1/2] It's this one. Since it is a restricted extension is may seem to be grayed out, which probably led to the confusion. [03:15:54] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470256870995267695/image.png?ex=698aa2ea&is=6989516a&hm=e626bee3e74fd39bfebc9658383f4cbc3050a70dcd229255e80cd62a132c0398& [03:15:59] Thank u [03:18:08] ah yeah that's probably what happened [03:18:36] and since it's restricted I wouldn't have been able to disable it when syncing [03:29:13] [1/3] another quick question regarding alt text, im trying to assign alt text to a gallery image, but its making the alt text the caption. [03:29:13] [2/3] Not sure what to do because im following what mediawiki shows as an example [03:29:14] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1470260222546280458/image.png?ex=698aa609&is=69895489&hm=c58ce7bd7fdf47043399007413fc6faf69428e80721d9c6a98e8cc1437978ebf& [03:29:32] these alt texts kinda suck I KNOW, im just testing stuff out [03:30:14] No shame in it, a great start [03:31:17] [1/2] this is what i put for the alt text [03:31:18] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470260742769868943/image.png?ex=698aa685&is=69895505&hm=88f26dfdd0938bde3322e9c0ed10e90856de92d6cd3f8e7267235d7abb33f471& [03:37:36] might start a post for this [03:38:20] Good idea, #support is a great venue for issues if you aren't getting a quick answer [03:39:06] I am remote, juggling a lot of things, so am useless for a quick answer sorry to say [03:40:18] no worries [04:03:43] [1/2] Backreading, sorry for the late reply!- portable infobox alt text can be added to images by doing something like this: [04:03:43] [2/2] `{{{title1}}} fullbody preview./default/alt` [04:05:43] [1/2] Template example: [04:05:43] [2/2] Usage example: [04:29:57] Oh actually i didn’t know this bit, that’s helpful [04:29:59] Thanks [04:31:05] 🫶 Np! I know Fandom have fixed some alt text issues with galleries and such on their end in the Portable Infobox space, but they don't maintain a public repo anymore and so those fixes haven't propagated to the publicly maintained version, I believe [04:31:13] I did ask if they would share that but never received a response [05:10:54] i wish they had a channel here to recruit help for editing your wiki [05:25:23] #server-invites!!!! [05:32:32] Unfortunately, the best traction you'll get is putting out an invite on a server more dedicated to your topic, but you still might get a bit here too [05:45:18] i dont have access [05:45:22] it says no access [05:48:29] verify your wiki account [05:48:34] #verify [05:57:31] Love it 🥹 [07:31:49] @Wiki Reviewers Would I be able to talk with anyone about my wikis? I have a few questions about scope and policy, and am unsure about a few things, but idk who to ask. [07:36:13] i created post in #General and policy inquiries., probably should have done that first, sorry [07:49:28] y’all I’m new here [07:49:48] hi welcome [07:50:14] what’s this place about [07:50:37] is this just random people hangout? [07:50:51] hi forsaken fan [07:51:01] basically miraheze is like the handler of the forsaken wiki [07:51:29] and this server is for people who have made wikis under miraheze and need help n stuff [07:51:38] oh [07:51:50] its pretty nerdy ! [07:52:50] so everyone here made a wiki or a dev what’s going on [07:57:00] most people, yeag [07:57:10] there's prolly like one person who hasn't lol [08:14:02] If I want to fork a wiki from Fandom to Miraheze, is there a way to automatically scrape images from the Fandom wiki and have them uploaded to the new Miraheze wiki while retaining the names of the original uploader and file history? [08:14:45] wiki.gg and even Weird Gloop have their own internal tools that allow for importing content and images (with history) [08:36:48] am i able to host a new wiki under the same domain as a deleted wiki? i've had a change of heart & motivation but I may have deleted the wiki I want to work on, lol, and was considering redoing it [09:31:04] Yup [09:31:17] Which wiki [09:31:42] [09:31:52] I wasn't sure so i went and filed for undeletion just in case [09:33:23] If you cancel the undeletion then I can hard delete the old one at some point today @nyxxed [09:33:52] That'll let you create a new one but it will mean your old one can't be recovered [09:34:00] thats fine, i had next to nothing on it anyways [09:35:08] I don't believe i can delete it or anything, would I just leave a reply saying i'd like to cancel the undeletion? [09:35:21] Ye [09:35:59] 👍 [09:36:03] preciate it [09:38:53] sounds, complicated as hell [09:39:24] [1/2] i mean scraping images from fandom is a thing [09:39:25] [2/2] But like scraping the images and then dumping them into a miraheze wiki while retaining their original names sounds painful [09:39:53] some dude prolly thought abt this and made a thing in github idk lmao [09:40:01] ¯\_(ツ)_/¯ [09:40:22] github dot com help us [09:41:00] not really, I'm just curious if there's a tool that scraps all images from the fandom wiki with history and everything [09:41:10] don't wanna manually download and upload them to the wiki on my own [09:41:16] with history? [09:41:17] ooo damn [09:41:23] yeah [09:41:51] [1/2] you can check dev.fandom [09:41:51] [2/2] last time i checked they have a pretty basic image scraper [09:42:27] [1/2] for uploading i used a script to make a bot account mass upload them [09:42:28] [2/2] i think i have the script somewhere in my computer lol [10:00:38] They use the grabbers which were written by Ciencia who runs WikiDex [10:00:40] And are OSS [10:03:50] @nyxxed done, you can make a new wiki request [10:05:40] thank you! 🫶 [10:15:41] all sent ! now hopefully it gets approved before the urge to work on it burns out again 😭 [10:15:55] (no rush to anyone im just shitting on myself mostly) [14:37:45] [1/4] for this mapping of contributions of foreign, imported user IDs to Miraheze CentralAuth-associated user IDs based on a mapping from dump user IDs to Miraheze CentralAuth user IDs (`.query.users[].centralids.CentralAuth` in `api.php?action=query&list=users&usprop=centralids` results), would the Miraheze users need to have logins on any specific wiki (not including ` [14:37:45] [2/4] loginwiki`, i suppose?)? specifically, the plan is to reset & reimport (database name `b3313wiki`), and I want to make sure now, before I deploy a tool to automatically verify users to help build this user mapping, that I don't need to have users make an account on pre-reset `b3313wiki` specifically. [14:37:45] [3/4] i know the user IDs won't cary over into the reset & reimport, but I realized Miraheze may not be comfortable with creating local accounts for users off of a local wiki bureaucrat's word. [14:37:46] [4/4] (sorry to ask again on Discord about this but i don't want to open the big migration task on Maniphest yet.) [15:20:39] can't really assign edits to miraheze accounts unless they're linked to the wiki [15:44:48] [1/3] CentralAuth does have the `centralauth-createlocal` group / `createlocalaccount` permission / [`api.php?action=createlocalaccount`]() ([service]( [2/3] es/User/CentralAuthForcedLocalCreationService.php;369e13caaf6516a86c25376d635363d9096766d3>)), though looking at `MediaWiki\Extension\CentralAuth\User\CentralAuthForcedLocalCreationService` that wouldn't be applicable here because, letting `$user = $this->userFactory->newFromName( $username );`, `$user->getId()` would return `true` and it'd fail with `(centra [15:44:49] [3/3] lauth-createlocal-already-exists)` because the local users exist (but they aren't associated with CentralAuth yet). [16:24:13] @bb010g hi, what's the problem you're actually trying to solve [16:24:30] @rhinosf1 [16:25:18] We can assign edits from an imported prefix to a real account [16:25:27] Stop solutionising please [16:25:43] If we import an xml, the pages will get prefix>username [16:25:58] We can change prefix>username to their actual username easily [16:26:35] That is a standard service we offer without you needing to look at CentralAuth code. It just needs to be requested via Phorge with which users to assign to what. [16:29:56] i was previously told that XML importing can't import deleted pages [16:33:34] Never checked but we only offer XML imports [16:33:44] you've done SQL dump imports in the past [16:33:51] We haven't offered SQL imports for years and we don't offer SQL exports [16:34:01] That doesn't mean we do it now [16:34:38] There might be the very rare case but they are complex and require much resource to do than an XML import [16:34:46] So we don't offer them [16:35:08] bleh. anyways, my main question was whether it'd be against Miraheze policy to effectively force create a local account as a part of an import process. the technical specifics don't matter much [16:35:52] That's a standard service we can happily offer if the accounts exist [16:36:21] If they don't, we can mass create accounts for you with a list of usernames and emails [16:37:40] okay. we're putting together a mapping of import user names/IDs to Miraheze CentralAuth user names/IDs to present along with the import dump, so if I understand correctly that information should be sufficient [16:38:08] and it will not be a hard requirement for a user to have already created a local account on the pre-reset wiki [16:38:24] A list of usernames in the dump v Miraheze usernames is all we need [16:38:33] Please use names not ids [16:38:47] i'll just give both for peace of mind [16:38:53] We can force local account creation or create new ones [16:38:55] ids are completely irrelevant with XML dumps since they all get assigned to an actor id of 0 [16:39:49] i'm happy to work dump format specifics out in a task later [16:50:35] Welp, time to do wiki translations, what do you guys suggest...? Multiple wikis(interwiki) or language subpages? 🤔 [16:51:08] (Or is there anything better?) And I did research this topic, nothing seems to be "perfect" and that sucks big time [16:52:42] There is no good answer [16:53:04] Language subpages and translate is probably easier if you haven't got many editors [16:54:46] So, we're handling the wiki modules, templates, common.css/js via a repo, it sync's to the wiki via pyWikiBot on push to main, I reckon it's probably ok if we were to do interwiki with all wikis working off this system somehow? 🤔 [16:55:20] We have the community wanting to help with multi-lang, it's just a nightmare, logistically/tech side [16:58:35] [1/2] go crazy with interwiki links, we've no objections [16:58:35] [2/2] if you decide to go the path of multiple wikis you can also set them up to use the original wiki's files [16:59:00] Oh? Wait, can you guys do backend magic to "sync" them? Like CSS/JS? [16:59:08] this would save a LOT of trouble lol [16:59:41] We're considering taking the backup of the main wiki.avakot.org and moving it into the new ones, as a starting point 🤔 [17:00:14] i've no idea if that's possible but it'd be cool if it was [17:00:27] i dont think simply rewriting an url would do the trick [17:00:29] Um the mobile version of my wiki is showing up as desktop version [17:01:45] We REALLY wanted to do wiki.avakot.org/{langSlug}/{page} but that would require work from your guy's side, {langSlug}.wiki.avakot.org is technically easier [17:02:03] What’s your wiki about [17:03:28] documenting a family of Super Mario 64 mods [17:04:07] A what now [17:04:15] Wdym 64 [17:04:54] Super Mario 64 is a Super Mario game for the Nintendo 64, [17:05:18] A family of mods is a set of interrelated mods by the same team (normally). [17:07:56] different teams in this case [17:26:07] So how do I change my wiki's subdomain? I want https://evolutionism.miraheze.org to go to https://lifeism.miraheze.org and would the database name change from evolutionismwiki to lifeismwiki or stay the same? [17:28:52] [[Phorge]] ticket for tech team assistance if the scope isn't changing [17:28:53] [17:29:33] And yes, it'll update your wiki's database nam [17:44:33] I mean we can run pywikibot for you [17:45:03] We have the capability to do it in theory although it's not a service we officially offer [17:48:12] I meant, having all the secondary lang wikis being directly dependent/not have a common.js/css, modules, templates, etc of their own, that being solely on the main wiki.avakot.org, and then doing some stripping/routing so wiki.avakot.org/fr/{Item} so it tries the french wiki but if the page doesn't exist it defaults back to the {item} on the main wiki 🤔 [17:48:46] This is kinda complex, but I can totally see the value of a system like this for the whole community [17:48:53] I don't think that can be done [17:49:43] mhm [17:49:47] You can share files [17:50:00] And obviously we have global user page [17:50:25] GUP is a shite extension performance wise though, that wouldn't scale in the slightest [17:51:38] Could you guys realistically just take the french soulframe wiki and "shove it" in our subdomain but wiki.avakot.org/fr? If this behaviour can be achieved, I reckon we can probably just clone the main wiki into all the alt-lang ones and work from there [17:53:54] we dont offer custom paths at the moment ye [17:54:04] You'd have to do subdomains [17:54:37] Are you still running into this? [17:55:47] I guess I'll have to also write a custom API to integrate all these wikis just so It can resolve if a page exists or not [18:05:45] hiiiii guys [18:21:53] [1/4] For templates you could try scary transclusions (transcluding from another wiki). No idea how well it's gonna work because scary transclusions are generally a bad idea and maybe you're better off letting pywikibot sync to multiple wikis. [18:21:53] [2/4] For CSS/JS, you can load stylesheets/js from another wiki (e.g. with `mw.loader.load`, but that'll introduce a loading delay, which is problematic, especially for CSS that alters the skin. [18:21:53] [3/4] There's also some crazy solutions such as the one we did where we take datamined strings, stick them into a big json page, and load them with a Lua module depending on the page language. [18:21:54] [4/4] https://strinova.org/wiki/Module%3ACharacterSkins/data1.json [18:22:47] We'll probably go with a pywikibot "hub" of an API, allows us to monitor any changes on the main wiki and propagate them to the children ones. [18:24:05] Specifically for page creation and anything in the Template, Module, MediaWiki, etc namespaces. This would probably be easier if you guys could just make a 1:1 copy of the main wiki on request so we can just proceed to hooking the child wiki into this API [18:24:35] We already have an API that can resolve the item names/descriptions based on the game's language files, so that helps a bit. [18:26:12] If you want to create a copy of a wiki, it can happen with Special:DataDump. Just create a XML dump for each namespace you need (or all namespaces if you need all of them) and then request several XML imports for each child wiki. [18:27:27] Files can use a central repository, so that you won't need to copy the files over. [18:29:15] [1/2] My main idea is probably something that needs to be ran by you guys, I'm thinking about having a bit of JS to retrieve directly from this resolver API on the user's browser, it'll suck for performance, but, it'd check the user's location/preferred lang and then try to resolve all links on a page to valid urls for the user's preferred wiki+article. [18:29:16] [2/2] It sounds like a CSP violation though 🤔 [18:33:41] It probably violates the CSP, but if you have access to data behind the api, you can host them as json files on GitHub and the files through jsdelivr. [18:35:09] I need *.avakot.org on the whitelist 😭 (iirc there's a phorge task for that already) [18:36:00] that sounds like another layer of complexity just to enhance UX... [18:40:24] [1/5] Or you could host the json data on-wiki. These occur server-side and are pretty fast even for large json pages. [18:40:25] [2/5] https://strinova.org/wiki/Module%3ATranslate/data.json [18:40:25] [3/5] ^ auto-generated from datamines [18:40:25] [4/5] https://strinova.org/wiki/Module%3ATranslate/manual.json [18:40:26] [5/5] ^ manual overrides [18:43:10] We also need page content translations too, the game's data is easy to do, we already have it forwards and backwards [18:45:37] [1/2] This is simple enough, the issue is the 400+ pages that need to be translated 😅 [18:45:38] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470490843487142154/image.png?ex=698b7cd1&is=698a2b51&hm=3f9ab77d20ffdefc5e8b8c309401d63d6d3e8ec52c3e52e8f45ba48be787b1fc& [19:12:25] Perhaps retrieve the data locally on your machine and update everything with a bot? [19:54:15] [1/2] there MUST be a way to make this not white on white [19:54:15] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470508114376659098/46CB2CE3-76C8-40AC-91DA-DCD68FC3357A.png?ex=698b8ce7&is=698a3b67&hm=3957c3bcb4c6eb6e146d86a96d05da5200578b0d6c823792bf8abc977064ad18& [19:54:30] Believe me I've tried [20:07:17] pass wiki link? [20:09:54] https://amoguses.miraheze.org/wiki/Main_Page [20:12:22] [1/3] ```.vector-dropdown-content { [20:12:22] [2/3] background-color: #484848; [20:12:22] [3/3] }``` [20:21:53] https://cdn.discordapp.com/attachments/407537962553966603/1470515068276969677/C5387ABD-E5B8-4369-A44A-0A33C0E34CF3.png?ex=698b9361&is=698a41e1&hm=ff7bc20e798bb5ec1e5657d9227d0cb9db643e7521b8d8d375c1c334e445f056& [20:22:08] oh are you telling me div is overqualified [20:22:16] I've tried it div and no div let's see if the magic happens [20:26:46] nah should be `.vector-dropdown .vector-dropdown-content` [20:27:27] [1/2] since the current thing is getting set by this you need to match the specificity [20:27:27] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470516468092240064/image.png?ex=698b94ae&is=698a432e&hm=4e570ce9d23470995fd2339e86e27b6a8e763fffda0e66903194de5c3fcf39d2& [20:27:38] https://cdn.discordapp.com/attachments/407537962553966603/1470516517077516288/image.png?ex=698b94ba&is=698a433a&hm=efa125470fa527b848f43755641df0147523daa86bbeae017e5bd3541e893a04& [21:35:10] [1/2] i found a way to make transparent background for image but how can i make the search box still have a background [21:35:10] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470533511256477778/image.png?ex=698ba48e&is=698a530e&hm=34c595f03b728b35a5441722dba1e081cf730e4c6c6c9380b1dbedd4c2060374& [21:39:15] [1/2] Is it possible to enable dark mode for the wiki for everyone by default, while removing light mode switch completely [21:39:16] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1470534538722803874/image.png?ex=698ba583&is=698a5403&hm=da68e30ec6a9efd5f3d6cd4d061150d609263398b0312035b4a9ac750311053b& [21:40:29] As to avoid manually switching everything to dark theme with disabled dark theme extension [21:41:29] Which I alredy did for another wiki but its on a different skin and that process was extremelu most painful and timeconsuming applying invert to every niche element :Partyheze: [21:53:18] [1/3] so I think this is possible on Phorge. if I'm reading the skin page correctly it involves editing two files which seems fun. After it's enabled by default I think you could just hide the toggle with CSS [21:53:18] [2/3] Question for tech team: it looks like this can be done by adding [the first block](https://www.mediawiki.org/wiki/Skin:Vector/2022#Dark_mode) to LocalWiki and then the second block to LocalSettings (obviously in the appropriate spaces), is that right? Earlier I checked a wiki that had the default theme set to dark mode but it didn't appear to set the default t [21:53:18] [3/3] o dark for logged-out users. wiki was https://versesanddimensions.miraheze.org/wiki/Main_Page?useskin=vector-2022 [22:05:46] <_shirokane_> i copied over an infobox from another wiki... but I'm not sure how to get it to look the same as the previous site it came from [22:18:03] knock knock [22:18:04] anyone home [22:21:02] no [22:21:33] aw [22:22:34] https://github.com/miraheze/mw-config/blob/d5147dc66237fcb1c8d786bb73b52a793322e361/LocalSettings.php#L5289 [22:23:03] That's the only examples I see of vector-theme being used now [22:23:07] It should be possible though [22:33:20] Yes iirc you need both the localsettings change and the localwiki one [22:33:50] when will wikimedia make that a toggle and NOT localwiki [22:34:49] never because there's no advantage in doing so for them [22:35:37] found it. the css class is ⁨`cdx-menu`⁩ [22:47:41] [1/3] TBH this should be on ManageWiki since using dark mode by default on V 2022 is a commonly-requested feature. In fact, we already have `associativeKey` to deal with associative arrays (I thought we don't), though CA said he wants to figure out a better way to deal with associative arrays. [22:47:41] [2/3] There are always too many things in our backlog. I noticed how https://worldtriggerwiki.com customized Cosmos to look like FandomDesktop and was very impressed by their efforts. It would be really to nice to have Cosmos (or a fork of Cosmos if our current Cosmos users prefer the existing look) move in that direction, except that CA already has too ma [22:47:41] [3/3] ny things on his plate. [22:52:20] [1/9] okay yeah so if you look at https://dappervolk.miraheze.org/wiki/Dappervolk you'll notice that instead of the default theme being light, the default theme is automatic, and also you can change your theme even if you're logged out, which you can't even do on Miraheze Meta. [22:52:21] [2/9] What you can do is submit a Phorge ticket, where you request to change the default theme and allow logged-out users to use the dark mode. That'll make your wiki behave similar to Dappervolk (except with Dark as default instead of automatic), then you can use CSS to hide the option to use light. [22:52:21] [3/9] Although actually thinking about it now a significantly simpler solution would be to use [[mw:Extension:RenderBlocking]] with this script [22:52:21] [4/9] ```js [22:52:22] [5/9] document.querySelectorAll('.skin-theme-clientpref-day').forEach((e) => { [22:52:22] [6/9] e.classList.remove('skin-theme-clientpref-day'); [22:52:22] [7/9] e.classList.add('skin-theme-clientpref-night'); [22:52:22] [8/9] }); [22:52:23] [9/9] ``` [22:52:23] [22:54:25] yeah that's true but also I think it's fun looking into the depths of mw-config [23:02:02] I have never thought of this way of using RenderBlocking. I suppose this is the beauty of providing a flexible interface. [23:03:41] lemme make sure it works first actually [23:04:38] IT DOES [23:04:39] The dwarves dug too deep [23:04:42] I AM A GENIUS [23:04:52] Look at what happened to them [23:06:25] okay addendum: put this in MediaWiki:Renderblocking-vector-2022.js [23:26:04] Just enabled renderblocking and put the js on that page, doesn't seem to work, is anything else needs to be done? [23:27:38] Renderblocking is cached pretty aggressively. Try appending `?debug=2` to the url to see if it changes. [23:28:18] oh damn is it one of those things that works fine on beta then never works on prod [23:28:30] (If you did decide to go the Phorge ticket route for configs, in addition to RenderBlocking, you'll want to request `$wgDefaultUserOptions['vector-theme'] = 'night';` (set dark mode default) and `$wgVectorNightMode['logged_in'] = true; $wgVectorNightMode['logged_out'] = true;` (allow day/night theme switching for logged out users) [23:28:41] (assuming vector-2022) [23:29:17] still doesn't work, well I guess gotta wait for some more time [23:31:48] https://malachiteminers2official.miraheze.org/w/rest.php/renderblocking/v0/assets/js/vector-2022 looks like that's empty right now [23:32:14] however https://malachiteminers2official.miraheze.org/w/rest.php/renderblocking/v0/assets/js/vector-2022?debug=2 looks fine [23:33:52] works for me now [23:35:03] :alive: [23:35:10] THX [23:52:47] Will the change affect older wikis? [23:53:06] no [23:53:14] Ah, alr [23:54:05] https://cdn.discordapp.com/attachments/1367651317383696436/1470559362161442897/Surfers_Paradise_Intensity_11_Challenge_DX.gif [23:54:18] Over the course of the next week we will be deploying to existing wikis as well. We will communicate this ahead of time. [23:54:33] Alr! [23:54:43] I wanted further clarification that didn’t get mentioned [23:54:43] We do not expect much if any downtime, if everything goes according to plan. [23:55:16] I really need to get into CSS