Manual:Hooks/ArticleContentOnDiff/zh

Category:MediaWiki hooks/zh#ArticleContentOnDiff Category:Hooks added in MediaWiki 1.17.0/zh#ArticleContentOnDiff
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.phpCategory:MediaWiki hooks included in DifferenceEngine.php#zh
介面: ArticleContentOnDiffHook.php

更多有关附加钩子的信息,请参见[[Special:MyLanguage/Manual:Hooks|:Category:Pages using Lc zh with unknown or deprecated arguments#zh]]
有关使用此钩子的扩展示例,请参见Category:ArticleContentOnDiff extensions/zh

细节

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

  • $diffEngine - DifferenceEngine
  • $output - OutputPage 对象 $wgOut
Category:Hooks added in MediaWiki 1.17.0/zh Category:MediaWiki hooks/zh Category:MediaWiki hooks included in DifferenceEngine.php Category:Pages using Lc zh with unknown or deprecated arguments