Manual:Hooks/ArticleContentOnDiff/da

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Hooks/ArticleContentOnDiff and the translation is 33% complete.
Other languages:
English • ‎dansk • ‎čeština
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": "MyExtensionHooks::onArticleContentOnDiff"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ArticleContentOnDiff'][] = 'MyExtensionHooks::onArticleContentOnDiff';
Called from:Fil(er): diff/DifferenceEngine.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)