[00:10:05] good thing about waiting for a wiki adoption request to be reviewed is that I get to recode a bunch of templates and whatnot while waiting [00:10:25] man I was NOT a good coder 2-3 years ago [00:11:27] though some of it is the byproduct of not having a usable version of template styles tbf (thanks fandom) [00:27:06] i am still not a good coder today [00:27:23] https://klipy.com/gifs/tiktok-confused [01:38:01] yeah I sometimes read my old lua modules and cringe [01:38:34] base template styles when it comes to being the most useless extension of all time [01:38:37] i will not stop slandering this extension [01:38:41] https://klipy.com/gifs/mei-mei-tole-tole [01:39:39] how are you gonna make an extension so ass that it needs a separate addon extension just to be useful [01:42:13] I got one that's worse: HAWelcome :) [01:55:08] I've found use for Template Styles but it is funny how it seemingly only exists to streamline templates while also makign them needlessly more complicated. [01:55:28] true [02:03:10] <.labster> Base template styles is fine (note: I learned web design before CSS) [02:04:32] the beforeyears [02:05:13] My main use for it is basically just having scripts for single pages that would take up too much space in the main css pages. [02:06:08] <.labster> My use for it is weird CSS that is probably only loaded on one or three pages, or imports from devwiki ofc [02:06:30] yeah p much [02:11:16] <.labster> In terms of Lua modules, I don't know if I'm any good, but rewriting this one took a year (because I got bored in the middle and abandoned it). I'm not sure it's a great idea to use parser functions from three different extensions (Bucket, Short Description, Subpage Fun) in one module, but I like big funcs and I cannot lie. https://allthetropes.org/wiki/Module:Subpages_7 [02:40:17] using it with extender is good, I find some good use for it since I like having the CSS organized in the place where it's actually used instead of like fandom where you just have to throw it in common or make like, a Classes.css thing (which is what I did) [02:40:38] it's just that base styles is so fucking bad and if you try to use anything added past like, 2015, it won't let you [02:41:10] yeah man I'm glad I can't use color-mix(), very necessary to filter that out [02:53:48] As a heads up, I'm usually most able to give volunteer time on weekends, so absolute worst case it'll be Saturday at the latest a steward takes a gander at this request. [02:54:17] Hoping I'll be able to carve out time Wednesday to go through the open requesrs [04:10:20] https://cdn.discordapp.com/attachments/407537962553966603/1528977405572546760/IMG_20260713_005039_444.jpg?ex=6a6042ac&is=6a5ef12c&hm=6e9072ab9776dbffe8d1178a75b0d66af9156f926a5c1e85b2520f28ce3dc677& [04:14:48] @Discord Moderators [04:15:08] havent seen this one before [04:15:16] The jannies have three pings already. Sick 'em! [04:15:17] sorry i didnt see the two mod pings in off-topic [04:15:20] usually it’s mr beast trying to give me $2000 [04:21:57] Boy, 2,000 bones? That would be sick. [04:30:37] That pink hurt my eyeballs [04:31:09] I forgot my password [04:31:16] Day is ruined 😭 [04:31:28] do you have an email set on the account? [04:31:52] It happens dw about it [04:32:45] interesting he grabbed roles before spamming, never seen that before [04:46:36] ive seen protections against automated role-grabbing in other servers so i guess it's not too uncommon [04:48:06] I mean i've been on discord for 11 years and never seen a spambot take roles :shrug: they are getting smarter I guess [05:03:06] [1/2] happy to say it happened again 🤓 [05:03:06] [2/2] 'night 🤷🏿‍♂️ [05:24:57] <.labster, replying to .labster> [1/2] So it turns out that after spending time trying to understand what PageImages was doing... it was just Hovercards being Popups being Popups. [05:24:57] <.labster, replying to .labster> [2/2] > Small files may be in the "Рage information" (action=info), but not in the "Popups". Some requirements are set here - for a portrait image: exact (min) height 250 px & max width 203 px; for a landscape image: exact (min) width 320 px & max height 200 px[ [05:25:36] <.labster> And for a square image, ??? [05:26:05] <.labster> Okay, I really need to make my own Hovercards gadget. [05:26:27] <.labster> It will have hookers and blow and all of the page images. [05:27:25] interesting, what does "hookers and blow" look like in a gadget? [05:27:53] <.labster> the looks of the first largely depends on the quantity of the second [05:28:09] hahahaha [05:28:26] hookers and...blow? [05:28:28] I actually cackled at that [05:29:16] something cool [05:29:36] if I search up my username the AI overview actually gives like info on me [05:29:42] from my meta userpage and stuff [05:29:51] Its something I dont recommend looking up unless of age, and we really probably should move on. [05:30:30] oh, sorry [05:30:31] (and I'm not like a creepy stalker who searches up people's usernames) [05:30:45] Crystalite13: to be clear I was referring to your first message [05:30:58] oh [05:31:00] Crystalite13: some of the info might be outdated as we block some AIs due to aggressive scrapping [05:31:25] maybe, but just I think yesterday I updated my userpage to say I was a GP and it already updated [05:31:51] i mean its possible its correct just sometimes AI can get a bit interesting because we block alot of them [05:32:14] yeah :shrug: [05:39:43] h-hatsune mikue?? [09:14:53] IM THININY MIMU [09:14:55] Miku [09:14:58] Oooeeeuuuu [09:15:16] https://cdn.discordapp.com/attachments/407537962553966603/1529054143166287882/image0.gif?ex=6a608a24&is=6a5f38a4&hm=a2d1b94f3408da959a335886757dc3dffb51c056aeadf24dd33987d1a3a69717& [10:22:43] https://tenor.com/view/miku-point-show-hatsune-hatsune-miku-gif-86259844439666402 [11:08:53] https://cdn.discordapp.com/attachments/615786602454581249/1529082633835909220/Aqua_battle_spin.gif [11:48:38] I think possibly because it's google it's able to both scrape and index the site at the same time [12:24:00] How do i make tabs? [12:25:49] <_arawynn> With the TabberNeue extension [13:40:46] i wonder if there's a way to make tabs even before that extension [13:42:38] tabber extension [13:42:51] and much before that [13:53:29] coding [13:55:31] and even before that [13:57:01] grog make tab of stone [14:03:01] And I’m afraid to ask, but even even before that? [14:03:38] The Unnamed One created tabs from uncreation. [14:07:11] we had papers before coding [14:07:17] then, before that, grog made tab of stone [14:07:44] Erm achuslly, we had clay before that [14:08:11] my history of the world of tabbers™ is abridged [14:08:29] i have no interest in paper i will shred it all [14:12:22] Thats how paper was made in the first place [14:12:27] Shredding and torturing tees [14:17:12] Does the skin section change the background of a wiki ? [14:17:28] In the manage Wiki Core Extensions [14:25:50] Skins change the layout of the wiki (where things are positioned, etc.). Depending on which skin you choose to activate/use, they may have additional settings that you can edit in ManageWiki [14:26:45] iirc Cosmos at least lets you change the background in ManageWiki... If a skin doesn't have additional settings, then you'd use CSS to change things like font/background/etc. [16:13:21] Yeah I didn't consider the fact it was genemi (sp?) rather than the other llms [16:13:55] as such happens when thinking at midnight [16:18:55] [1/3] how to make charts like on MC wiki? [16:18:56] [2/3] like these [16:18:56] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1529160759488286750/image.png?ex=6a60ed6f&is=6a5f9bef&hm=144b918ef511def68120d78084e5d0ada9b84c676b6f9043378285c4997142e0& [16:53:19] [1/2] obviously they have something backend for that: https://tools.minecraft.wiki/static/tools/blockDistribution/ [16:53:19] [2/2] the main rendering logic is at: https://minecraft.wiki/w/MediaWiki:Gadget-mcw-calc-loader.js [16:54:09] for similar things you may want to introduce things like chart.js, or wait for miraheze to deploy charts ext to all wikis [16:54:25] is the chart extension not supported on miraheze? [16:54:45] iirc it already passed the security review [16:54:55] [1/2] cuz graph looks like this [16:54:55] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529169815582019825/image.png?ex=6a60f5de&is=6a5fa45e&hm=32f6a13df44d02421a008789cb85cf226db822304a210d5f9126aa98e4a7b19f& [16:56:01] here's the related ticket: https://issue-tracker.miraheze.org/T12839 [16:56:15] so is there no way to make charts for now? [16:56:52] as i said you can introduce libraries like chart.js [16:57:41] [1/2] oh ok didnt see that, sorry :p [16:57:41] [2/2] ok thanks :3 [16:59:12] luckily many exts actually have js equivalents and mh never restricts that [17:03:51] I do love the freedom of gadgets [17:04:03] so glad es6 support was added [17:11:41] [1/2] does anyone know why cargo and page forms will cause something like this to happen on special:multipageedit where the columns are duplicated for no apparent reason? it happens similarly when i try to create a page form by default on the template [17:11:41] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529174034288218203/image.png?ex=6a60f9cc&is=6a5fa84c&hm=3a9001a8b3fcd6a807cd895391a40812cee6dd777ea3be5c60d41977d7f246f5& [17:19:40] Celestial Caverns has some examples: https://celestialcaverns.miraheze.org/wiki/Ozirolyte [17:19:58] The Chart extension is pretty difficult to use due to everything being rendered server-side. [17:28:55] I wouldn't say never, if the JS poses a security issue tech and/or t&s can remove it [17:31:31] that makes sense [17:31:59] but at least mh doesn't review every single line of js before they're deployed like f* does [17:33:50] tbh i wonder if mh can really detect such issue. if it makes the server somehow abnormal it would be easier to spot, but if it only introduces a free xss to a local wiki ig mh tech doesn't have that many eyes to detect and remove it [17:34:41] [1/2] Hello, can somebody help me to explain this in a simpler way? I don't understand what i need to do with this... :" [17:34:42] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529179825934303242/Screenshot_20260722_003227_Chrome.jpg?ex=6a60ff31&is=6a5fadb1&hm=fa811d818a0c5013e0f3e9f239a1fc4ead6451c7ba1ad4d889899d395141b126& [17:34:50] is this chart js? sick [17:35:45] I wonder how many ppl tried to put miners in those 😭 [17:36:30] kinda crazy looking page btw (in a good way) [17:37:35] they may introduce such unaware, e.g., when using ai vibed scripts [17:40:51] those are more likely to melt visitors devices I feel like [18:36:20] Do what it says in italics at the end first while on your wiki. Right click > Inspect Element > Console. Then paste whatever is at the linked page into the console, then use whatever it spits out in the indicated space(s) in the code for Gadget-cosmostweaks.css (which I assume is posted in another step) [18:43:30] [1/2] hey uh. how does rowspan 2 work with. multiple rows [18:43:31] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529197144890806495/image.png?ex=6a610f52&is=6a5fbdd2&hm=c2e9dfbc2a67e59b01fa0a19b2ea2c38985db7d30f20d4477d69559d7b0dcaf1& [18:43:42] the last column is meant to just be one big box with that text inside [18:44:21] [1/2] the 2 is the amount of rows you want it to span [18:44:21] [2/2] make it a bigger number for more rows [18:44:34] OOOOH [18:44:38] i thought it spanned horizontally. thank you lol [18:45:17] colspan is horizontal [18:45:39] oh theres colspan too. that makes more sense [18:45:45] thanks again <3 [18:45:49] WikiMedia and their awesome naming [18:46:06] it's named correctly lol [18:46:10] pp small=yes [18:46:15] https://klipy.com/gifs/mei-mei-tole-tole [18:46:41] Did you know? Chica the Chicken no-diffs all of your favorite characters. [18:51:47] [1/4] is there a way to have a 3rd layer of tabbers without conflicting with the rest of the code [18:51:47] [2/4] first layer goes with | [18:51:48] [3/4] second with {{!}}-{{!}} [18:51:48] [4/4] is there way to do the same for a 3rd layer ? [18:53:43] I think you just do another {{#tag:tabber [18:54:16] yes but when setting the tab names i can't use either | or {{!}}-{{!}} for the third layer [18:54:23] it messes up everything [18:54:28] ah [18:54:50] dunno then, I haven't needed to use more than 2 layers at a time so don't really know much [18:55:12] i think i'll create a support forum so i can post my code and screenshots [18:55:18] is this a Miraheze issue or a problem with my wiki? [18:56:13] https://cdn.discordapp.com/attachments/407537962553966603/1529200344347967600/image.png?ex=6a61124d&is=6a5fc0cd&hm=ba763fda8955c75fc6e1319fff54a8e29a9e14c0088c657841b0af283d770370& [18:56:48] [1/2] I was helping with one of my friends' wiki by importing Wikipedia templates... then I saw this with the Infobox person [18:56:48] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529200489223295057/2D8C81B8-4D94-4E3A-9050-31AE878046BE.png?ex=6a61126f&is=6a5fc0ef&hm=0e922b6318d9af7bc4f03ee02fec97359cd8b4eaaab0010b788c45ee8259b7f7& [18:57:08] We do not recommend importing from wikipedia. [18:57:26] We have infobox templates on [[dev:]] [18:57:27] [18:57:42] Thanks for that help [19:00:35] also, is there anything that can prevent the 'empty space' whenever an image or blockquote is added between bullet points? [19:51:03] Can one use Special:Import for pages from non-english wikipedia pages? [19:51:28] If you want to use special:Import for de.wikipedia.org, or etc. [19:54:06] [[mw:help:imports]] [19:54:07] [19:54:42] We do not recommend importing from Wikipedia generally, as their templates are way more complex than most users need. [19:57:53] [1/2] Understood, but in the interest of the question, I've used the page's advice of an API call, and gotten the following: [19:57:53] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1529215860882018305/image.png?ex=6a6120c0&is=6a5fcf40&hm=33da4df77699a0892e56ff6640492ca61923b561f01d805de8affdaf38bd5084& [19:58:00] Can one add to this list? [19:59:06] [1/2] i asked about this before but has anyone else experienced a fair amount of bots joining discord servers linked on their wiki? [19:59:06] [2/2] i have 2 linked on my main page and bots keep joining one of them, like one every couple days [20:01:17] I think it's a configuration option, but it's easier to just manually export from the source wiki and import to your wiki, see the help page I linked [20:01:51] When manually exporting, you can additionally export all templates and transcluded pages as part of that xml? [20:02:49] yes, but I would recommend manually picking and choosing what you want to import [20:03:19] especially when it comes to wikipedia, other languages probably won't be as insane as english wikipedia but that doesn't make them good [20:06:20] And if I'm going to use the export XML, with the "include templates" option, would that also include modules/transcluded pages [20:07:20] iirc it will include everything the template transcludes, including documentation and the hundreds of random modules that it ends up using for no reason [20:07:54] Such is the cost of convenience [20:07:58] Thank you for your help [20:08:59] I wouldn't count on convenience as its very easy to end up with broken stuff when importing from Wikipedia, because some modules may have dependencies that dont get imported and such, hence why we dont recommend importing from there and instead recommend importing from [[dev:]] when possible. [20:09:12] @link [20:09:12] https://meta.miraheze.org/wiki/dev: [20:09:26] ugh [20:09:36] https://dev.miraheze.org/wiki/ [20:28:06] hi, me again. ive been asked to redirect a question since a content warning box on our wiki recently stopped working all of a sudden, even though nobody edited or changed it [20:28:23] I'm supposed to ask how to stop an element from being wrapped in

