[00:27:34] Hey, it appears that the YouTube extension isn't working [00:27:55] Or is it because my wiki is private? [00:29:16] It's planned to be removed in 1.44, EmbedVideo is available too and it supports YouTube, so there's no point in having two extensions for one purpose [00:33:56] I'm using that [00:33:59] My bad [00:36:37] I'm trying to use Okay the web chat extension isn't loading either [00:42:37] https://cdn.discordapp.com/attachments/407537962553966603/1413685788490858506/image.png?ex=68bcd4fc&is=68bb837c&hm=0021113daf13ab1a6df3660e5d9ff08f9e390374def4985ca5cda216d2361ee9& [00:42:38] What [01:40:22] then what should i do? [05:37:52] OA avi update gasp [05:38:04] now i have to get used to a pokemon [05:51:34] do yall limit the number of characters per line in lua? [07:38:37] As I said, copy the missing templates and modules to your wiki. [07:38:59] it worked thanks [10:32:28] how wacko of an idea is it to pass the entire frame to a different module? (is it even allowed) [10:32:56] science knows no bounds [10:32:57] wait I suppose that's exactly what module:arguments does [10:33:22] nah but do you really wanna read all of that [10:33:53] just kinda thinking about best practices for this [10:34:05] wikipedia seems to do 80 which is hella short [10:35:00] I think 120 is pretty good but the most sensible number limitation would probably be whatever the size of the small text narrow display setting on the new vector skin is [10:36:12] but anyway the situation here is I want to make my User error module support an arbitrary number of possible reasons for suppressing an error, and return a different message for each documented reason. my current version kinda preprocesses that to a degree but it's limited and tedious [10:36:21] this has very little practical benefit [10:36:56] but I don't like how the current version deals with the situation [10:38:50] btw you can't invoke from the article itself right [10:40:18] (the plan does not rely on that, but basically if it's successful there will be no need for Template:Error, although I lose the ability to give example errors. Unless I make that a dummy template for example purposes...) [10:46:45] I limit myself to 80 because that's where the line in CodeEditor appears [10:47:12] But that could be configured I think [10:47:18] oh can it? [10:47:26] 80 is really tight [10:47:45] In custom JS, I don't think a config option in MW exists [10:47:51] yeah just checked [10:48:23] 80 character lines is normally the max for most strict style checkers [10:48:34] Cause that fits easily on most displays [10:49:21] yeah ik it's a legacy thing [10:49:57] doesn't make sense at all for wikis though [10:50:23] on vector large font standard width it's too long, same for mobile [10:50:56] vector small + standard width seems to be like around 110 but idk the exact amount [10:51:08] [1/3] ```javascript [10:51:09] [2/3] mw.hook('codeEditor.configure').add(() => ace.edit($('.ace_editor').get(0)).setOption('printMarginColumn', 120)); [10:51:09] [3/3] ``` [10:51:16] oooo ty [10:53:42] I think there's also some kind of keybind for Ace settings but I forgor [10:54:08] Ok it's Ctrl+comma [10:54:30] But that doesn't save across sessions [10:58:52] E gad [11:22:01] woah [12:09:42] It's 114 [12:10:08] standard size standard width is 99 [12:11:56] remind me please, was there a way to make code highlights turned on by default? [12:12:29] do you mean in the editor or on a live page [12:12:40] editor ofc [12:13:13] seeing mangled formatting from ve in newly created pages makes want to disable it [12:13:43] [1/2] for wikitext (including templates) you gotta have the CodeMirror extension, then click on the highlighter button [12:13:44] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1413859711534633051/image.png?ex=68bd76f7&is=68bc2577&hm=106a9bde163809ece08d9adec89fcacbafd963267bd6b0a71c1d906a49616d34& [12:13:52] dude [12:13:55] i know that [12:13:59] im asking [12:14:03] oh default [12:14:07] right I think that's in the settings [12:14:13] if this can be always on by default [12:14:19] oh wait hmmm [12:14:26] I know I saw this somewhere [12:14:57] I don't think miraheze has that setting publically available [12:15:08] it's mentioned here https://www.mediawiki.org/wiki/Extension:CodeMirror [12:15:30] idk if you can ask the staff to enable it [12:24:18] i will, couple of other wikis i know might like this too [12:24:53] however, idk if new version migration was considered on miraheze :ThinkerMH: [13:02:52] [1/2] What is your fave custom thing you added to your wiki? [13:02:52] [2/2] Mine is the "writer categories" system, complete with profiles and infoboxes for writers [13:08:20] custom thing :ThinkerMH: [13:09:03] idk lol [13:09:43] my scuffed forum is certainly not my fave, and my non standard infoboxes idea didn't took off [13:18:44] There's a general MW config option for default settings [13:19:29] $wgDefaultUserOptions['usecodemirror'] = 1 [13:19:41] I don't know if ManageWiki has that [13:20:10] it doesn't, i did sent task tho [13:20:15] No apparently not [13:20:26] But a few wikis had that overridden so [13:23:28] What infoboxes idea? [13:24:08] it's just a full page width table [13:24:18] lowkey like discogs does [13:24:40] discogs is technically a wiki, just a very weird one-of-a-kind one [13:26:14] well, in reality back then i didn't bother w/ mobile optimization [13:26:56] i can maybe try again, but it wouldn't be better than what ive done on gigantic wiki (horrible thing if you'll look inside proper lol) [13:29:38] My favourite custom thing, is easily the modding section for the game the wiki is about (ofc the actual mod files are still needed for people to host elsewhere), using a custom namespace, and some DPL, on the "front" page for the modding area, for quick overview of all mods, while each mod having a dedicated page themselves, giving people a preload when making a page for it. [13:30:49] [1/2] I'm very fond of this error module [13:30:49] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1413879112933834762/image.png?ex=68bd8909&is=68bc3789&hm=99cf0a2cae8eac200c667643049d4bec9c36b2bd93cd84d4a19f310b5cc76f60& [13:33:52] [1/2] is there a way to protect all pages at once, instead of doing each manually? [13:33:52] [2/2] kinda want to have only logged in users edited the wiki [13:34:37] in permission settings remove edit and similar permissions from Everyone group [13:34:38] disable the edit permission for * [13:36:18] alr thks! [13:37:29] I made a Phorge ticket requesting this same thing a while back: https://issue-tracker.miraheze.org/T13996 no updates yet tho [13:38:09] I would add this link to the ticket you made but I'd have to remember the password to my Phorge account [13:38:11] was planning for a fancier solution but that is too much of a headache [13:38:37] can always revisit when CA gets back to rewriting managewiki :3 [13:39:03] phorge is normally tied to miraheze account via login in mw button [13:39:38] there was a proposal for such setting in core and/or preset in wiki requests [13:39:43] Oof I guess this means that I should make another ticket to have it enabled on my wiki? [13:39:53] Thanks for looking into it tho, it's v much appreciated [13:39:54] wut [13:39:56] nah I'll do it the way I originally intended do [13:39:56] That is pretty neet, how did you set it up? [13:40:09] Was that hard to make? [13:40:30] ah i thought you mean fancy solution for edit limits [13:41:38] ideally we'd be able to support changing all default user options but we lack a good option for associative arrays [13:44:33] [1/2] That is what I tried to outline in my reply already, but I guess you could take a look on the actual page(s) yourself. [13:44:33] [2/2] Keep in mind that it is a wiki for an NSFW game though: ||https://gianna.miraheze.org/wiki/Modding:Mod_Overview|| [13:44:38] [1/2] the tooltip functionality was imported from Runescape wiki, so what I did was just make it so it can handle all the error options, including sending the info about category suppression to the tooltip. The tricky part was dealing with the category suppression, cause you'd want to support multiple possible reasons and explain why. I didn't like the way I implement [13:44:38] [2/2] ed it before so I've been doing a rewrite of it (almost done now) [13:45:18] there's another thing I wanna figure out hmm [13:45:25] should probably put it in support [14:23:48] @theoneandonlylegroom@ccxtwf anyway you can now toggle $wmgCodeMirrorEnableDefault [14:25:11] Noice [14:27:49] yooo [14:41:54] yay [14:41:56] thanks [14:43:38] new question [14:44:01] did anything happened to tabs extension? :ThinkerMH: [14:44:38] actually nvm [14:46:54] actually editor now opened w/ disabled highlight for me :ThinkerMH: [14:47:14] had to enable manually again [14:47:36] can anyone try to check on my wiki? [14:47:41] it's a default preference so it doesn't get changed if you already have preferences [14:47:57] have you tested? [14:48:13] yees [14:48:33] so this will only apply to those visiting for the first time or anonymous users [14:48:45] i don't think there's a way to force codemirror [14:49:07] but why it switched back for me [14:49:13] oh it switched back? [14:49:15] wack [14:49:19] i told you lol [14:49:30] not functionally reading that well today [14:49:37] i enabled setting and editor opemed for me w/o highlight [14:50:11] okay, lemme try on another wiki [14:50:41] [1/2] see [14:50:42] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1413899212961218671/Screenshot_20250906-185031.png?ex=68bd9bc1&is=68bc4a41&hm=28824e1c46f7f489f570ad580b566eeeeeda49e80bd72a471c8baa02534a3c8c& [14:50:53] [1/2] disabled [14:50:53] [2/2] when i had it enabled prior that [14:51:10] for years at this point [14:52:00] lemme test something else [14:53:21] yeah well disabling the setting doesn't bring highlight back to user [14:53:24] oh I think i know what i fucked up [14:54:14] my bitter experience at bank IT was right no changes this fast are nice lol [14:54:37] wasn't as fast as you think it was lol [14:55:57] "fast" is relative [15:00:35] weird, it's showing $wmgCodeMirrorEnableDefault is false on softcellwiki [15:02:29] https://cdn.discordapp.com/attachments/407537962553966603/1413902179521007706/Screenshot_20250906-190208.png?ex=68bd9e84&is=68bc4d04&hm=4620f60826291008594c21b3cd9574e04daedbcda3220110e38e0a3f230bc744& [15:02:46] that's why I'm saying it's weird [15:02:49] :p [15:02:52] i checked and unchecked back on pizza tower wiki [15:03:10] i mean, same shit here happened too [15:24:30] @theoneandonlylegroom i think it was just ungodly slow for some reason, should work now [15:25:08] like i did nothing and now the values return true magically [15:25:23] i guess i forget the prayer step [15:25:54] Is there a way to change fonts & how your website looks? [15:26:09] mind checking on my wiki by yourself then, since you never edited it? [15:26:14] kinda like the pressure wiki [15:26:27] short answer - CSS [15:26:39] https://tenor.com/view/jimmy-butler-what-am-i-reading-what-am-i-looking-at-guy-looking-at-paper-jimmy-butler-looking-at-paper-gif-10656430272991200421 [15:26:47] I [15:27:02] yup, opened with codemirror [15:27:26] CSS defines looks of web sites, on wikis you gotta modify CSS of a skin/layout your wiki is using [15:27:29] oh my god is that scripting [15:27:40] not scripting lol [15:27:52] oh thank god [15:27:58] https://meta.miraheze.org/wiki/Help:How_to_write_HTML_and_CSS [15:28:20] it's a code thing but nothing close to scripts or programming [15:28:28] Oh thank you [15:28:41] just telling a computer how to style stuff [15:28:42] aight [15:28:48] no complicated maths required [15:29:26] I ended up requesting the wiki 2 months ago then saw it looked even the slightest bit difficult then moved on. Just to come back to it [15:29:37] quick nap innit [15:30:02] it was inevitable tbh. It has the best communication and stylization I've seen. [15:30:34] Thank god for this discord server though [15:30:56] and the people* [15:31:14] Looks as _calc()_ [15:31:49] don't have to use it :3 [15:32:07] CSS is the worst [15:32:12] always people around to help, but your best friend will be googling and trying random stuff until it does what you want [15:32:17] Maybe it's just because I don't have an artistic bone in my body [15:32:21] mood [15:32:24] Want to centre a div? Good fucking luck [15:32:51] don't scare people [15:33:11] yeah ok centering is fucked [15:33:33] I'm still out here in 2025 using center tags lol [15:33:44] idk who/what told me about margin: auto [15:34:34] Doesn't that rely on knowing the width though? T [15:36:01] That's wha always confused me [15:36:05] Now I just use flex and fail [15:36:40] if width not given div tried to take only as much as it needs [15:37:40] if it doesn't have padding content literally will be crammed in a box [15:38:20] im not wording proper rn [15:40:31] I've never had a problem with centering elements since I learned how to use flexbox [15:40:40] just display: flex; align-items: center; [18:10:06] [1/2] hello, I'm new to making Wiki things and I was wondering why this template I made with a table wasn't showing up on mobile? is that normal? [18:10:06] [2/2] https://scratchpad.miraheze.org/wiki/ThorsTestsThings/Template:BreedBox [18:56:18] that bloody css tricks page [18:56:22] i've read it so mant tumes [18:59:29] it's because mobile frontend (extension that provides mobile mode/view) doesn't like complex tables, probably considers it as navbox [19:02:08] okay thanks so this is normal! that's fine by me ❤️ [19:06:06] correction: it doesn't like anything with the navbox class at all [19:08:30] aha [19:10:11] yeah [19:10:11] https://github.com/wikimedia/mediawiki-extensions-MobileFrontend#wgMFRemovableClasses [19:17:38] MobileFrontend makes the assumption that no one wants to edit or do anything interesting from mobile. Hence it hides navboxes, page notices, edit buttons from the main page. [19:17:54] mobilefrontend is stupid [19:21:43] fuck mobilefrontend all my homies hate mobilefrontend [22:11:25] 🤷‍♂️ down with the sickne...mobilefrontend [22:12:31] Just use a responsive mobile skin [22:13:38] or just make it responsive yourself (unrecommended but people willingly did the path of pain in hollow knight sooo) [22:40:29] speaking of, it's a little annoying how you basically have to repeat everything you want on both on the common.css and mobile.css pages [22:41:47] weirdgloop seems to use a more convenient system of common.css for both, vector.css for desktop, and minerva.css for mobile [22:42:06] `@import url("/w/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css");` on Mobile.css [22:42:15] 👀 [22:42:15] y'know you can disable mobile.css [22:42:28] This is even better [22:43:05] you'd have to make that yourself then right [22:45:28] [1/15] This is what we have in Common.css to accommodate vector-2022 after disabling MobileFrontend. [22:45:28] [2/15] ``` [22:45:29] [3/15] .mw-parser-output span img { [22:45:29] [4/15] max-width: 100%; [22:45:29] [5/15] height: auto; [22:45:30] [6/15] } [22:45:30] [7/15] @media(max-width: 550px) { [22:45:30] [8/15] /* when the page is narrow, we need to reduce padding to have more [22:45:30] [9/15] screen real-estate for content */ [22:45:31] [10/15] .mw-page-container { [22:45:31] [11/15] padding-left: 0.5em; [22:45:31] [12/15] padding-right: 0.5em; [22:45:32] [13/15] } [22:45:32] [14/15] } [22:45:33] [15/15] ``` [22:47:52] do you have a link. wanna see what it looks like [22:49:42] https://strinova.org/wiki/MediaWiki:Common.css [22:50:25] We use navboxes extensively, and that's the main reason we disable mobilefrontend. [22:50:40] that makes a lot of sense [22:51:30] hmmm [22:52:05] I actually like quite a lot of things about mobile frontend [22:52:29] rswiki seems to preserve the nav boxes somehow and give them their own section, so I should prob look into how they do it [22:53:04] I think all the character pages ([example](https://strinova.org/wiki/Michele)) are responsive. Some of them are not written in the best way possible, but I can live with that. [22:54:23] oh the TOC is a floating button like fandom [22:54:28] I guess that works [22:58:14] $wgMFRemovableClasses can be configured to exclude navboxes but... [22:59:20] Seems like only one wiki on Miraheze has overidden it and it's not through ManageWiki [23:02:24] damn [23:03:55] Though, you can always change the class name, right [23:05:56] should be able to [23:06:39] our navboxes need a lot of work [23:07:15] The way navboxes are typically used make them unfit for mobile, though. [23:11:58] [1/5] Moegirlpedia used fancy CSS tricks to automatically turn navboxes into a vertical layout. I really want to replicate it at some point. [23:11:59] [2/5] Left: mobile [23:11:59] [3/5] Right: desktop [23:11:59] [4/5] https://cdn.discordapp.com/attachments/407537962553966603/1414025364702892104/image.png?ex=68be113e&is=68bcbfbe&hm=d3c8e01842e7db7dd0dba300aeb6cb62cb853c740d46c16ad86a3633b6f4d68c& [23:12:00] [5/5] https://cdn.discordapp.com/attachments/407537962553966603/1414025365235699804/image.png?ex=68be113e&is=68bcbfbe&hm=5b8544cc4b5a90b5e0194d412b28a50e90e234dbb41294ccedd7fac91677eefe& [23:20:04] RS wiki seems to have a scroll for individual nav bars in the box [23:22:43] I'm just realizing now that MobileFrontdnd hides navboxes [23:36:59] Does it just remove tables with the `navbox` class? If so, I think I might rename the class to circumvent it [23:37:40] Actually I guess this was mentioned here [23:38:44] the removed classes are mentioned here