[00:05:44] [discord] Very late as a reply, NotAracham, but for future reference if you need it, `ul` is the selector for bulleted ("unordered") lists and `ol` is the one for numbered ("ordered") lists. [00:05:44] [discord] [00:05:45] [discord] So to target only *all* bullet lists, you'd use `ul` ("unordered lists") and you can narrow that one down to whatever class the infoboxes uses so it only changes the list size of infoboxes. E.G. if the infobox has a class named `.infobox`, then you target `.infobox ul`, "any unordered list contained within the infobox class". [00:05:46] [discord] [00:05:48] [discord] Also if you want to only target the bullet and not any of the rest of the list, then it's `ul li::marker`, "the bullets of any unordered list's elements". [00:07:08] [discord] (source: had to learn to change the bullets to an emoji and accidentally then had to change the list size *and* then the bullets independently) [00:08:27] [discord] Yep, the original question for Mar Qaroll was about targeting all unordered lists in the body of a page, but good call-out. The one thing we didn't quite sort out is how to change the size of the bullet itself, as modifying the font size on that had no apparent effect on the bullet but did change the reserved line height [00:09:19] [discord] I saw some stuff about changing to a different unicode char to solve it, but didn't have the time to delve further [00:11:01] [discord] `ul` should be changing the bullet's size along the list elements, usually... It's just less noticeable than the rest of the text, but if you try with big values like 0.5em and 2em you see the shift. [00:11:02] [discord] [00:11:04] [discord] Of course, that's assuming there isn't a `::marker` with important on its text size. [00:11:49] [discord] Ah, that might just be it then [00:12:43] [discord] For the unicode change it's super easy! [00:12:44] [discord] Behold: [00:12:45] [discord] ``` [00:12:46] [discord] ul li::marker { [00:12:48] [discord] content: '[INSERT THE UNICODE CODEPOINT HERE]' [00:12:49] [discord] } [00:12:50] [discord] ``` [00:15:30] [discord] That’s true, but theoretically a wiki with only a few hundred pages could be using the same resources with cargo as a wiki with 30k pages. [00:15:55] [discord] You'd have to go peruse the characters but off the cuff a middle dot (·,`\00B7`) could work if you want a REALLY small one. [00:33:43] [discord] anyone knows fandom's main font? [00:33:46] [discord] i think its rubik [00:34:51] [discord] well, the infobox title font [00:38:26] [discord] Rubik indeed. [00:46:41] [discord] yea [00:46:42] [discord] its rubik [01:07:56] [discord] Are there some resources on building blocks for Wiki articles? [01:08:49] [discord] By this I mean a list of text paragraphes or sections suggested for articles. [01:10:37] [discord] Some of those building blocks could apply for any article ideally, e.g. sections like "History", "Origins", "Definition", "Context", "3D media" (of the topic), "See Also", etc. [01:25:49] [discord] It depends on the nature of the topic, but logical structure generally puts "see also/additional links" and "references" sections at the end of an article [01:26:50] [discord] Beyond that, it's generally appropriate to structure categories semi-chronologically when they're about individuals [01:27:43] [discord] There aren't any hard and fast must-haves, though looking at examples of how others do it can be great inspiration [01:31:40] [discord] Depends on the context really as NotAracham indicated. Usually, if it’s television/movie characters I generally opt for: [01:31:41] [discord] [01:31:42] [discord] Biography [01:31:43] [discord] Appearance [01:31:45] [discord] Trivia [01:31:46] [discord] Gallery [01:31:47] [discord] References [01:31:49] [discord] see more [01:32:47] [discord] (Seems to work well on most wikis.) [02:07:04] Hello TSL! If you have any questions, feel free to ask and someone should answer soon. [02:36:05] [discord] that is indeed the tradition for most mediawiki wikis [05:51:18] [discord] so when using the pageimages extension, is there a way to, within the text of a page (such as a template), query another page's image? I've skimmed the page on it on mediawiki.org but I'm a little confused [05:53:48] [discord] I'm trying to make a thing that shows a random set of pages in a gallery with their respective main images and it is. turning out to be kinda difficult, lol [05:54:08] [discord] and it doesn't like my go-to of using a cargo query [05:56:57] [discord] use lua [05:57:30] [discord] I have literally never used lua on a wiki in my life and don't have any idea how to get started on that [05:57:51] [discord] there's very few people who knows lua, really [05:58:02] [discord] amongst wiki admins [05:58:23] [discord] I've used it for roblox before [05:58:40] [discord] hence why we don't recommend people import from Wikipedia [05:59:30] [discord] I wish I never imported from Wikipedia. :cryign: [05:59:45] [discord] Now I have like 3k pages I don't want. [05:59:57] [discord] 😭 [05:59:58] [discord] Does pageimages even have a lua library available [06:05:46] [discord] all my struggles would be solved if cargo just had a god damn random order option [06:06:42] [discord] it would vastly simplify what I'm trying to do [06:07:11] [discord] idk maybe cargo does have a random order option and I'm just stupid but I can't find any info and just doing `|order by=random` gives me an error [06:07:24] [discord] maybe if you ask the dev, they'll add it [06:07:31] [discord] I've heard good things about the dev [06:08:35] [discord] rn I'm using dynamic page list for basically all random page selection and normally I'm able to slip in a cargo query to get images and other info from the page but it just doesn't want to work inside tags for some reason [06:12:26] [discord] is gallery styling very important? [06:12:46] [discord] maybe create container w/ custom class for images inside [06:13:05] [discord] it *should* work bc I have it set up so I can just get `ImageName.jpg` which is what the gallery tags want [06:13:18] [discord] but it just doesn't and idk why [06:13:52] [discord] there's a way to make a template from gallery markup [06:14:08] [discord] it won't use the tag [06:14:21] [discord] I don't remember how tho [06:16:04] [discord] and I'm having trouble googling it [06:18:51] [discord] same [06:19:10] [discord] I've done that on FANDOM for sure, a more savvy guy helped me [06:19:40] [discord] it was kinda like `{{#gallery` [06:20:38] [discord] I think a well formatted container w/ usual `[[File:...]]` can work too [06:20:38] https://meta.miraheze.org/wiki/File:... [06:21:25] [discord] Chances are if asked they'll add it yeah, they seem to be pretty responsive from my personal interactions with them. [06:28:51] [discord] I went ahead and asked [06:34:45] [discord] I'm so sorry, I've been through this in the Farthest Frontier wiki and I feel your pain [07:25:48] Hello SquiglyEvil! If you have any questions, feel free to ask and someone should answer soon. [07:27:13] [discord] bringing again yesterday convo regarding red links, what are chances recent extension will be accepted for miraheze? [07:28:34] [discord] I approved it today. [07:29:01] [discord] OH [07:29:14] [discord] It will be installed after 1.39. [07:29:22] [discord] nice [07:29:24] [discord] thank u [07:31:02] [discord] No problem. [07:47:52] [discord] it was tricky, but found an example. [07:47:53] [discord] https://www.mediawiki.org/wiki/Topic:Vnmqs9jfxz224tz1 [07:47:54] [url] Template parameters in galleries on Project:Support desk | www.mediawiki.org [07:47:54] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065900456179679273/image.png [07:48:31] [discord] I'm using this on my wiki, so if you have problems with it I can look into some of my heavier templates and recheck how they work :pupCoffeeMH: [07:49:02] [discord] I wonder why isn't it in the gallery tag documentation :ThinkerMH: [07:50:34] [discord] oh it's not exclusive to galleries. [07:50:49] [discord] well it still didn't like cargo when I tried it [07:52:10] [discord] It's possible that Cargo is parsed too late or early in comparison to the tag parser function? Not familiar with it so not sure, but that would mean you cannot do that unfortunately [07:52:32] [discord] You could try checking if saving the cargo result to a `{{#var:` first does something [07:52:40] [discord] (Extension: Variables) [07:52:42] [discord] I ended up finding an alternate solution with zero of the benefits from using a gallery 😛 [07:53:19] [discord] Good to hear you have an alternate solution at least 👌 [09:01:19] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065918940179611668/Screenshot_2023-01-20-09-59-42-313_org.adblockplus.browser.jpg [09:01:21] [discord] Hello, tell me, what would I have to change for this to stop appearing on this model: https://fiction.miraheze.org/wiki/Mod%C3%A8le:Personnage [09:01:22] [url] Modèle:Personnage — Wiki Fiction | fiction.miraheze.org [09:26:41] [discord] I'm kind of confused who has posted this :ThinkerMH: It sounds like someone from Miraheze regarding the data loss, but why an anonymous user in that case? [09:26:42] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065925323448913991/image.png [09:27:11] [discord] For reference we get almost no regular posts from random people [09:30:01] [discord] oh, module ... [14:44:34] [discord] Goodnight! [14:59:07] [discord] I expect it's one of your usual editors that happened to be logged out, I don't know of any of our global volunteers that would have the time for individual wiki check-ins. 🙂 [14:59:38] [discord] Yeah answered them, we'll see :pupCoffeeMH: [15:00:28] [discord] I'm editing almost solo so it's not possible to be one of ours haha [15:00:53] [discord] Very very odd, then [16:07:01] [discord] is there some permission i have to turn on to be able to have a JS script just for my user? [16:07:14] [discord] User:Dimpizzy/Common.js doesn't seem to do anything [16:14:30] [discord] oh nevermind i found the setting [16:15:14] [discord] User:NotAracham/global.js is the correct syntax, also [16:16:03] [discord] are they both correct? dev.miraheze.org says "Add the script as subpage of your user under the name common.js" [16:16:58] [discord] Oh weird. I'm not sure, actually. That's what I got to through UI navigation and is what I've been using for local tests [16:17:11] [discord] interesting [16:17:19] [discord] That'd be great to confirm though [16:21:01] [discord] i tested and common.js works but global.js doesnt for me [16:21:23] [discord] nvm they both do [16:21:32] [discord] global.js only works on Meta I think [16:22:08] [discord] wait global.js doesnt work on mine [16:23:27] [discord] Disregard, was doing quick troubleshooting on mobile [16:23:37] [discord] gotcha [16:23:55] [discord] Global is what it sounds like - all wikis [16:24:07] [discord] oh i see cool [16:58:01] [discord] I'm being exposed, I may have leave, bye @The 64ᵗʰ Gamer you loser. [16:58:39] [discord] um [16:58:40] [discord] wtf [16:58:47] [discord] rangerkid guy [16:58:54] [discord] ah [16:58:55] [discord] it's annoying [16:58:56] [discord] im lacking context [16:59:33] [discord] look up rangerkid51 in the miraheze server search [16:59:50] [discord] https://discord.com/channels/407504499280707585/435711390544560128/1063318715111850084 [16:59:50] [url] Discord | discord.com [17:07:39] [discord] I think it's not that [17:30:46] Agent : Void's inactivity script also has a hardcoded list of inactive exemptions [17:31:16] Wait I forgot I'm interface admin [17:33:25] [discord] I'd just keep the consuls in there as consuls aren't technically bound by the inactivity policy [17:33:35] They are [17:33:47] They only "aren't bound" because of the "exemptions" which are now gone [17:34:41] [discord] I'd probably clarify that on the Community portal and formally propose that consuls be removed after X amount of time inactive [17:35:13] I already did [17:35:16] My proposal wrote " (in particular, just being a consul is not a good reason, and arguably inactivity should apply more to consuls than to sysops/bureaucrats)." [17:35:27] So, it is clarified [17:37:58] [discord] fair enough I guess [17:44:46] Actually it looks like Void's script is consul protected for some reason [17:45:01] Even though it's already interface protected :| [17:47:41] [discord] I'm back and it turns out random order is possible in cargo but it requires a thing in LocalSettings.php, which I don't have access to or don't know how to access [17:48:29] [discord] `$wgCargoAllowedSQLFunctions[] = 'RAND';` [17:48:29] [discord] ^ specifically this [17:48:35] [discord] how do I go about that [17:53:26] [discord] delet system32 [17:53:31] [discord] no [17:53:34] [discord] Just kidding, open a Phabricator ticket and we'll handle it [17:53:59] [discord] LocalSettings.php isn't something that's editable by users so a sysadmin will add it [17:54:01] [discord] admittedly I'm intimidated by phabricator as silly as it sounds [17:54:14] [discord] There's a picture guide on [[Phabricator]] if you need any help [17:54:14] https://meta.miraheze.org/wiki/Phabricator [17:54:15] [discord] [17:54:16] [url] Phabricator - Miraheze Meta | meta.miraheze.org [17:56:50] [discord] I apparently forgot my password give me a moment also I have to say "oh god" on the recovery link it gave me but idk if I can securely say why [17:58:10] [discord] given it's what I assume to be a random string of letters and numbers the combination I got must truly be god tier in rarity and uniqueness [17:59:39] [discord] I'm just. gawking at it [18:00:07] [discord] does it spell out something? :HyperThonkSpin: [18:00:11] [discord] yes. [18:00:22] [discord] heh, that's a big coincidence [18:02:40] [discord] sent you what it spelled out [18:02:53] [discord] seen [18:02:56] [discord] lol [18:03:13] [discord] that's quite the coincidence [18:03:22] [discord] maybe it's on purpose heh [18:03:31] [discord] Phabricator does have a lot of Easter eggs [18:06:34] [discord] is it actually safe to post the first 7 letters of the thing [18:06:48] [discord] since it was part of the recovery link [18:06:59] [discord] If you already used the link and reset your password, the entire link should be useless at this point [18:07:28] [discord] ah, good [18:07:29] [discord] for those curious, it spelled out "godtits" [18:11:06] [discord] Ok so after some PageImage chicanery I managed to find a slight issue with it [18:11:36] [discord] Basically had a bunch of galleries that started on the same line as text, causing the images in that gallery to not be detected by PageImage [18:11:48] [discord] I doubt thats an easteregg, recovery links are likely completely random [18:12:27] [discord] I have had a google doc link, spell a slur once. [18:12:37] [discord] Used MassEditRegex to fix it, but it still didnt find the pageimage, despite it working on some page. Reason is it has to be re-saved manually. [18:12:53] [discord] I know some old video games with code-based save files would exclude vowels to prevent vulgar words from forming [18:13:09] [discord] Unless there is some way to re-save a bunch of article I now have 100~ pages to save with no changes [18:13:12] [discord] lets go [18:13:43] [discord] is there a quick way to open in edit source mode a link to a page? [18:21:14] [discord] you know, while I'm on phabricator I might as well open a task about the frequent database errors too which I was told to do ages ago but forgot [18:22:33] [discord] Cc @Disgustedorite☀ they should be cryptographically random. [18:22:41] [discord] It’s a co-incidence [18:23:09] [discord] Any persistent or reoccurring database error should be reported [18:23:49] [discord] would I report database errors that I suspect are related to an extension on the default form? I assume so but [18:24:26] [discord] On the default form is fine [18:25:05] [discord] If you have an error hash (a long string of letters and numbers you get when you encounter an error), you should include it in there [18:25:32] [discord] It’s a request ID, not error hash [18:25:39] [discord] Use the bug report form on Phabricator. [18:25:43] [discord] It’s got nothing to do with the error [18:25:56] [discord] cool [18:28:37] [discord] the wikipedia user script guide recommends hosting your .js file on your pc while testing and loading the file in common.js with 127.0.0.1:5500/script.js to make it easier and not fill up the wiki history [18:28:54] [discord] but the console says the content security policy is blocking the script from being loaded from my pc [18:29:04] [discord] is this not possible? [18:29:24] [discord] What url is it? [18:30:11] [discord] https://comprehensibleinputwiki.org/wiki/User:Dimpizzy/common.js this is what calls it [18:30:13] [url] User:Dimpizzy/common.js - Comprehensible Input Wiki | comprehensibleinputwiki.org [18:30:16] [discord] oh sorry didn't read enough. [18:30:59] [discord] The content security policy blocks anything from loading that isn't approved, you'll have to load it on the wiki itself, not on the PC. [18:31:15] [discord] oh ok, thanks [18:31:22] [discord] what are you trying to achieve exactly? 127.0.0.1 is localhost and localhost is MH itself [18:31:32] [discord] No it’s not [18:31:37] [discord] its my pc [18:31:40] [discord] JS executes client side [18:31:57] [discord] oh, forgot that [18:32:13] [discord] It would execute client side so it would be PC yeah, if the CSP allowed it. [18:32:26] [discord] anyway, the script is [18:32:27] [discord] ```mw.loader.load( 'http://127.0.0.1:5500/myscript.js' ); [18:32:28] [discord] $('#bodyContent').prepend('

