Manual:Hooks/ArticleContentOnDiff/da

Category:MediaWiki hooks/da#ArticleContentOnDiff Category:Hooks added in MediaWiki 1.17.0/da#ArticleContentOnDiff
ArticleContentOnDiff
Tilgængelig fra version 1.17.0
Before showing the article content below a diff.
Define function:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
Called from: Fil(er): diff/DifferenceEngine.phpCategory:MediaWiki hooks included in DifferenceEngine.php#da
Interface: ArticleContentOnDiffHook.php

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

Detaljer

Brug dette for at ændre indholdet i dette område eller måden det indlæses på.

  • $diffEngine - the DifferenceEngine
  • $output - the OutputPage object ($wgOut)
Category:Hooks added in MediaWiki 1.17.0/da Category:MediaWiki hooks/da Category:MediaWiki hooks included in DifferenceEngine.php