[14:47:38] [1/2] SAL has died [14:47:38] [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1384907414427537602/image.png?ex=68542309&is=6852d189&hm=20ae5302b103fd71e927611d89bb82c7acb1b8ab3b70a985afc002d88499cc05& [15:31:27] Bounced it [15:36:24] thx [17:33:20] hi tech! after the addition of $wgExtractsRemoveClasses, I don't think its working as intended. i've added .portable-infobox but it doesnt seem to work [17:33:29] see: https://utg.miraheze.org/wiki/juggernaut [17:43:40] @abaddriverlol [17:48:24] [1/24] something is setting the 'description' page prop as "." [17:48:24] [2/24] ``` [17:48:25] [3/24] { [17:48:25] [4/24] "batchcomplete": true, [17:48:25] [5/24] "warnings": { [17:48:26] [6/24] "extracts": { [17:48:26] [7/24] "warnings": "HTML may be malformed and/or unbalanced and may omit inline images. Use at your own risk. Known problems are listed at https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TextExtracts#Caveats." [17:48:26] [8/24] } [17:48:27] [9/24] }, [17:48:27] [10/24] "query": { [17:48:27] [11/24] "pages": [ [17:48:28] [12/24] { [17:48:28] [13/24] "pageid": 1325, [17:48:28] [14/24] "ns": 0, [17:48:29] [15/24] "title": "Juggernaut", [17:48:29] [16/24] "pageprops": { [17:48:30] [17/24] "description": "." [17:48:30] [18/24] }, [17:48:31] [19/24] "extract": "

juggernaut/span/span/b is a gamemode in [recode] untitled tag game. \n/p

In juggernaut/span/span/p..." [17:48:31] [20/24] } [17:48:32] [21/24] ] [17:48:32] [22/24] } [17:48:33] [23/24] } [17:48:34] [24/24] ``` [17:48:44] that happens when TextExtracts doesn't find a description [17:49:48] hilarious since I queried for extract as well [17:50:00] and it does find something [17:50:16] oh [17:54:09] It returns an empty string for me with the settings WikiSEO uses: [17:54:39] TextExtracts and WikiSEO are always hell to work with [17:54:39] aha, my settings were probably not the right ones [17:54:58] (Re: that bug where descriptions are shown simply as `.`) [17:55:09] Without `exintro` it returns a description... [17:55:18] https://cdn.discordapp.com/attachments/1006789349498699827/1384954644392050778/image.png?ex=68544f06&is=6852fd86&hm=7e47de6d4563cb68c10c5753bb9feac3b6224c6d820bbcd7534fbacbc351bf8a& [17:55:23] I think that's because the portable infobox has a heading [17:56:26] TextExtracts is a bit weird about this, I vaguely recall delving into this myself [17:57:38] the h2's parent is the `aside` element, which they excluded, so shouldn't be an issue anymore? [18:03:30] [1/2] TextExtracts first tries to get the text from the first second and only if it doesn't find it any text, it calls `convertText` which removes the classes [18:03:30] [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1384956704264814593/image.png?ex=685450f1&is=6852ff71&hm=99d0380d675ec87bcda0d925b92204a0cd02d1986cec56f3b1554ce8dc0134c7& [18:04:05] i see [18:07:02] hmm, running the same API call but without `explaintext` does return the first non-infobox section [18:13:31] [1/4] "In plaintext mode: [18:13:31] [2/4] ... [18:13:31] [3/4] Articles must begin with the lead paragraph for an extract to be generated. The use of any template, and/or unclosed or empty HTML element may result in no preview for the article. E.g. "

/divhello" will give an empty extract." [18:13:32] [4/4] https://www.mediawiki.org/wiki/Extension:TextExtracts#Caveats [18:13:51] `'''{{cg|juggernaut}}''' is a gamemode...` [18:17:16] [1/2] I feel like that documentation is a bit outdated, because when I try to get the extract for `
/divhello`, I get `hello` [18:17:16] [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1384960169980592158/image.png?ex=6854542b&is=685302ab&hm=8ff3c6626ed252ac382ed0cb63be71e998e3a8eb0b2301fd9534eff7b88b52d7& [18:17:45] quite interesting [18:18:46] But is it still true for templates? I can't imagine there would be a difference, but you never know [18:31:54] [1/2] idk how I got any data with `exintro` earlier, but that isn't happening anymore [18:31:54] [2/2] so it is still an `exintro` issue [18:37:49] [1/2] I've debugged this locally and I think the issue is that TextExtracts runs the HTML through a regex (`^(.*?)(?= [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1384965340278296738/image.png?ex=685458fc&is=6853077c&hm=c6f9dcaf1b5b7aee6c2a57f98a5a52466874e99fa6d29879247c3d38da417952& [18:38:53] @snowstacked ^ [18:40:57] fix PI or don't use PI, amazing [18:44:49] you could also set the descriptions manually (or perhaps with lst), but that'd be quite bothersome [18:45:31] Or just move the first section above the infobox [18:45:55] ^ (genius) [18:48:07] not going to go down well with the "no infobox templates in the middle of my wikitext" community :3 [21:00:03] there's a condig opption [21:00:09] right in managewiki settinga too [21:03:14] ah thx [21:03:15] `$wgPortableInfoboxUseHeadings` [21:32:41] lmao the linked incompatibility from https://www.mediawiki.org/wiki/Extension:PortableInfobox is the same issue we having rn [22:54:21] Can we get that changed [22:54:44] $wgPortableInfoboxUseHeadings? that is in managewiki settings [22:55:01] they were referring to earlier messages [22:55:06] oops [22:55:09] eh, i tried x3 [22:55:15] specifically the image from srd [22:55:33] ? [22:55:42] but tbf should try the ...useheadings = false option first [22:55:42] yes [22:55:49] isn't... that PI related? [22:55:56] with how miraheze sets it to headings by default? [22:56:24] true.... i should sleep soon [22:56:30] :3 [22:56:51] nah i should have arguments of confusion on the internet :3 [22:57:09] le argument in #archiveteam-ot wrt archiving fedi [22:57:31] logs: https://irclogs.archivete.am/archiveteam-ot/2025-06-18 [22:58:26] wow that hurts to read (sign of requiring sleep) [22:59:52] you can have these sentences as a treat [22:59:57] > This "Gray Haze" she describes is the feeling of not being happy no matter what she does. No matter how much she tries to bury the feeling it doesn't go away. [22:59:59] > This is a real life phenomenon we in the psychology game like to call "Depression". [23:00:03] (unrelated btw) [23:01:39] getting #offtopic now methinks [23:15:24] OH MY GOD [23:15:27] THE ISSUE IS `$wgPortableInfoboxUseHeadings` [23:15:50] you're welcome ^^; [23:16:07] thank u to whoever contributed to my issue [23:20:08] BlankEclair: do not be afraid when I ping you in phorge for bringing that solution up <3 [23:20:23] wow it pings here too, how fun [23:20:29] :3