Manual:Hooks/ParserMakeImageParams

From MediaWiki.org
Jump to: navigation, search
ParserMakeImageParams
Available from version 1.12.0
Alter the parameters used to generate an image before it is generated

*Define function:
function fnMyHook( $title, $file, &$params ) { ... }

*Attach hook:
$wgHooks['ParserMakeImageParams'][] = 'MyExtensionHooks::someExample';
Called from: Parser.php

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


[edit] Details

  • $title: The title of the image
  • $file: The file name of the image
  • $params: The parameters used to generate the image (i.e. thumbnail, center, framed). See Parser.php for a complete list.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox