[13:26:56] Can mediawiki.org/wiki/Manual:Hooks/ImageBeforeProduceHTML be used in LocalSettings to modify targets of image links? [13:27:58] Example: I'd like to replace all link targets of images on wiki pages from File:Some_image.jpg to File.cgi?Some_image.jpg [13:28:29] In other words, just replacing File: with File.cgi? [13:29:10] Can anyone here indicate how the function may be constructed? [13:29:40] $wgHooks['ImageBeforeProduceHTML'][] = function ( ??? ) { [13:29:40] ??? [13:29:42] }; [13:40:29] The standard metadata File view could be made different depending on a wiki's purpose. The MultiMediaViewer extension attempts to address this but I found it to be an overkill. Swipe, which is what the average user expects, is not part of its features, at least not in my somewhat ancient 1.27 compatible version. So, I use an image display at File.cgi that I'd like to target all image links... [13:40:30] ...to instead along with the image name parameter. [13:47:57] Tuxedo: Feel free to ask your favorite LLM in lack of online feedback ;) [13:57:49] MW PHP Hooks functions are not my subject which is why I've asked for some guidance here. Maybe you know the answer. [13:59:22] where can I best get support for the Cargo extension? [14:27:55] taylan: https://www.mediawiki.org/wiki/Extension:Cargo/Getting_support suggests the talk page [23:58:48] For upgrade from 1.35, I'm unclear if I can go 1.35 -> 1.37 -> 1.39 -> (1.40/1.41) or if 1.36 / 1.38 / 1.40 is the required upgrade path [23:59:14] https://www.mediawiki.org/wiki/Manual:Upgrading#How_do_I_upgrade_from_a_really_old_version?_In_one_step,_or_in_several_steps?