[00:01:26] don't [00:01:46] unfortunately wikitable uses it :St_Sad: [00:02:26] since when [00:02:43] dunno but i saw a width: auto !important; today [00:03:25] since it’s paired with an infobox, it makes them comically wide [00:03:36] the other fix is not relying on wikitable [00:04:37] https://meta.miraheze.org/wiki/FAQ#Can_I_hide_spoilers? [00:05:05] oh i tried it before it didnt work wtf [00:05:08] crazy [00:10:29] [1/2] yo uh [00:10:29] [2/2] is it A-OK if I add you 🥹 [00:24:08] [1/5] Mine [00:24:09] [2/5] ```|{{spoiler|[[Type:ORT|Foreigner (?)]]||blur}} || {{spoiler|[[tm:ORT|ORT]] ({{w|Oort Cloud}})||blur}} || {{spoiler|None||blur}}``` [00:24:09] [3/5] Template [00:24:09] [4/5] ```{{spoiler|I am blurred!||blur}}``` [00:24:09] [5/5] for some reason, mine stays blurred no matter what. if i hover over it, it just stays blurred. [00:24:13] what did i do wrong here [00:45:10] can u provide a link to ur wiki? [00:47:54] https://reconvergentfates.miraheze.org/Evensong_Grail_War [00:57:26] [1/2] put this in ur common.js [00:57:26] [2/2] `mw.loader.load('https://reconvergentfates.miraheze.org/wiki/Template:Spoiler/spoiler.js?action=raw');` [00:57:51] remind me what/where common.js is again [00:58:13] https://reconvergentfates.miraheze.org/wiki/MediaWiki:Common.js [00:58:21] thanks [00:59:46] [1/2] smth looks off here tho, this should be lua [00:59:46] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492328269972770946/image.png?ex=69daee81&is=69d99d01&hm=a2ab155afc844917cff2e7ceb0f46872044d1ae0df48c66545696369316c37fa& [01:00:24] if does work lmk i bet ik the issue [01:01:22] three dots -> view page information [01:01:28] if content type is wikitext change to js [01:02:47] @afterglou ^ do that as well [01:03:16] https://cdn.discordapp.com/attachments/407537962553966603/1492329150394929253/image.png?ex=69daef53&is=69d99dd3&hm=b0be45fcea398e80e6a18da7e8b5293c6c820a04a69a3965a901ca73b9cbb368& [01:29:17] That javascript code should be in the MediaWiki namespace [01:29:42] wait guys [01:29:51] 300 edits on meta I didn't realize! [01:55:01] @yzxs What's said here. Hosting JavaScript in non-protected pages (i.e. outside of MediaWiki namespace or User namespace) is a security vulnerability and MediaWiki will refuse to do it by default. [01:57:13] yeah thats actually what i was going to say when it didnt work but figured stackd solution was fine as well. Thats good to know tho [01:59:48] [1/2] Even if you do change the content model you won't be able to load it [01:59:48] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492343378208096446/image.png?ex=69dafc93&is=69d9ab13&hm=cef1633cbfa95999bd7ca406be84daf5b16933119b40077de391b1c431548d65& [02:28:19] [1/3] any help to use our own domain for a .miraheze.org? can someone guide me? I am not the guy who does the technical things on my miraheze wiki, but the other people isn't doing it so I will have to do myself. [02:28:20] [2/3] I have a domain tuscriaturas.com and I want that points to tuscriaturas.miraheze.org [02:28:20] [3/3] What I have to do? [02:37:32] <_chrs_, replying to jakeukalane> have a look at [[Custom domains]] [02:37:33] [03:48:00] blonde blazer returns [03:48:07] is there a way to use DPL for multiple categories [03:48:18] like if I wanted to sort by Easy and then Poptition [03:57:50] fabulous [03:57:54] i had forgotten about that [03:58:03] i was wondering why it looked so odd and i felt i had missed something [03:58:04] good catch [04:06:42] [1/2] Do what petra said tho or it wont work - move it over to a page called MediaWiki:Spoiler.js then change what i told you to put in common.js to this: [04:06:42] [2/2] `mw.loader.load('https://reconvergentfates.miraheze.org/wiki/MediaWiki:Spoiler.js?action=raw');` [04:07:39] right [07:14:28] https://reconvergentfates.miraheze.org/wiki/MediaWiki:Spoiler.js [07:14:30] does this look correct? [07:18:11] [1/2] you need to change the content model to javascript, under page information [07:18:11] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492423501867520031/image.png?ex=69db4732&is=69d9f5b2&hm=c148d59450ab87431c83a09b2c038f990d5c8721fdf57f3f40fecf8bd3ec889f& [07:18:39] oh alright [07:19:03] there we go [07:19:05] that looks right [07:19:23] how long should it take for the changes to load? [07:34:02] [1/5] update your common.js to [07:34:02] [2/5] ```lua [07:34:03] [3/5] mw.loader.load('https://reconvergentfates.miraheze.org/wiki/Mediawiki:Spoiler.js?action=raw'); [07:34:03] [4/5] ``` [07:34:03] [5/5] i think that should fix it, if it doesn't you can just put the code onto common.js itself [08:53:42] i think you can do this with custom collapsible toggles too [11:20:58] actual structure should be `mw.loader.load("https://reconvergentfates.miraheze.org/w/index.php?title=MediaWiki:Spoiler.js&action=raw&ctype=text/javascript")` or tech will yell at you [11:28:26] saying this like you aren't also tech :bombasticsideeye: [11:48:57] he has an evil skye for that [12:02:05] this isn't me yelling, this is me gently nudging [12:16:17] what does `ctype=text/javascript` do again? mark the page for caching? [12:22:24] I think it's just content type? [12:23:55] but yeah if you have `action=raw&ctype=text/(javascript|css)` in your url then it gets cached by cloudflare [12:25:49] 🤔 so only js/css `action=raw` pages get cached huh [12:27:47] lowkey I was trying to find a way to make an Extension:Preview alternative that reads from the `action=raw` output [13:25:43] yk i actually don't have ctype in my filtertable call in common.js [13:26:04] Is that possibly what it causing not to work for some ppl on mobile? [13:34:29] actually nah [15:16:59] Can someone pelase help? [15:17:06] How do I fix this issue in citizen? [15:17:07] https://cdn.discordapp.com/attachments/407537962553966603/1492544031396462744/image.png?ex=69dbb773&is=69da65f3&hm=8d2274997b4c36ac62894410815f2df39015ed15a6f585ddaacbb1720f5df88b& [15:18:49] @posix_memalign If you're free could you help me a bit? This is going to be for a wiki for a official game [15:23:25] is that infobox a table [15:24:39] Yes [15:24:59] [1/18]
[3/18] |+ '''The Glorious Robot Army''' [15:25:00] [4/18] |- [15:25:00] [5/18] | colspan="2" | [[File:ThegloriousrobotArmy.webp|250px]] [15:25:01] [6/18] |- [15:25:01] [7/18] ! Aliases [15:25:01] [8/18] | TGRA [15:25:02] [9/18] |- [15:25:02] [10/18] ! Field Marshal [15:25:02] [11/18] | Vario [15:25:03] [12/18] |- [15:25:03] [13/18] ! Tasks [15:25:04] [14/18] | [15:25:04] [15/18] * Suppressing Rebellion [15:25:05] [16/18] * Protecting the Border [15:25:05] [17/18] |} [15:25:06] [18/18] /div [15:25:28] u need to change it to a class so you can remove the float property on mobile devices [15:25:55] [1/7] ``` [15:25:55] [2/7] @media screen and (max-width: 800px) { [15:25:56] [3/7] .whateverclass { [15:25:56] [4/7] float: unset; [15:25:56] [5/7] } [15:25:57] [6/7] } [15:25:57] [7/7] ``` [15:39:35] [1/2] The template is always on the left, and there’s no background colour or border. I wonder if some modules are missing? [15:39:36] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492549686220034258/2026-04-12_003757.png?ex=69dbbcb7&is=69da6b37&hm=61c1d4e40a0ee5b43454fb82a7f7c5fad02340f812004e9696b42b622869dfea& [15:54:26] Wikipedia infobox? [17:26:28] [1/2] Is anyone able to help? The listen component of the infobox is aligned to the left, when it should be in the middle [17:26:29] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492576585407267057/image.png?ex=69dbd5c4&is=69da8444&hm=ea6a45ac46c0eb69bf97da44a665cce08e8d24923fbe172688bbc0fad9e68905& [17:28:34] it doesn't seem to have worked [17:50:24] [1/2] We could change that rule to cache more (e.g. `action=raw`) if there's demand for it (e.g. millions of requests with only `action=raw`). [17:50:24] [2/2] I was tempted to cache a particular API response because Fisch makes that request for every user on each page visit. Or we could chat with Fisch editors to see if there's a more efficient solution. If we're WeirdGloop I'd probably go for the latter more frequently. [17:52:12] What ice spice said in https://discord.com/channels/407504499280707585/407537962553966603/1492546247100334242. Give that wrapper `div` a class (e.g. `infobox-wrapper`) and then make `float` dependent on screen size: `right` by default and `none` for narrower screens. [17:57:53] There is always a more efficient solution than requesting raw JavaScript through index.php [18:13:36] [1/2] https://reconvergentfates.miraheze.org/wiki/MediaWiki:Common.js [18:13:36] [2/2] https://reconvergentfates.miraheze.org/wiki/MediaWiki:Spoiler.js [18:13:41] does that look accurate? [18:14:18] ah [18:14:20] i see the issue [18:14:26] it exposes the spoiler on click rather than hover [18:14:33] issue: im clicking a link [18:14:35] 😭 [18:15:15] alright ive managed it to work [18:15:19] i just had to change click to hover lmao [18:41:45] Farm-wide outage? [18:41:50] Yeah [18:42:14] I'm gonna hop on cloudflare and hopefully someone else checks the DB [18:46:00] It recovered by itself. [18:47:15] [1/2] This graph doesn't look right. My guess is that some extremely expensive requests hit the backend and brought everything else down. [18:47:15] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492596911767818431/image.png?ex=69dbe8b2&is=69da9732&hm=d1f69e4e52549c4011431b7a477a011dddec1527d1fc2d28bff9279bcaff88b6& [18:48:17] Do you have a CPU utilization graph or can maybe check if you ran out of PHP-FPM workers (assuming you use PHP-FPM) [18:48:46] Though I guess that's a lot of machines to bring down at once [18:50:05] seems like bastion had a stroke? indicative of network failure? [18:50:39] The load seems to go down in the outage because the servers stop reporting to Grafana. I'm unfortunately not very good at outage management (maybe a good time to write some docs about it). [18:53:18] i have an idea [18:53:23] [1/2] On nginx's side we seem to have an uptick of requests. Strangely enough I don't see a spike on Cloudflare. [18:53:24] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492598458283196518/image.png?ex=69dbea23&is=69da98a3&hm=a63ee51d54b9d6cd0f87a998bc22fa7f3f3fdb319a21c84a6a2d5ae1af0faff6& [18:53:57] load on db161 seems to be coming down from an extreme high [18:53:58] Oh it's just logging the errors. Never mind. [18:54:58] this has been known to cause outages before [21:00:53] You know it's bad when you're waiting to go home from work and you're so bored [21:28:52] blonde blazer has returned. [21:29:00] how do i hide a template inside of a template [21:30:32] What do you mean by hide [21:30:40] [1/2] see the Obama [21:30:40] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492638036020826324/image.png?ex=69dc0eff&is=69dabd7f&hm=9c79f1f44c88499003f77d6701d93732e82d1d10ceb3113be2a4137e95e5411e& [21:30:52] What [21:31:02] that's within a template that hides every bit of text within background-color: #ffffff [22:00:02] [1/2] i'm getting this error, i can't edit anything. [22:00:02] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492645426283806902/image.png?ex=69dc15e1&is=69dac461&hm=d94f576d57a036df92bc02abf11cb297a6ce15ec95a328daf817305c082130db& [22:08:34] I guess it depends how its hiding it [22:46:47] are you using the spoiler template from dev or the spoiler extension? [22:47:02] i think those might be easier to use than changing font color since there's a lot of edge cases that can interfere with that [22:47:09] I think it's someone's crawler [22:47:21] WO got hit really badly with like 30rps from them [22:48:12] it's called like Seamus the search engine and has no email in the user agent because the operator seems like a skid [22:51:12] what exactly is ur goal here? covering a spoiler? [22:58:35] [1/2] Added a social media link section, what do y'all think [22:58:35] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1492660162819789032/image.png?ex=69dc239b&is=69dad21b&hm=b967d465a86270cac5ee4e97a5a12a90774916fd3c11e7d1a2c8d6c5f61089a7& [23:01:47] yes [23:02:03] neither ❤️ [23:03:59] {{Template:Spoiler}} [23:04:00] [23:05:19] ok that didn't work [23:05:40] to clarify i want to hide template information that is embedded inside of a template [23:12:38] yes, i know, but my point is that it's hard if your template is simply using a font-color change to hide it [23:13:12] switching to the dev spoiler template: or even just the spoiler extension would just make usage easier [23:16:52] ok that didn't work [23:17:01] it's on the dev wiki [23:25:59] 👍 [23:34:30] more efficient solution is probably the way to go, e.g. if it gets cached in localstorage for a day would anyone notice [23:37:00] my service is so bad this sent twice and 12 minutes later [23:40:03] If there's anything i need to change lmk [23:40:22] I wonder though, would it be a good idea to add Special:Redirect/file and Special:Filepath to cloudflare cache? if it's getting redirected anyway might as well not require an origin hit [23:43:14] I recently did https://battlecats.miraheze.org/wiki/MediaWiki:Gadget-ImprovedCitizenNavigation.js?diff=394283&oldid=394256 on the bc wiki which avoids having to send a request each time a user loads a page, you can do something along these lines if you have a request sent each time [23:48:38] It still sends a request for first time visitor, which is a substantial portion of traffic. Depending on how popular the site is this could be better/worse compared with caching with Cloudflare. [23:49:55] Maybe we could just cache all 301 response? If something is "Moved Permanently" on would not expect that to change often. [23:50:09] Not sure if there's a section on special:analytics but i'm willing to guarantee a majority of our traffic is recurring users [23:53:19] still a good first step, plus speeds up stuff for end users after the first page they visited [23:55:17] sounds about right, if we set it to an hour or so do you think there would be any issues