手册:Hooks/ArticleContentOnDiff

This page is a translated version of the page Manual:Hooks/ArticleContentOnDiff and the translation is 50% complete.
Outdated translations are marked like this.
ArticleContentOnDiff
version 1.17.0 版可用
Before showing the article content below a diff.
定义函数:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
附加钩子: extension.json中:
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
调用自: 文件: diff/DifferenceEngine.php
介面: ArticleContentOnDiffHook.php

更多有关附加钩子的信息,请参见Manual:Hooks
有关使用此钩子的扩展示例,请参见Category:ArticleContentOnDiff extensions/zh

细节

Use this to change the content in this area or how it is loaded.

  • $diffEngine - DifferenceEngine
  • $output - OutputPage 对象 $wgOut