[20:28:50] [1/4] they also provided the current codeblock if it helps [20:28:50] [2/4]

{{ContentWarning|Content=|Warning=}}/pre/noinclude{{{Content|Scandalous content here.}}}
[[File:NPC Traffic Documentation Needed icon.png|link=]]/div
CONTENT
WARNING/div/div
Contains graphic content./div/span/span [20:28:55] <.labster> Don't use any extra newlines in a template if you don't want p's [20:29:21] <.labster> It would be more helpful to get a link to a page where the box isn't working. [20:29:42] they say there are no newlines [20:29:46] oh one sec yesh [20:29:59] i know nothing about css so im just the middleman sadly [20:30:37] https://pronounpalace.miraheze.org/wiki/User:SeaChameleon/sandbox [20:30:57] good lord [20:31:07] ...is it that bad lol [20:33:37] <.labster> It displays on hover.... [20:35:04] <.labster> This isn't causing the problem, but your template shouldn't have an id, because there might be more than one of it in a page... [20:37:47] interesting [20:38:14] from what i can tell is that used to work just but now it completely displaces the text around the link using it [20:38:20] hang on lemme get the example [20:38:23] <.labster> What is it supposed to be doing? Right now, I see a box when I hover over the text. [20:39:19] <.labster> https://cdn.discordapp.com/attachments/407537962553966603/1529226290756845708/image.png?ex=6a612a77&is=6a5fd8f7&hm=7cacf6c4de362ebec59953a985672f531afc145142f779ce247fe2cad102d336& [20:40:14] generally you want to avoid doing inline styling for templates (unless it's really simple) since...yeah you get that [20:40:27] <.labster> No line breaks I guess. [20:40:33] mediawiki doesn't like the concept of html formatting so there's no way to make it look any nicer [20:41:22] [1/3] tagging just in case but this is what i meant [20:41:22] [2/3] https://pronounpalace.miraheze.org/wiki/Paradigm its at the bottom under development [20:41:23] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1529226805339492613/SPOILER_image-5.png?ex=6a612af2&is=6a5fd972&hm=06a218e60b5042e3f618848371362f6c3c946900e5d300142ddc1597b11f3d38& [20:41:35] ah..... i see [20:41:52] it used to work thats the weird thing. like it didnt displace the text like that before [20:42:11] thats exactly what it should be doing, yeah [20:44:53] the issue was only on that page too weirdly?? like if you copied it and pasted it elsewhere itd work just fine [20:46:26] https://cdn.discordapp.com/attachments/407537962553966603/1529228081414406304/Screenshot_20260721-224611.jpg?ex=6a612c22&is=6a5fdaa2&hm=fbf0c0d763e25cc03724627bb89918402de32e344079cc78b945053ebea49ea7& [20:47:39] <.labster> If you delete all of the divs from inside the span it shows inline ... [20:49:47] Inline inside the popup box or inline in the paragraph? Because the internal of the content box looks how it should, the issue is not that those aren't displaying inline [20:50:21] the weird thing is that it used to work just fine and no ones touched it in the meantime im just not sure if this might be due to a change on mediawikis behalf [20:50:40] <.labster> The content box is inside the paragraph [20:52:54] hi Cham [20:52:58] Joined off a forwarded message [20:53:43] Sorry for the complexity of the issue. [20:54:13] The only intention is to disable the