Hello world2!

'); [18:32:29] [discord] document.getElementById("footer-places-disclaimer").innerHTML = ""``` [18:32:31] [discord] CSP isnt something i can change per page? [18:32:55] [discord] Nope, it is done from our side. It is not even changeable per-wiki. [18:33:00] [discord] oh ok [18:33:10] [discord] No, that would be a major security issue [18:33:23] [discord] gotcha. i wonder why wikipedia allows it then [18:33:44] [discord] Because they are other mitigations we and them deploy [18:34:01] [discord] I believe it’s report-only for them [18:34:16] [discord] Also, int admin could be anyone on miraheze [18:34:25] [discord] It’s much more restricted for them [18:34:32] [discord] makes sense [18:34:55] [discord] If you could change the CSP, you could send user passwords by spoofing a prompt to random sites [18:35:10] [discord] The CSP limits what sites you can interact with [18:35:31] [discord] Or load random js that takes over the wiki if a site gets hacked [18:35:58] [discord] Which is called a supply chain attack [18:36:35] [discord] interesting [18:36:56] [discord] would it be a security risk if it only allowed scripts from localhost? [18:37:15] [discord] Yeah, we have to do different security precautions, because it is open for anyone to become an admin or interface admin on a Miraheze wiki which could open up global security vulnerabilities if it got user passwords or something, or privacy leak implications, etc... so we have to take more measures for security in that regard. [18:37:53] [discord] I am not 100% sure on that, it is theoretically possible it could, but since only accessible to the individual user I guess probably not. [18:38:32] [discord] oh thats true. got me thinking, whats stopping an admin from creating javascript that monitors what the user types into the password box? or is that not possible with javascript [18:39:33] [discord] Not on-wiki JS, as it wouldn't affect login pages, or Special:Preferences. There is precautions within mediawiki to disable scripts on certain restricted special pages. [18:39:41] [discord] Likely self-XSS [18:39:52] [discord] oh ok good to know [18:40:29] [discord] maybe i could make a phabricator request for this feature to be considered? [18:40:32] [discord] @CosmicAlpha plugin is not working. [18:40:49] [discord] hmm? [18:41:21] [discord] Is there a solution to this, Let's prepare as we will be upgraded to MediaWiki 1.39 tomorrow. complete operation would make sense. [18:41:35] [discord] you can request per wiki CSP but likely at low priority [18:42:06] [discord] Editor friend, at MediaWiki:Sitenotice put it on but it didn't work. [18:42:10] [discord] well id like to keep security as good as possible, just allow in localhost scripts to make javascript editing easier [18:42:30] [discord] It won't happen. Our CSP is done within Varnish, not MediaWiki, so I don't even know if we really could do per-wiki CSP. [18:43:07] [discord] you can use your per account JS, but still limited by CSP [18:43:12] [discord] I don't know what you're talking about. [18:44:35] [discord] Text When I type, the text appears on mobile as well, I say that. [18:44:53] [discord] If you don't understand, let me explain with a nice translation. [18:45:14] [discord] yeah i know i can do that, but every time im making changes as i learn how to do something, it would add to the wiki history and clutter it. and itd be nicer to edit in an IDE instead of on the wiki [18:46:16] [discord] maybe ill find an extension for injecting the javascript in myself from the browser [18:49:58] CosmicAlpha : Nothing really [18:50:41] Naleksuh: nothing what? [18:53:04] Nothing stopping interface admins from taking over accounts [18:53:10] Which is why Fandom locks it off [18:59:01] [discord] Forgot if it was called tamper monkey or grease monkey but I think that's what you're looking for? [18:59:02] [discord] Also is there any downside to just pasting in console other than slight inconvenience [18:59:37] [discord] just slight inconvenience lol. ill look at those [19:01:49] [discord] I also know chrome has a snippets storage (Sources >> Snippets) that allows you to write and save scripts inside the developer tools. It also has a debugger, which is neat. [19:02:34] [discord] oh nice ill take a look [19:06:01] [discord] Ok so other fun fact, PageImage can base itself on WikiSEO forced image (using #seo:|image=...) but not if there isnt File: before it [19:06:15] [discord] In that case, WikiSEO will find the image but not PageImage [19:06:19] [discord] *zen* [19:06:28] [discord] hey yeah that works pretty well [20:29:20] [discord] @florigon tbh, for me an easier way is just using the Console on the browser's devtools [20:33:13] [discord] yeah, that's what ill do, using chrome's since it looks more feature packed for JS than firefox [20:34:09] [discord] just remember that if you're going to paste that into common.js, it will be ES5 [20:34:18] [discord] ES5? [20:34:39] [discord] the older version of JS, it's still the default one on MW [20:34:58] [discord] in 2015 JS had a very large update (commonly called ES6) with a lot of changes [20:35:09] [discord] (which lead to fall of jquery not being much used anymore) [20:36:04] [discord] oh i see. if JS is run by the browser, why does mediawiki have a default version [20:36:25] [discord] like if i put ES6 code into common.js, wont the browser run it fine? [20:36:54] [discord] i believe it's the compiler they use [20:36:55] [discord] It's probably for backwards compatibility because if you do it on any other .js page you can use ES6 [20:37:06] [discord] but I mean, it won't be a big deal depending on what you are trying to do [20:37:30] [discord] yeah, thanks for the heads up, ill remember to pay attention for that [20:38:57] [discord] so i shouldnt rely too much on jquery if i want to get into javascript? [22:01:40] [discord] yeah, I mean, on MW there's still lots of it [22:01:41] [discord] but outside of MW, you should definitely avoid [22:02:03] [discord] jquery used to be popular because of the things that it brought to JS at the time, but since ES6 this has been pretty much fixed [22:02:35] [discord] (and also because jquery is a very large library, so a lot of the time you're including everything jquery provides while just using a single thing) [22:04:02] [discord] ok thanks, that makes sense [22:53:45] [discord] Kinda surprised mw doesn't have something like babel in place [22:53:59] [discord] Would be nice to be able to use es6 or ts