Available from version 1.10.1
Removed in version 1.18.0
Allows an extension to select a different version of an image to link to?
Define function:
public static function onBeforeParserMakeImageLinkObj( Parser $parser, $title, $skip, $time ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"BeforeParserMakeImageLinkObj": "MyExtensionHooks::onBeforeParserMakeImageLinkObj"

For MediaWiki ≤1.25:

$wgHooks['BeforeParserMakeImageLinkObj'][] = 'MyExtensionHooks::onBeforeParserMakeImageLinkObj';
Called from:File(s): parser/Parser.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BeforeParserMakeImageLinkObj extensions.