Manual:Hooks/ArticleViewCustom

Category:MediaWiki hooks#ArticleViewCustom Category:Hooks added in MediaWiki 1.19.0#ArticleViewCustom Category:MediaWiki deprecated or obsolete features#ArticleViewCustom Category:Hooks removed in MediaWiki 1.29.0#ArticleViewCustom Category:Hooks deprecated in MediaWiki 1.21.0#ArticleViewCustom
ArticleViewCustom
Available from version 1.19.0 (r94259, CodeReview archive)
Removed in version 1.29.0Category:Removed hooks#ArticleViewCustom
allows to output the text of the article in a different format than wikitext
Define function:
public static function onArticleViewCustom( $text, $title, $output ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleViewCustom": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleViewCustom"
	}
}
Called from: File(s): Article.phpCategory:MediaWiki hooks included in Article.php#ArticleViewCustom
Interface: ArticleViewCustomHook.php

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

Details

Allows to output the text of the article in a different format than wikitext.

  • $text: text of the page
  • $title: title of the page
  • $output: reference to $wgOut
Category:Hooks added in MediaWiki 1.19.0 Category:Hooks deprecated in MediaWiki 1.21.0 Category:Hooks removed in MediaWiki 1.29.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in Article.php Category:Removed hooks