Jump to navigation Jump to search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
English • ‎español • ‎日本語 • ‎polski
Available from version 1.14.0
Allows extensions to add text after the page content and article metadata.
Define function:
public static function onSkinAfterContent( &$data, Skin $skin ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SkinAfterContent": "MyExtensionHooks::onSkinAfterContent"

For MediaWiki ≤1.25:

$wgHooks['SkinAfterContent'][] = 'MyExtensionHooks::onSkinAfterContent';
Called from: File(s): Skin.php

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


  • &$data: (string) Text to be printed out directly (without parsing)
  • $skin: (skin) Skin object

This hook should work in all skins. Just set the &$data variable to the text you're going to add.

See also[edit]