Last modified: 2013-09-19 00:12:35 UTC
I use $wgAllowExternalImages = true; http://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages There is no way to maintain the embedded external images (list all / find dead ones). The URLs should be stored in the externallinks table at least. If you think externallinks should be for real link URLs only, add a new special page to list all externally embedded images (when $wgAllowExternalImages = true). But I think the table is perfect for it. It stores external URLs. MW 1.18.0 here but this should apply to all versions. May also apply to: $wgAllowImageTag $wgAllowExternalImagesFrom $wgEnableImageWhitelist
Solution: Linker::makeExternalImage() becomes a linked image. Problem: I don't know how to add/update that entry in the 'externallinks' table
(In reply to comment #1) > Solution: Linker::makeExternalImage() becomes a linked image. > > Problem: I don't know how to add/update that entry in the 'externallinks' table This is typically done in the Parser rather than in the linker, by adding the links to the local ParserOutput object.
Thanks. I just copied # Register it in the output object... # Replace unnecessary URL escape codes with their equivalent characters $pasteurized = self::replaceUnusualEscapes( $url ); $this->mOutput->addExternalLink( $pasteurized ); from makeFreeExternalLink() and added it below $text = Linker::makeExternalImage( $url ); in maybeMakeExternalImage()