wrapped on this specific object. On a previous revision about a week, maybe two weeks ago the whole object was working fine, but today upon attempting to use the template it began to be misformatted again. [20:55:22] Is there any way to simply set the object to be ignored by the automatic paragraph wrapper? That would solve the entire issue. [20:56:38] yo, what's gooood? [20:57:30] heyooo [20:57:37] bit of a uh. disruption here [20:57:55] <.labster> I'm trying to figure it out still, wondering if it's Parsoid or what. [20:58:33] The previous working version was written entirely in divs too. I swapped the two outer objects to span in case that was the issue but it made effectively no change. [21:02:35] <.labster> Can you revert to the previous working version? [21:03:12] <.labster> I tried the parser migration tool, it's not Parsoid causing it. [21:03:35] automatic

 wrapping with new lines is easily the most obnoxious feature ever lowk
[21:03:53] 	  almost never needed and it just fucks over html formatting completely
[21:04:00] 	 <.labster> That's included on the template page only
[21:04:08] 	  I can revert to the last version before it started being automatically formatted again, but there was no change of the object itself between when it was and wasn't working.
[21:04:13] 	  I'll rollback those changes.
[21:05:01] 	 <.labster> I meant to a working version
[21:07:11] 	  Was about to say that as far as I'm aware there is no "working version" but it occurs to me there was a single time the object was edited before my attempting to fix the issue today.
[21:07:17] 	  I'm going to try rolling back before that.
[21:11:58] 	  [1/2] https://pronounpalace.miraheze.org/wiki/Template:ContentWarning
[21:11:58] 	  [2/2] I've given that rollback. The only changes made since before trying to fix today was removing the custom entry field for the warning inside the popup, as it was decided that should be a static field.
[21:12:48] 	  Best I can tell with my sandbox, this version also does not work now, so it was something on the platform's end that's changed and not something about the object itself
[21:14:01] 	  I imagine it's a good guardrail for editors who don't really understand html formatting and would rather just work with the page like a text document, but it does make doing anything more reactive than standard pretty horrific.
[21:15:18] 	  pretty much
[21:15:59] 	  Ideally there could just be some wrapper tag to force everything within a section of html to be ignored by the automatic formatting
[21:16:01] 	  would be nice if a mediawiki update made it toggleable (on by default)
[21:16:12] 	 <.labster> Okay I edited the template, see if that works
[21:16:26] 	 <.labster> changed all of the divs to spans, and then removed the 
[21:16:59] or alternatively, you could just select a pre marker, delete it and it'd be replaced with a normal space [21:17:11] Honestly, perfect. Changes the contents of the box slightly but atp I'm just happy to have it working again. [21:17:13] <.labster> ===
, anyway [21:17:38] <.labster> You can make a fake
with border-bottom anyway. [21:17:56] Yeah, I was thinking the same. [21:18:30] I'll do that and re-apply the updates to the box. Tysm for the help. [21:18:43] <.labster> I honestly didn't know the parser paid so much attention to html tags for formatting. [21:19:34] I recognize this is a pretty obscure and complicated use case, but a way to manually toggle certain aspects of the parser within a wrapped space would save lives. [21:46:21] [1/5] `
` wrapping only happens if the new line begins with a space. you can use html comments to avoid hitting that behaviour```html
[21:46:21] 	  [2/5] 
.../div/div [21:46:22] [5/5] ``` [21:46:48] okay that's actually pretty cool, noted [21:47:22] alternatively, a Lua module could strip out whitespace by doing something like `text = text:gsub('\n%s*', '')` [21:53:30] attempting to use masseditregex in our wiki but everytime we use it the extension just says the any page we do doesnt exist??? [21:56:29] masseditregex has the worst error messages, most likely thing is an error in your regexes [21:56:53] did you put `/` at the beginning and end of each line in the search part [21:57:10] we have to do that??? 😭 it doesnt say that anywhere oh my god [21:57:26] I think the examples it gives all do that [21:58:59] [1/8] so we have to do it like: [21:58:59] [2/8] / [21:59:00] [3/8] PAGE1 [21:59:00] [4/8] PAGE2 [21:59:00] [5/8] / [21:59:01] [6/8] or [21:59:01] [7/8] /PAGE1/ [21:59:01] [8/8] /PAGE2/ [21:59:13] second one [21:59:31] i seee [22:02:15] https://cdn.discordapp.com/attachments/407537962553966603/1529247160711778334/brandbird.gif?ex=6a613de7&is=6a5fec67&hm=9473afbed2a2e11ff1fd2d3f922d4099c98781b91ed4ddb9f1be645d6479515f& [22:04:05] what [22:04:32] needed an excuse to use that gif [22:04:45] what does this gif mean [22:04:49] https://cdn.discordapp.com/attachments/407537962553966603/1529247160711778334/brandbird.gif [22:05:02] oh right I get it now ofc frfr [22:05:03] it means exactly what it means [22:05:18] ts pmo sm [22:05:31] at least try to make the sarcasm more discrete [22:05:39] omg lol tysm [22:05:50] https://cdn.discordapp.com/attachments/1357451198445125844/1489038867372703887/togif.gif [22:06:08] send it to the catgirl emporium [22:27:53] <.labster> ... buy in bulk and save [22:32:07] purchasing catgirls, it's mushoku tensei all over again [22:33:49] https://gif.fxtwitter.com/tweet_video/HFQV15jawAAQHvw.webp [22:36:17] zen browser [22:46:45] <.labster, replying to jjtech> I'm interested in trying a copy of the Popups extension as a gadget because I'd like to customize the text display to include short description, not just extract. Did you make it any further on this in the last couple of weeks, or should I start myself? [22:48:57] <.labster> Incidentally minified Popups is ~42kB and minified NavPopup is ~166kB. [22:49:18] How can I access the admin servers? [22:50:03] what admin servvers? [22:50:07] servers* [22:50:21] this is communication for Miraheze, a wikifarm. [22:50:21] <.labster> delete system32 [22:50:35] My friend said you guys have admin servers or something like that. [22:50:43] Oh, I wish I knew how to get in. [22:51:04] If you are talking about a game this isn't the right communication server for it. [22:51:11] This is for Miraheze. [23:00:40] It’s really easy [23:00:47] Since it’s just client side JavaScript [23:01:08] You just send it fake events as if they came from the extension to configure it and load it wholesale [23:01:09] Hey, is there any living being that can help me? [23:01:22] I am living. [23:01:39] what do you need help with? [23:01:42] <.labster> Yeah I'm just a lazy dev who doesn't want to repackage things [23:01:59] I literally just had it pull from Wikipedia’s CDN thing iirc [23:02:17] Unfortunately it broke some minor css iirc but it was mostly good [23:02:29] My friend said that this Diacord server has admin servers in the prospecting section with totems, meteor showers, etc. How can I join? [23:02:43] This is the wrong discord server. [23:02:48] Like i've said before, his is not for a game. [23:02:56] Which one is correct? [23:03:00] this is for Miraheze, a wikifarm. [23:03:20] that hosts wikis, we are not affliated with whatever wiki you are from. [23:03:20] <.labster, replying to caillon0802> I'll tell you, but you have to say how to show the labels for system messages rather than their local language equivalents. What would I do to the URL of the wiki? [23:03:56] I didn't understand what you meant, I'm Brazilian and I'm using a translator. [23:04:08] We host wikis on lots of different tooics, you probably got here from one of the wikis we host about the game you're trying to locate [23:04:16] @caillon0802 Habla Espanol? [23:04:22] Lab, stop trolling please. 🙂 [23:04:24] So Portuguese [23:04:41] What do I do? [23:04:57] We do not know, you are in the wrong place. [23:05:03] i do hello [23:05:05] you would need to contact your friend and get correct contact information for the wiki you are apart of, not here. [23:05:07] whats this about even [23:05:23] Ok obrigado [23:05:27] <.labster, replying to jjtech> So you just reload the extension in your gadget code, and intercept it and make changes there? [23:05:30] OK thanks * [23:05:50] Sorry for the inconvenience. [23:07:04] <.labster> No problem 🙂 [23:07:31] the real extension is two parts, a PHP side an a giant javascript bundle [23:07:42] the PHP side is literally mostly useless, the only thing it does is settings [23:07:52] <.labster> the PHP part is boring, I scanned through it. [23:08:06] so you can just disable the extension entirely in ManageWiki [23:08:14] and have a gadget load the javascript bundle only [23:08:26] with a small js stub first in the gadget to set up the settings it needs [23:08:30] <.labster> and presumably hardcode any settings you actually need. [23:08:57] https://gist.github.com/JJTech0130/aeee91610285792de59287a54e8845e3 [23:09:00] <.labster> I guess this would make it harder for a user to disable it though [23:09:32] this contains the code I added to make it do wikipedia interwiki popups [23:09:40] but you can just remove it and it would be even shorter [23:10:00] users can enable/disable individual gadgets pretty easily [23:10:11] <.labster> oh right Gadgets [23:10:12] you can make it default-enable since popups are default-enabled [23:10:16] <.labster> I'm silly [23:14:28] <.labster> Okay, so pretty much in one of the mw.loader.then() functions, I would just need to modify the popups object to replace one of the rendering functions to insert some new code. [23:14:56] <.labster> (I'm mainly a backend dev so subclassing JS doesn't come naturally to me) [23:15:43] the "proper" method to do this would probably be to fork the Popups repo and just modify and re-build the JS bundle [23:16:08] unfortunately with Javascript you can't "reach into" closures and do monkey-patching the way you can with Python [23:17:59] `mw.popups.register` is documented Popups extension API, meant for other Extensions to be able to add custom preview generators... it's possible you could use that same approach like I did? [23:18:48] Depending on if you're just trying to modify the text content that appears in the preview or if you want to actually change how the UI works [23:28:50] are template imports from wikipedia working for anybody? i've had multiple fails suddenly [23:43:39] <.labster, replying to questioningespecialy> https://meta.miraheze.org/wiki/User:Raidarr/Don%27t_import_Wikipedia [23:44:02] <.labster> Importing templates from Wikipedia almost never works, we answer this question a lot. [23:45:50] <.labster, replying to questioningespecialy> Importing templates from Wikipedia almost never works, we answer this question a lot. [23:57:34] We generally do not recommend to import directly from Wikipedia, if you need to import something we recommend checking out https://dev.miraheze.org/wiki/ first, and importing from there.