[01:36:17] where can i find where the css is edited? [02:14:43] MediaWiki:Common.css or MediaWiki:.css (e.g. MediaWiki:Vector-2022.css) [02:15:27] https://dev.miraheze.org/wiki/Enabling_scripts_and_stylesheets [03:27:59] How to install Semantic MediaWiki in my Miraheze Wiki? [03:36:16] Make a request on https://meta.miraheze.org/wiki/SR/RC [03:59:13] what is a Reception Wiki? [04:00:43] https://meta.miraheze.org/wiki/Help:Reception_wikis [04:01:41] Think wikis like "crappy games" or "Amazing VTubers" [04:17:11] ah [04:17:21] so WatchMojo type shit got it [04:17:30] literally reception [04:19:39] Eugh, WatchMojo [04:19:57] My keyboard actually has it as an autocomplete suggestion [04:20:45] https://cdn.discordapp.com/attachments/407537962553966603/1399969946242387998/Screenshot_20250730-0020112.png?ex=688aef1d&is=68899d9d&hm=58c4265453cccb21881f1bc487eb5858d148054d3d887eadc91af40c94a880d4& [04:28:00] [1/2] Not that it matters a whole lot but it seems that badwebcomics wiki predates crappy game wiki by two months, making it an older reception wiki [04:28:01] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1399971771062423614/IMG_6837.png?ex=688af0d0&is=68899f50&hm=ed5dc19d4237883b49d6fe5daaac0e50a9a93bf29a359aa6100e976240bd909b& [04:47:08] [1/3] is there a way to mass rename files or make them case insensitive? [04:47:08] [2/3] All files need to have this format [04:47:08] [3/3] `File:Pig Steel.png` because templates in our wiki require it [04:49:19] [1/4] so... [04:49:19] [2/4] ```Special:ManageWiki/settings/datamaps``` [04:49:20] [3/4] How does one port FANDOM interactive maps? Cuz the datamaps we have now are kinda bad. [04:49:20] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1399977133891125269/image.png?ex=688af5cf&is=6889a44f&hm=7130487c729d164e46824f17def301bcb049de037b687d701a40ee90a3f390ce& [05:08:41] There is. You could use some automated tool to rename files. Or, Instead of using `{{PAGENAME}}` directly, make it the input of a Lua module that capitalizes the first character of every word. [05:11:51] [1/2] Lol I just asked ChatGPT about it and it spits out a module. Of course, usual LLM caveats apply: you may or may not get something functional out of an LLM. In particular, I don't really understand what ChatGPT is doing here and cannot vouch for its output. [05:11:51] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1399982805055700992/image.png?ex=688afb17&is=6889a997&hm=9856d96b9bdf62dca40770acd1f5dbeb11242b65b2233c9be3d55d0419663214& [05:23:20] I have a bunch of templates after eachother, separated by line breaks, some of them return empty, is there a way to remove the resulting empty lines while keeping the source code clean? [05:24:16] Like a rule tat makes templates that return empty take the linebreak after with them [05:24:21] not sure if I'm misunderstanding but can't `[[File:{{lc:{{PAGENAME}}}}]]` be done [05:25:04] https://issue-tracker.miraheze.org [05:31:27] I think they want `title case` to become `Title Case`? AFAIK `{{uc}}` and `{{lc}}` only deal with the first character. [05:31:57] [1/2] nope, uc and lc deal with everything [05:31:57] [2/2] what you're thinking of is ucfirst and lcfirst [05:32:24] doesn't seem to work [05:33:08] What sort of task should I make? [05:33:21] [1/2] There was a conversation about this a while back [05:33:22] [2/2] https://discord.com/channels/407504499280707585/1386188692846022697/1386302499111305247 [05:33:25] Nvm forgot to purge [05:33:26] configuration change [05:34:04] at the end of the template seems to catch 90% of cases [05:34:13] Weird but cool [05:35:27] That's very interesting. I remember using `` for a different purposes in https://discord.com/channels/407504499280707585/407537962553966603/1394492418799435797. This use case I've never seen before. [05:36:37] I my solution for that stuff was a zero size space character [05:36:52] Or /nowiki combo [05:40:10] It's some of the images being named wonky [05:57:50] how many files do you need to rename? AFAIK there's no way to make filenames (actually page names) case-insensitive in MediaWiki [05:58:19] there is, but it affects all pages iirc [05:59:03] [[mw:Manual:$wgCapitalLinks]] [05:59:04] [05:59:22] [1/13] This is a better function for converting to title case: [05:59:22] [2/13] ```lua [05:59:22] [3/13] local function convertToTitleCase(s) [05:59:23] [4/13] return mw.ustring.gsub(mw.ustring.gsub(s, "%f[^%s](%l)", function (firstLetter) [05:59:23] [5/13] return mw.ustring.upper(firstLetter) [05:59:23] [6/13] end), "^%l", mw.ustring.upper) [05:59:24] [7/13] end [05:59:24] [8/13] mw.log(convertToTitleCase("Foo bar.jpg")) -- -> Foo Bar.jpg [05:59:24] [9/13] mw.log(convertToTitleCase("foo bar.jpg")) -- -> Foo Bar.jpg [05:59:24] [10/13] mw.log(convertToTitleCase("foo bar baz.jpg")) -- -> Foo Bar Baz.jpg [05:59:25] [11/13] mw.log(convertToTitleCase("Foo 1bar.jpg")) -- -> Foo 1bar.jpg [05:59:25] [12/13] mw.log(convertToTitleCase("foo 'bar.jpg")) -- -> Foo 'bar.jpg [05:59:26] [13/13] ``` [05:59:28] ah nvm, it only affects the first letter, sorry :p [06:02:56] Likely wouldn't be too helpful to Showier since I'm guessing they need to reference some files that aren't named consistently from pages that are named consistently [06:10:11] [1/2] I figured out the basics of configuring my wiki but I can’t seem to figure out how to edit the CSS style, I followed the instructions on the guide which says to just edit it through the inspect page but nothing I edit actually changes and it’s a lot to look at. [06:10:11] [2/2] Anyone know a good service I can use to more easily edit it? [06:37:55] Ah good point. The only solution is to rename the files I suppose (or write some convoluted function to test how a file is named through multiple `ifexist` calls). Or maybe batch create redirects would also work. [06:39:32] Inspect page is for debugging CSS. You would want to write CSS in a stylesheet (see [Help:CSS](https://meta.miraheze.org/wiki/Help:How_to_write_HTML_and_CSS), particularly the `Writing CSS stylesheets in MediaWiki` section). [06:40:59] where is a stylesheet though? [06:41:19] I'm so used to things being available in editors [06:41:23] https://cdn.discordapp.com/attachments/407537962553966603/1400005336563449896/image.png?ex=688b1013&is=6889be93&hm=ae13b3eb0c8b978b30d097d199c0a4d7b9850b62cd82bcfd47179e9848442851& [06:42:44] I opened the custom CSS thing through my wiki and it was blank btw 🤔 [06:44:33] They are supposed to be that way. You haven't made any edits. [06:49:50] [1/4] how do I find the names of custom elements then? Or is it all industry standard default like [06:49:50] [2/4] ```body { [06:49:50] [3/4] margin: 0; [06:49:50] [4/4] font-family: Arial, Helvetica, sans-serif;``` [06:54:52] Oh wait nevermind I found it, sorry [07:32:17] Stackd r u online [07:33:44] what do you need queen [07:45:33] [1/2] https://meta.miraheze.org/wiki/User:Mtdhs_computer [07:45:33] [2/2] Is this account spam? [08:00:10] [1/4] hey! I'm uhh, trying to create a gadget function, and I was following a guide from mediawiki's formatting page, but clearly I'm doing something wrong since the gadget option doesn't appear when trying to edit my wiki's prefences, so I'm just wondering what to do here. . . [08:00:11] [2/4] https://cdn.discordapp.com/attachments/407537962553966603/1400025162644193310/image.png?ex=688b2289&is=6889d109&hm=843eb79f167bc982a941d361d2768b93fa2c0e755a2d36bd2cc2ef89bc34e3be& [08:00:11] [3/4] https://cdn.discordapp.com/attachments/407537962553966603/1400025163042390066/image.png?ex=688b228a&is=6889d10a&hm=9be1b384c280e9934112bbf64ec105d5a8b5ff14e946e4dd78364ed027ab474c& [08:00:11] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1400025163352903680/image.png?ex=688b228a&is=6889d10a&hm=56808c662db4d86b86ff286450fd64827c166cb12987443e13c193f69d2620c5& [08:08:02] Iirc you need to be logged in to see the Gadgets tab on Special:Preferences [08:08:49] I am I'm the wiki owner 😭 [08:09:16] I tried purging the cache too to see if that would do anything but it didn't [08:10:03] [1/3] Drop Gadget- from the name of the file, like so: [08:10:03] [2/3] ``` [08:10:04] [3/3] * vectorStyle2022[ResourceLoader]|style-vector-2022.css``` [08:11:35] [1/3] Actually if these two files are part of the same gadget then you can just write them like this: [08:11:35] [2/3] ``` [08:11:36] [3/3] * vectorStyle2022[ResourceLoader]|style-vector-2022.js|style-vector-2022.css``` [08:13:23] I'm sure? Extension:Gadgets is installed by default on wikis but you can also check of Gadgets is listed under Special:Version. If not, then you need to turn it on on ManageWiki [08:14:23] Oh wait was your ss wiki preferences? Try looking at your User Preferences [08:15:18] [1/2] wait could this be the issue lmao? [08:15:19] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400028972397625365/image.png?ex=688b2616&is=6889d496&hm=1a2a73ea26bbbcc8a986f0a851cf765b69199611498514d5f00d251d0e11f17d& [08:16:50] mediawiki:mediawiki: [08:18:24] [1/3] hmm, well, I fixed it and purged the cache on all relevant pages and the gadget option still isn't showing up [08:18:25] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1400029752978575431/image.png?ex=688b26d0&is=6889d550&hm=cddba1e18602433753cd63960ca68e53af4ddbba65134035ccba976e60c97219& [08:18:25] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1400029753263521792/image.png?ex=688b26d0&is=6889d550&hm=155ea48d5dbcf34b65d96d0cf2c10e057549f0de84cae174c1a090240dbec05f& [08:19:11] @wispywispwisp could you try checking Special:Version to see if Gadgets is listed? [08:20:07] https://cdn.discordapp.com/attachments/407537962553966603/1400030182764711996/image.png?ex=688b2736&is=6889d5b6&hm=ed2227589431f84b19459c167195d040c402f7431de1bc021a39a8677dfb8e35& [08:20:20] And oh sorry, I meant drop Gadget- from the filename in Gadgets-definition. The actually CSS & JS file names should still have Gadget- [08:20:56] You should turn it on in ManageWiki in that case [08:21:58] [1/2] hmm, [08:21:58] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400030648722264094/image.png?ex=688b27a5&is=6889d625&hm=ec0e48030eee210e9186e16030fa63edc8596364c43746e50af2a570ed82827e& [08:22:21] In Extensions [08:23:46] [1/4] MediaWiki:Gadgets-definition [08:23:46] [2/4] ``` [08:23:47] [3/4] * vectorStyle2022[ResourceLoader]|style-vector-2022.js|style-vector-2022.css``` [08:23:47] [4/4] This will reference the files `MediaWiki:Gadget-vectorStyle2022`, `MediaWiki:Gadget-style-vector-2022.js`, and `MediaWiki:Gadget-style-vector-2022.css` [08:24:09] [1/2] yeah it actually wasn't enabled (I was reading it's enabled by default so dang)à [08:24:09] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400031199300419714/image.png?ex=688b2829&is=6889d6a9&hm=a9dc54d7a5ada999ca1fb6cd5d9e620420ae6b44ab3b5fd0cf01cfd44f0b291a& [08:25:17] I'll still need to fix up the pages tho, so I'll get back if I encounter an issue, but thanks for helping me figure out the core issue 😭 [08:28:03] [1/2] yippee [08:28:03] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400032180377354280/image.png?ex=688b2913&is=6889d793&hm=981bdb36a4ed2ae7412e9abc5bfb827644efe863252954e9ca1f7496275779ef& [08:29:14] [1/2] button shows up too! Thanks a lot a:yummy_nickel: [08:29:15] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400032478126674133/image.png?ex=688b295a&is=6889d7da&hm=6c60021b58c82bac51a38cf7082af746c462bfd16da13f8db17c4b2d628e0f67& [08:31:03] [1/3] @wispywispwisp pro-tip: add `default` to turn the gadget on for everyone, including logged out users [08:31:03] [2/3] ``` [08:31:03] [3/3] * vectorStyle2022[ResourceLoader|default]|style-vector-2022.js|style-vector-2022.css``` [08:32:02] Also if you're still developing the CSS/JS it's better to test it on User:/common.js & common.css [08:46:38] someone knows how to put a custom background on with the citizen skin [08:47:57] It genuinely seems to be the account of a Japanese school computer club (mtd = Matsudo, hs = high school) [08:50:20] [1/7] ```css [08:50:20] [2/7] body { [08:50:21] [3/7] background-image: url(https://...); [08:50:21] [4/7] background-attachment: fixed; [08:50:21] [5/7] } [08:50:21] [6/7] ``` [08:50:22] [7/7] In MediaWiki:Citizen.css [08:50:40] thank you [09:33:31] [1/2] did i do it right? [09:33:31] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400048654047379466/image.png?ex=688b386a&is=6889e6ea&hm=e737116f7a7b5ec0f46bf01c59f5baf4bedc3fae1bc5d5edb66c9fdce66da4c8& [09:34:12] Uhm [09:34:32] @snowfleaf can help you with this one [09:36:02] wait i didn't know miraheze bans bilibili player totally?! [09:36:34] What? [09:37:15] i migrated from fandom kinda bc mh has higher version of embedvideo that supports bilibili (i used to have to use js hack on fandom). but i didn't know bilibili is baned on mh due to csp policies [09:38:09] i didn't know this 😭 https://issue-tracker.miraheze.org/T9953 [09:38:50] the issue riser has given so detailed explanation but it's still banned [09:38:55] can someone help me witgh this [09:49:12] yes! be sure to style a background for citizen-body-container too [09:49:20] they're literally right sis [09:50:10] HOW DO I DO TAT [09:50:39] .citizen-body-container { background: icespice } [09:51:00] if you want to make it change in light and dark, do var(--color-surface-1) for bg [09:51:09] Wait citizen has their own body [09:51:26] girl [09:51:27] every skin has a body [09:51:53] [1/2] They do? [09:51:54] [2/2] I thought the others were just `body` [10:00:54] [1/2] like ts? [10:00:54] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400055544676487218/image.png?ex=688b3ed5&is=6889ed55&hm=01d4a68f74829f3c7d728bc519b004faee6c5f5708844adc49a32441de9a50c1& [10:02:27] yes! do note that it'll also show up as white in dark mode too [10:03:28] ok [10:03:54] i hope it wont look like this again🙏 [10:04:57] well preview it first before saving [10:07:40] [1/2] I'll help the first 10 people interested on how to  start earning $100k or more within a week, but you will reimburse me 10% of your profits when you receive it. Note: only interested people should send a friend request or send me a dm! ask me (HOW) via Telegram username @Edward_Pryce1 [10:07:40] [2/2] Or use the telegram link in my bio [10:08:56] @zppix yo there's spam [10:10:41] Give me the $100k then I'll believe you [10:13:04] the only mod being on don't disturb😢 [10:14:41] @Discord Moderators [10:15:00] Dealt with [11:00:05] is there a way with css code to detect if a page is in a certain category? [11:50:00] [1/6] No, but you can use the following JS code to style your pages according to category: [11:50:01] [2/6] ```js [11:50:01] [3/6] var categories = mw.config.values.wgCategories; [11:50:01] [4/6] if (categories.indexOf("Stages") > -1) { [11:50:02] [5/6] $('body').addClass('category-stages') ; [11:50:02] [6/6] }``` [11:50:49] [1/5] Then add the following CSS [11:50:49] [2/5] ``css [11:50:49] [3/5] body.category-stage { [11:50:49] [4/5] ... [11:50:50] [5/5] }``` [12:22:55] [1/6] or use the has property that i got from the other plane like (keep it mind that this is for citizen skin, i'm uncertain as to how this would work correctly on other skin): [12:22:56] [2/6] ```css [12:22:56] [3/6] body:has(#catlinks ul li [title="Category:CATEGORYNAME"]) { [12:22:56] [4/6] ... [12:22:56] [5/6] } [12:22:57] [6/6] ``` [12:47:51] Why sometimes bot in discord with recent changes duplicate same messages [12:57:39] will centralauth be replaced someday [13:09:10] unlikely that someone will make something to replace it [13:09:30] 💔 [13:09:38] what's your issue with it [13:09:48] i don't like it [13:10:07] Why? [13:10:49] the way we have to log in everytime we go to a new wiki [13:11:54] how do i sync preferences to all wikis on miraheze? [13:12:05] or there's no way to counter it? [13:12:08] global preferences i think [13:13:52] ok thx [13:15:47] [1/2] if it works well, you don't [13:15:47] [2/2] and if there was no GA, you'd have to make a new account everytime for the 20k wikis we have [13:26:22] GentralAuth [13:27:05] I'm pretty sure Wikimedia are looking to split CentralAuth into multiple extensions [13:28:42] So other wiki farms that use shared tables can benefit from cross-domain sign in and global groups and other stuff [13:31:32] Global admins [13:32:33] CentralAuth was made back when Wikipedias all had different user tables and they had to somehow merge them into a big identity database so that people wouldn't have to log in to every wiki individually, if they had shared the user table from the beginning CentralAuth wouldn't really need to do that [13:33:17] Are there any wiki farms other than Wikimedia and Miraheze using CentralAuth nowadays [13:34:15] [1/2] Would've expected this warning to scare them away [13:34:16] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400109238897872956/Screenshot_20250730_153337_Brave.png?ex=688b70d7&is=688a1f57&hm=cde48a7cb7e085d63e6d96be30a1abb5f0023debafc5f3f31c28544733cfb52b& [13:35:52] ‘Everyone told us not to use CentralAuth, they were probably right but we’re using it’ [13:37:30] At least global Echo notifications work for you out of the box [13:39:02] iirc wikioasis and skywiki use centralauth [13:39:06] telepedia just moved away from it [13:39:15] Out of the box and central Auth… [13:39:23] Was gonna say [13:39:25] not sure what shoutwiki uses, fandom does their own thing [13:39:31] SW uses shareddb iirc [13:39:35] @originalauthority how’d that go [13:39:37] wiki.gg explicitly does not use it [13:39:45] shareddb is most likely [13:41:22] globalauth, close enough [13:41:35] i keep mixing them up [13:41:39] geriatricauth [13:41:43] LMAO fr [13:41:50] Microsoft Networking [13:42:44] There was also the thing in the OAuth extension that implicitly requires you to use CentralAuth otherwise it throws a 500 when you try to access oauth2/profile or whatever was the endpoint [13:42:45] samba 1.0 wiki access [13:43:33] Pretty fine [13:43:47] Cross domain sign in works with shared databases if you set the cookies right [13:44:56] SharedDB is just an ugly way to do it on WMFs part though as it causes a lot of issues but its a lot better than the clusterfuck that is CentralAuth [13:45:15] Fandom has an article on dev wiki about how they do it, seems even worse [13:46:45] What did you do to get cross domain auth working, I have some hacks on UT/DR that try to log you into the other wiki using clientlogin which work unreliably because of browser blocks of third party cookies [13:46:54] LOL, I just have each wiki I own (off Miraheze) have its own login [13:51:27] What [13:51:52] Fandom uses Ory Kratos for authentication [13:52:15] And they integrated that with MediaWiki [13:53:19] I don't remember any article on Dev Wiki about it though [13:53:35] I can’t remember what I did, it was something to do with extending the SessionProvider [13:53:51] I don’t need cross domain auth any more so I deleted the repo a while ago [13:54:07] Ah lol [13:54:13] Yeah but they do some fuckery with the user and actor table to share it between wikis [13:54:27] Each wiki still gets its own actor and user table from Kratos or something [13:54:34] Its very weird let me find the blog [13:55:28] You mean this [13:55:31] Oh i read it on medium thats why https://dev.fandom.com/wiki/Platform_Team%E2%80%99s_Technical_Decision_Process_-_Actor_Migration_Case_Study [13:55:32] Yeah [13:55:47] Why does my link lead the wrong place wtf [13:56:24] Their engineers used to publish their blogs in the wrong place until we told them not to [13:58:53] I thought UT/DR was using Discourse for login? [14:00:11] Nah, Discourse uses MediaWiki for login [14:00:13] No, their Discourse uses MediaWiki [14:00:21] Ohhhh [14:00:42] I remember reading the extension source myself a while back [14:00:49] Seems like you need a third party service there that handles login for both [14:00:56] ? [14:01:12] If MediaWiki used Discourse for login that would be hell because Discourse pretty much requires email verification [14:01:14] Lord and Lady, FANDOM is such an eyesore [14:02:01] Thats the only way I see cross domain cookies working, if a third party domain handles the login which a user visits to login, iirc, the WMFs reasoning for moving login to a third party domain was that Google is less likely to block the cookie if the user has actually visited the domain or something [14:02:07] If you login from different MediaWiki accounts using the same email to Discourse twice it just renames your account [14:02:08] Idk WMF often talk a lot of shit [14:02:24] Fandom level engineering [14:04:02] Yeah but this can also work if UT is the login domain for DR somehow [14:04:34] Surely there's an extension that lets me login to MediaWiki using another MediaWiki wiki [14:04:37] Can’t you redirect people to the UT wiki for login? And then back? [14:05:07] Surely thats the same process CentralAuth SUL3 is using [14:05:42] Well the cookies need to be set on DR so there's got to be some protocol that assure DR that the user is logged in at UT [14:07:01] OAuth comes to mind [14:07:08] Yeah [14:07:16] I guess it's not that hard of a problem [14:08:44] I don’t really know much about cross domain cookies and I’m presuming I’m wrong here, but can’t you just set the cookie on DT wiki at the same time as UT wiki? Or will that be removed/fail to set? [14:09:09] That would be an even hackier way but [14:10:39] Presuming they are both using the same cache backend, you could just set 1 singular cookie with the login data, save it in a shared cache, issue the cookie for both domains and then let MediaWiki take over setting the specific wiki session cookies [14:11:40] So, HTTP response from undertale.wiki cannot set a cookie at deltarune.wiki [14:12:34] So I made the login form at either wiki send an API request to otherwiki/api.php?action=clientlogin with the same credentials as the ones currently being entered into the form [14:13:56] If you're logging into undertale.wiki, then undertale.wiki's login form will set your cookies for undertale.wiki, and deltarune.wiki's api.php will attempt to set your cookies for deltarune.wiki [14:14:50] I say attempt because most browsers nowadays block this attempt as tracking protection, because these cookies are considered third party cookies [14:15:23] Hmm [14:15:27] So you have to actually visit the domain to get your cookie set [14:15:53] Did you check what CentralAuth is doing? [14:15:59] I’m sure it does something similar [14:16:32] Yeah using their approach would probably work [14:21:59] If anything, using on DR to direct users to log into UT would probably work [14:23:36] I just didn't do it yet because not enough people complain about it [14:32:28] I wonder how Fandom/Kratos works under the hood? Is that using OAuth or just the session cookie shared on the fandom.com domain? I assume the latter and each wiki just uses that cookie to get the session from the cache since they aren’t using the gamepedia domain anymore [14:35:41] I'm pretty sure they just use one cookie on the whole domain [14:36:37] When wikia.org was a thing I remember a PR talking about iframes setting cookies on the other domain but that's long gone [14:40:32] Inb4 they open source ucp [14:40:35] _never_ [14:51:56] [1/2] https://meta.skywiki.org/wiki/Content_Policy [14:51:56] [2/2] This seem pretty vauge [14:53:25] I think the solution to the auth thing is AOL, Authentication over Landline /j 😂 [14:56:38] Or AOCP, Authentication over Carrier Pigeon; See RFC 1149 (https://datatracker.ietf.org/doc/html/rfc1149) [14:57:31] I mean with how various governments and such are trying to destroy the free Internet these days, such solution MIGHT actually be needed xD [14:58:02] all we really need are some cans and string [14:58:46] Woah slow down, I’mma need to see the RfC standard for that [14:59:13] we'll make our own standard with blackjack and hookers! [14:59:27] that way the government™ can't control us [14:59:31] RFC 42420? [14:59:42] I was thinking 69420, but sure [14:59:54] But 42 is the answer to life soo [15:00:03] it's already in the 420 sooo [15:00:08] 😉 [15:11:14] does someone know how to make mobile users redirect from the main page to another page [15:21:01] [1/8] I've got another humble request. I've been trying to add css to get vector 2022 (which will be the default skin of everyone visiting the wiki as a non-logged in user) to mimic the natural translucency of vector legacy, but I've been getting into an issue to having it work. I wanted to a make a "by default" gadget so that 1) It wouldn't clog up common.css, which affects all page [15:21:01] [2/8] s and all skins, even though this is only for the vector-2022 skin and 2) so that people could opt out of it if they so wanted to. [15:21:01] [3/8] But I'm definitely lost on how to do it as multiple attempts have not really given me the results I want lol. [15:21:02] [4/8] reference is Vector Legacy and how it compares to Vector 2022 (yes I know the header for legacy is pretty unreadable, but I plan to fix that later after I figure out how to even do what I want with 2022) [15:21:02] [5/8] https://cdn.discordapp.com/attachments/407537962553966603/1400136103562051594/image.png?ex=688b89dc&is=688a385c&hm=e8f6615a414524821af43e3e0232e7e18a72dbbd66d1a814716dcf78dc6a429e& [15:21:02] [6/8] https://cdn.discordapp.com/attachments/407537962553966603/1400136104333545706/image.png?ex=688b89dc&is=688a385c&hm=57a1593a6add3318cec2f1ac3edb9399bc4d54b0f1d5a288e5721ff89030506e& [15:21:03] [7/8] https://cdn.discordapp.com/attachments/407537962553966603/1400136105109487616/image.png?ex=688b89dc&is=688a385c&hm=420d6f20add8dd91bf66dcf781e0f69abe92d0ca46bb1217b5e88aceec636e94& [15:21:03] [8/8] https://cdn.discordapp.com/attachments/407537962553966603/1400136105499693259/image.png?ex=688b89dc&is=688a385c&hm=70aa5f4685c05462867c925009aaa9421bfd7dc6b09f0fffc2ac438d17cf2c3a& [15:28:18] why not use skin-specific CSS? (`MediaWiki:Vector-2022.css`?) [15:28:28] ah, to opt out [15:36:00] why? [15:36:37] main page broken on mobile and i aint fixin all at so il make new page [15:37:43] lol [15:42:34] also, I did try doing that, and it didn't work the way I intended it to (that is to say, it didn't work at all lol), so there's probably something wrong with how I formatted my css code? But I genuinely don't know in this case [15:45:40] [1/2] probably because you're targeting classes that don't exist ^^ [15:45:41] [2/2] (skin-vector-2022 isn't real) [15:45:46] try skin-vector instead [15:48:49] I am recently getting an unsual uptick in registered accounts [15:49:01] The accounts don't do anything, but it's been one new registration per day [15:49:39] And I don't have an audience of nearly the size to explain that. I worry they may be spam accounts. Has anyone else been getting this? [15:50:26] I haven't [15:52:11] if an account visits the wiki, centralauth automatically registers it. so it's not like they're all requesting to register, it just happens upon visiting. [15:52:55] [1/2] these accounts in question are very obvious bot accounts registering on their wiki [15:52:55] [2/2] https://wiki.strangereons.com/wiki/Special:RecentChanges [15:55:09] they're only problematic if they start doing something [15:55:13] and in most cases they don't [15:55:51] [1/2] For whatever reason whenever I press the screen on my wiki on mobile the entire page glows blue? This is so weird, does anyone know what could be causing this? I tried changing browsers and shifting from dark to light mode and it's still happening, yet I can't seem to recreate this on any other wiki [15:55:52] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400144873847263232/Screenshot_20250730_175124_Samsung_Internet.png?ex=688b9207&is=688a4087&hm=817b7bd95b327bf1c05e8d9d791f1243f063176ff37460ac2052b8b83c8c1b81& [15:56:56] They all have a very consistent naming scheme [15:59:54] [1/2] i'm not sure why y'all are pinging me. i was just saying how it happens, whether they're bots, people, have similar names or whatever. [15:59:55] [2/2] if you're concerned about vandalism, you might consider enabling moderation, but be aware that requires approving all edits or setting up an auto-moderated user group. [16:01:47] [1/2] enabling the ext automatically creates said group [16:01:47] [2/2] (also I usually leave mentions on when replying :p) [16:18:28] aight I'll try this thanks [16:24:27] [1/2] it seems to just shove vector legacy's sidebar to the very bottom of the page (whilst giving it a background so the text is readable as a side-effect lol), all while doing nothing to vector 2022, and I'm pretty sure this is probably an unintended side effect lol [16:24:27] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400152066420244480/image.png?ex=688b98ba&is=688a473a&hm=b6d52357a37d60cb9a0d3ce31eb348ff507a2355675753df4671043e22f30a3b& [16:27:32] I do wonder why there is a sea of what looks like blood, what looks like flesh growths and why the evoment seems to be dead [16:31:55] The only solution is to set up a proxy server so that requests for bilibili images go through the proxy to not expose the IP of the requester. This needs a lot of work, though, and will not happen anytime soon. [16:32:44] And welcome to Miraheze. I’m seeing quite a few MGP editors coming here. [16:34:09] btw i found discord api is not in csp whitelist either [16:34:27] but its iframe is in whitelist [16:35:04] (i mean discord.com is in frame-src but not connect-src so i can't make a custom discord widget [16:36:56] [1/6] See https://strinova.org/wiki/Teatime_Delight?debug=2 for an example. [16:36:56] [2/6] It is controlled by [16:36:56] [3/6] https://strinova.org/wiki/MediaWiki:Gadget-BackgroundImage.css [16:36:56] [4/6] and [16:36:57] [5/6] https://strinova.org/wiki/MediaWiki:Gadget-BackgroundImage.js [16:36:57] [6/6] I was trying to achieve per-page background image, so it's a little bit different from what you want to do, but most things are the same. [16:37:30] [1/2] just the key visual for the game I was using as a background, I was inspired by how gbf.wiki used key visuals for their own work and I liked how they did it lol [16:37:30] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400155349713031190/image.png?ex=688b9bc9&is=688a4a49&hm=c7d8c142cd97261787686c10417c8725134cd7b0dfd115678b72dba14c0aadc4& [16:38:31] sweet! I'll try this out! Do you mind if I come back to you if I encounter any trouble? [16:39:36] If you can articulate why this is necessary, you can submit a CSP whitelist request on Phorge. It'll probably take a while, though. [16:41:11] i did [16:43:47] @pskyechology wanna try a PR for CSP ^ [16:43:57] Which task? [16:44:02] https://issue-tracker.miraheze.org/T14070 [16:44:22] idk a review was already done so I'm slamming a PR right away [16:44:38] Sounds good [16:45:24] woa, my first puppet PR [16:45:55] I don't even need to bribe you [16:46:05] I love green squares on my GH profile [16:47:03] I'have limited availability in the next few days, so if you have questions, it would be best to make a thread in #support and ping me so that it doesn't get drowned in the endless stream of messages in this general. [16:47:11] also saves one of us from writing a "please pipe down, there's like 0.2 of us available at any given time and we cannot do all tasks at the same time" later [16:47:40] [1/2] funny i say this as we [16:47:41] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400157913162449006/image.png?ex=688b9e2c&is=688a4cac&hm=06ee59d395649ab047d5d08b83520cfc4aa2d0b0169d54fee2f159acb6d83939& [16:48:03] I was gonna say "expect a few weeks of delay because everyone is busy dealing with the 1.44 upgrade" [16:51:38] I’m on the front lines, no time for technology! [16:52:09] aye, don't forget to teabag them in the name of miraheze [16:59:11] what would you even bribe me with [17:00:40] A drink if I ever make it to an in person event [17:01:03] I've been promising that for years and not been to one yet [17:01:16] first I'd need to make it to one as well lol [17:01:26] with my budget I won't make it out the city lol [17:19:39] Always [17:46:24] I got a toffee sundae in my fridge thats yours, I just don't know what I'm bribing you for [17:47:15] you can have one day off an extension review of your choice (12 years -> 11 years 364 days) [17:47:46] I'm sold [17:47:52] the toffee sundae is yours [17:50:00] (It would be so funny if 2037 was a leap year) [18:58:30] close, 2036 [18:58:50] by accounting standards, thats a rounding error [19:32:38] Miraheze allow YubiKety's when? [19:33:12] When mediawiki gets its shit together with passkeys [19:33:36] I would love nothing more then tap and login, but it’s just garbage [19:34:36] you can use a yubikey as a second factor (WebAuthn) [19:36:11] Last time I used webauthn I almost locked myself out of my account during my RfGA [19:40:15] I use Webauthn for both of my accounts lol [19:41:52] WebAuthn will only work on the wiki you set it up with for now [19:42:00] Will be fixed with SUL3 [21:36:45] [1/3] hi I'm new here and overwhelmed haha so my apologies in advanced -- but I did join to ask a specific question about what Miraheze tools that might be available so that I can write a program that takes a CSV file with like 400 rows and the output is that many Wiki pages-- I assume since Wiki pages are just markup, this would be .... fairly easy?? [21:36:45] [2/3] Is there a good place in this wiki for reading a list of tools or should I just ask a question in support? SORRY I'm just not sure where the best spaces are for asking for help [21:36:45] [3/3] but hi everyone [21:38:51] First of all hi and welcome [21:39:32] Second, I don’t know of any tools that do this, but you could absolutely do this either directly using the mediawiki API or using a combination of existing coding libraries for bot making, depending on what ecosystem you work with [21:39:52] I could round up some docs and useful thingys, if you’d like to try that route [21:40:24] It should be fairly easy with a small bit of python. The mediawiki api guides on mediawiki.org are probably the best place to start. [21:40:59] If you get blocked by the firewall, please shout and we'll unblock you. You might need to look at how to set your own user agent. Some generic python ones are blocked. [21:42:40] this is all very new to me, I assume this is something I can use with miraheze [21:42:57] Yes [21:44:17] Miraheze is a hosting service that provides [[mw:MediaWiki]] hosting as a service, so most things are the same as on the doc site [21:44:18] [21:44:39] you could probably do it with bare python, but there's also pywikibot [[mw:Manual:Pywikibot]] [21:44:40] [21:45:22] um could I just like take a bunch of .txt files like 400 of them and somehow upload them all to a wiki if I know the markup format or is that not a thing? [21:46:16] Well [21:46:24] I currently do a lot of like CSV to HTML work using Java and Python so that's like my current background haha but I don't mind learning something new [21:46:39] Not really upload per say but a script to create pages sure [21:46:44] Wikitext isn’t very complicated [21:47:14] If you have the contents(or data and a template) and the page name, it’s pretty simple to make a page once your authenticated [21:48:10] [[mw:Help:Formatting]] [21:48:11] [21:48:20] They'll definitely be sample python on mediawiki.org [21:48:35] If I wasn't already in bed, I could probably help make it in like 10 minutes [21:48:48] timezones man haha [21:48:55] Omg yes there is [21:49:01] Oh wait [21:49:16] I had a tool i wrote for someone on the sims wiki but its for text files to wiki pages rip [21:49:33] [1/3] Hello all, I'm having an issue with "Pagetype/rfd", as per the following image, and given that I used Special:Import to guarantee all transcluded templates and pages were present, I'm unsure of why it's still doing this [21:49:34] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1400233885362688163/image.png?ex=688be4ed&is=688a936d&hm=4c464a95f7aad92cbb33846ac49e07e56b790f09cbb30eb03b388944f191e6e9& [21:49:34] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1400233885593501859/image.png?ex=688be4ed&is=688a936d&hm=525ec423881db604db6c3e7c25cc81fbebae0d0d2f740b6e337451558a2361c5& [21:49:53] I'm assuming its a fairly common issue, as I've seen other wiki's with this error [21:50:41] Modules won't be imported automatically [21:50:45] that's really cool honestly I can take any data format and convert it into anything else that's like my one programming skillset (I just do it as a hobby and write stuff to make my life easier) but that does sound like what we're trying to do haha with another virtual life sim game ❤️ [21:50:53] You'll need to import that too @jormungandrrrr [21:51:28] Module:Pagetype/rfd is imported [21:52:05] Try purging the page the error appears on [21:52:11] [1/2] It's being used in "12000000% of all pages", so that's fun [21:52:11] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400234546103975956/image.png?ex=688be58a&is=688a940a&hm=a8882ad76fe4b7c5decbeaff7e6106925c99464ee49c395b0af34f9792debbf7& [21:53:00] are we importing from wp again [21:53:24] Yep, that's fixed it, thank you very kindly I was tearing my hair out [21:53:59] I will do it the correct way only after exhausting every available incorrect option [21:54:38] [1/2] The repo is here if you're interested - https://github.com/OAuthority/TXTtoMediaWiki and the guidance is https://dev.miraheze.org/wiki/Converting_text_files_to_MediaWiki_articles [21:54:38] [2/2] Obviously the downside is that its written in C#. The executable in the releases page should have everything you need to run it, but if you want to build it from source (if for any reason you don't trust that I'm not trying to steal your personal data) then you'll need the C# runtime to use it. [21:54:40] no, we just really love telling you about the several cluster headaches you'll get from importing from WP [21:55:24] I'll come crying to this channel again when that happens, dw [22:05:25] crying is fun :D [22:05:25] I did C# back in the days of that Microsoft XNA for making Xbox games and learned is basically 99% Java so I should be able to at least read this code 😁 [22:05:44] well, okay, i have more access for better emotions now [22:12:09] woah okay so this isn't actually like using anything mediawiki? its just like log in using my wiki credentials and some apiURL which I assume is like the wiki I wanna upload to and just uploads a bunch of .txt files that I assume are wiki markuped already into the Wiki I've chosen? [22:12:40] [1/13] Quick question - I'm trying to "deep link" to portable infobox tabs. That is, given a link like `wiki/Cairn#Neutral`, it will navigate to the page `Cairn` and then the infobox tab labeled `Neutral.` There was an extension we used on Fandom to do this, but I was also at one point provided a code snippet that should work. [22:12:40] [2/13] Looking at this code snippet, would it do what I want it to accomplish? It doesn't seem to work right now, but I'm unsure if that's the cache or if the code is incorrect. [22:12:40] [3/13] ```var infoboxTabs = []; [22:12:40] [4/13] document.querySelectorAll('.portable-infobox .pi-tab-link, .portable-infobox .pi-section-tab').forEach(function(tab) { [22:12:41] [5/13] var tabName = tab.textContent.trim(); [22:12:41] [6/13] infoboxTabs['#' + tabName] = tab; [22:12:41] [7/13] }); [22:12:42] [8/13] if(typeof infoboxTabs[window.location.hash] !== 'undefined') { [22:12:42] [9/13] setTimeout(function() { [22:12:42] [10/13] infoboxTabs[window.location.hash].click(); [22:12:43] [11/13] }, 1); [22:12:43] [12/13] }``` [22:12:43] [13/13] Links: [Common.js page](), [Example Page 1](), [Example Page 2](). [22:13:33] [1/2] You might be interested in this if you already know python https://meta.miraheze.org/wiki/Help:How_to_set_up_pywikibot [22:13:34] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1400239923432394844/image.png?ex=688bea8c&is=688a990c&hm=934a3981826280e64d9291d3e83015721f1f3d38a6b2a64f84152e108e4f1055& [22:13:39] Yes, anything in the text file is put into a MediaWiki article with the name of the text file [22:13:56] If the text file contains wikitext then mediawiki will respect that once uploaded [22:14:06] Is that not what you were after? [22:15:32] yeah it sounds like it! I don't know much about web dev stuff but the libraries it was written with was just all System things so I just thought it was neat you can just do that is all 😂 [22:15:52] I'm just impressed and think this is neat [22:16:56] [1/2] when I was in college I worked with a dude who wrote a pearl script to do something similar and we accidentally ran the script too fast and made someone at our uni's IT upset because we went too fast for the oracle database 😭 so I had to add sleep's [22:16:57] [2/2] But I dunno I'm like such a noob when it comes to this world that I'm just impressed is all [22:17:59] but I think this tool is exactly what I want so I'm gonna experiment with it and then see if I can figure out WikiText stuff 🫡 [22:19:10] holla if you get stuck 🙂 [22:21:38] I dunno if you guys will get a kick out of this or enjoy this side story: but I was told to "just ask chatGPT your questions" by a friend and I'm too old school that I like asking humans for help and I don't know if I want to make friends with the AI yet 😂 so thank you for being so helpful [22:33:49] Skynet is taking over the world! [22:35:30] MediaWiki is too niche, for ChatGPT to be reliable for that tbh anyway [22:36:27] And really in general, anything you ask ChatGPT, if you don't know enough about the subject, to be able to verify it, it really is no good, as who knows what it might spit out. [22:37:24] rm -rf / usr/lib/nvidia/* [22:39:01] Skye wondering why his net is taking over 😆 [22:40:01] I wasn't sure how niche this question was yeah I was worried it would be like.... hard to answer.... and/or give me something it was sure was the answer but it wasn't the answer [22:40:02] her* [22:41:18] LLMs like the various GPTs out there can sometimes be helpful to unstick you on a particular problem, but their answers should always be taken with an entire saltblock of suspicion. [22:41:33] oh I guess I do have one more question, I can export an entire Wiki out of Miraheze if like I decide to host stuff myself or somewhere else too? like all this data and editing we might be doing [22:41:54] We're always happy to assist as able, but questions may sometimes need to go to #support when there isn't someone online who knows. [22:42:20] yes we provide full XML dumps [22:42:46] also image dumps on request on [[SR/RC]] [22:42:53] Yep, image dumps too should you choose to depart, your data remains yours. [22:43:06] you can also self-dump w/ wikiteam3 if you choose :p [22:43:48] [1/2] The dump that dumps itself, best dump. [22:43:48] [2/2] The only exception to this is if the wiki is hosting something wildly illegal that we can't reasonably provide a dump for. This thankfully has only come up a few times in our history [22:44:15] what kind of illegal [22:44:24] Bad, report to law enforcement kinds. [22:44:37] i saw a wiki that was closed for leaking pii i think [22:44:39] ...graphic? [22:44:53] yeowch PII leaking is cringe [22:45:20] leak PII and we leak your PII to law enforcement :3 easy peasy [22:45:28] ah yes xDD [22:47:52] Bulk page creation is definitely pretty common (e.g. I [generated about 50 pages a few days ago](https://bluearchive.wiki/wiki/Special:Contributions/PetraMagna?target=PetraMagna&offset=20250723175513)) [22:50:57] cool! did you use the same tool linked above or did you use someting different? [22:52:15] I used pywikibot, though the bulk of the work is the page generation process. Code is [here](https://github.com/lihaohong6/Blue-Archive-bot). [22:52:50] woah that's cool [22:55:12] Blue Archive still kicking ey? [22:55:46] Eye for an eye [22:55:49] I realize now that if you are keeping up with a modern? video game and needing to update a wiki that making a bot with pywikibot is probably ideal-- I'm actually just trying to take a 15 year old website of data and put it on a space for non-tech-literate people to easily edit and keep track of a community made process for a 20 year old video game [22:58:33] [1/2] Doing even better than when I've joined I'd say. I don't recall seeing 30 active editors on the wiki: usually that number is around 20. [22:58:33] [2/2] I no longer play the game but still run my bots when other editors want to see new story pages on the wiki. [23:01:40] There is another wiki I'm on whose core pages are mostly updated by bots. It definitely makes my life much easier to press a button and see the wiki up-to-date. [23:02:29] that's cool! my goal is to just like.... do this one thing for everyone and then they can manually update whatever they want without needing any tech support 😂 [23:04:04] its not something that needs a lot of data updates or anything, but just giving people a good way to view and edit things that needs to change was better than before where it was all in an SQL database and generated by PHP but one hosting is so busy she can't publish updates for us,,, better just with a Wiki [23:11:34] Wait what does it mean for my on-hold wiki request to be locked [23:14:30] https://cdn.discordapp.com/attachments/407537962553966603/1400255263784701983/image0.jpg?ex=688bf8d6&is=688aa756&hm=8b0810a89dc07cd893a17ce77e8f6d4e3a6b35c152375308f2c46325f60a4066& [23:14:42] Oh nevermind [23:14:46] Its denied now [23:15:09] I love getting no reason for it being declined however [23:15:33] It was denied for the same reason it was initally [23:19:37] Well that's fun [23:21:30] How long is the cooldown on requesting wikis then? I have a different idea that I might want to make a wiki for [23:30:12] Sorry, I declined, and forgot the explanation [23:30:20] It was added after that [23:30:56] I believe it is a week [23:31:59] As you have three wikis already, you can start editing in your userpages, and move them over once you have a new wiki. [23:32:27] But are your other wikis already matured/finished? [23:35:56] There’s also https://scratchpad.miraheze.org/wiki/Scratchpad [23:42:33] this worked! thnk u! [23:57:59] Can i use this code to make header and body fonts different in different categories too? [23:58:22] Can i use this code to make header and body fonts different in different categories too?