Manual:Hooks/SkinAfterContent/pl

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.
SkinAfterContent
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Allows extensions to add text after the page content and article metadata.
<translate> Define function:</translate>
public static function onSkinAfterContent( &$data, Skin $skin ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SkinAfterContent": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinAfterContent"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> skins/Skin.php
<translate> Interface:</translate> SkinAfterContentHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Podręcznik:Haki </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SkinAfterContent extensions/pl</tvar>.</translate>

Szczegóły

  • &$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.

Zobacz też