Manual:Hooks/ArticleContentOnDiff/da

From Linux Web Expert

ArticleContentOnDiff
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Before showing the article content below a diff.
<translate> Define function:</translate>
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> diff/DifferenceEngine.php
<translate> Interface:</translate> ArticleContentOnDiffHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleContentOnDiff extensions/da</tvar>.</translate>

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 )