Manual:Hooks/ArticleContentOnDiff/es

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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:Enganches </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleContentOnDiff extensions/es</tvar>.</translate>

Detalles

Utilice esto para cambiar el contenido en este área o como se carga.

  • $diffEngine - the DifferenceEngine
  • $output - the OutputPage object ($wgOut )