Manual:Hooks/ShowRawCssJs

From MediaWiki.org
Jump to: navigation, search
ShowRawCssJs
Available from version 1.11.0
Customise the output of raw CSS and JavaScript in page views

Define function:
public static function onShowRawCssJs( $text, $title, $output ) { ... }

Attach hook:
$wgHooks['ShowRawCssJs'][] = 'MyExtensionHooks::onShowRawCssJs';
Called from: Article.php

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


[edit] Details

  • $text: Text being shown
  • $title: Title of the custom script/stylesheet page
  • $output: Current OutputPage object
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox