[01:17:26] TimStarling: RE strippping boilerplate from maintenance scripts, I've been meaning to ask about this showing up in a couple of places: https://gerrit.wikimedia.org/g/mediawiki/extensions/MachineVision/+/d8f5df5405dfb8443691598ce6d4b456685c7940/maintenance/createFileListFromCategoriesAndTemplates.php#12 [03:17:11] What's a good first place to look if you have some images that just link to the image page instead of rendering when using [[file:...]]? [03:18:06] The image in question very clearly exists. [03:19:12] They're not using [[Media: are they? [03:20:31] No, [[file:...]] [03:20:42] Honestly I think this is a botched template [03:20:48] Because that seems to be the only place it does this [03:20:58] But I didn't create the templates [03:22:39] Certainly possible [03:25:07] Do you see any syntax errors here? https://pastebin.com/NQR22Ts8 [03:25:56] I don't see anything wrong outright, and that's the line that has the images. There's a standard naming convention for logos, so that's not the issue. [03:43:15] Nvm, figured it out. It's the resizing. seems the image couldn't be properly resized. [03:47:19] jfolv: linking to page works by adding a colon, like [[:File:Example.jpg]] [03:48:46] Krinkle: Thanks, but what I was talking about was a case where the added size value (|150px) was impossible to render due to the aspect ratio of the image. When the image was linked without the initial colon, it would still just display a link. [03:49:31] I did some testing and found that it only renders at a certain px and above, but the template i pastebinned above has a size smaller than the minimum allowed. [03:49:58] So really, it's an issue on our end :P [06:29:40] JeroenDeDauw: what Platonides said, use Title::makeTitle(NS_SPECIAL, ...) or Title::newFromText("Special:$foo") and ->getFullUrl() or ->getCanonicalUrl() [07:55:08] hi, I am a blind wikipedia reader, I am planning to have wikipedia offline, unfortunately, client solutions such as taxy, kiwix, are not screen reader friendly, xowa is too heavy for me, am planning to crawl using wget with w -1 interval, is it doable? [07:57:51] Hello kaveinthran. I'm sorry that I do not have the answer to your question. I am responding to let you know that substantive responses can sometimes take awhile here. If you can, please be patient and hopefully someone will respond soon. [08:09:08] kaveinthran: please do not use a web scraper unless you're looking for just a few pages, we have better alternatives [08:10:29] https://meta.wikimedia.org/wiki/Data_dumps has information if you're looking for a full offline copy, just a warning that they will take a significant amount of disk space [08:11:11] for a smaller amount of pages, you can use https://en.wikipedia.org/wiki/Special:Export and import it to your own MediaWiki installation [09:25:00] hi! i have an extremely old mediawiki that suddenly stopped working recently. i assumed it was because it was a very old version and tried to update, but it's giving me a "cannot access the database" warning with a long backtrace i cannot parse. is there anyone that could help out? [09:25:47] gtpod: can you connect directly to MySQL [09:28:28] i can connect via phpmyadmin at least (i'm at that level, sorry;;;), i don't think it's that the database is actually down [09:29:24] here's the error that i'm getting: https://pastebin.com/U8wDXeSD [09:32:18] gtpod: weird, then I'd assume that either something got updated on the MySQL end or credentials/hostname have changed [09:32:32] Check you've not misclicked if you've recently changed LocalSettings [09:34:49] is there a way i can check the dbserver and port? the database is on the same host as the mediawiki so it should just be localhost, and i didn't change any ports but i guess the host might have (cheap hosting) [09:35:11] for the user and password i actually added a new user to the database just in case it was that, but it didn't fix [09:36:25] gtpod: they are stored in the LocalSettings.php file [09:36:43] right yeah, i mean on the database side, sorry [09:37:14] literally just overnight the site stopped accessing the database so localsettings itself should be okay as it is (i assume...) [09:37:40] but i think the last time i updated was in 2009 so it's probably all kinds of broken [09:38:10] at least with modern mariadb you can use show grants for 'user'@'host';, no idea about old versions [16:09:06] Hi guys, is there an extension where you can like articles? [18:38:35] Thanks tgr|away legoktm [18:40:09] Does modern MediaWiki have some templating for building a UI? I'd like to have a UI developed (for on a special page) and wonder if that can be done without a pile of Html:: calls and other MediaWiki-bound stuff [18:59:43] JeroenDeDauw: there's support for language-agnostic templates, see https://www.mediawiki.org/wiki/Manual:HTML_templates [19:00:29] and MediaWiki frontend is in the process of switching to Vue which has its own templating system [19:13:43] tgr_: thanks! [19:14:26] I'm seeing only 8 mustache templates in core. That does not instill a lot of confidence. Could easily be removed [19:14:49] How far is the Vue stuff? Already usable in MW 35? [19:19:02] hey peeps, I'm having a bit of trouble with parsing. I want to parse a simple wikitext, [[Home Page]], but I'm always getting the result wrapped in

tags. Any way to get around that? [19:19:19] Does MediaWiki have something to create a sidebar like this? https://startbootstrap.github.io/startbootstrap-modern-business/sidebar.html Apparently loading Twitter Bootstrap CSS breaks Vector >_> [19:26:05] * grknight uses a custom skin based on Bootstrap 3 for a wiki [19:26:35] absorto: there's no doubt a more sane solution out there but I ended up doing literally something like $wikitext = str_replace( [ '

', '

' ], '', $wikitext ); in one of my extensions [19:26:42] but I don't use the Sidebar [19:27:35] JeroenDeDauw: don't you know that MW's support for menus other than the default MediaWiki:Sidebar is notoriously bad? :) [19:29:27] ashley: hmm. doesn't hurt our custom skin to bypass it and have menus [19:32:25] ashley: thank you! [19:33:26] well we do fill in some unique options to MediaWiki:Sidebar. and the skin processes things nice in Bootstrap dropdowns [19:33:56] JeroenDeDauw: it is def not similar to the bootstrap example you sent, but there is always TreeAndMenu (Extension:TreeAndMenu) [19:38:21] absorto: ashley: there's a helper method Parser::stripOuterParagraph( $html ) [19:40:21] MatmaRex: that is just great! [20:02:11] MatmaRex: neat, thanks! I'll need to make LinkFilter (&friends, most likely) use that in the near future :) [20:36:07] ashley: I was hoping that maybe changed in the last few years [20:36:16] absorto: thanks for the pointer [20:51:44] Hi guys, is there an extension where you can like articles? [20:55:54] JBaar436: maybe something like https://www.mediawiki.org/wiki/Extension:RatePage or https://www.mediawiki.org/wiki/Category:Rating_extensions [23:44:16] https://i.loli.net/2021/01/20/lvyDQfhVcHGZ2Ne.jpg After i import some template from English wiki to my own wiki, template styles are broken. How to fix this? [23:55:48] broken how?