Manual:フック/SkinAfterContent

From mediawiki.org
This page is a translated version of the page Manual:Hooks/SkinAfterContent and the translation is 44% complete.
SkinAfterContent
バージョン 1.14.0 から利用可能
Allows extensions to add text after the page content and article metadata.
関数の定義:
public static function onSkinAfterContent( &$data, Skin $skin ) { ... }
フックのアタッチ: extension.json 内:
{
	"Hooks": {
		"SkinAfterContent": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinAfterContent"
	}
}
呼び出し元: ファイル: skins/Skin.php
インターフェイス: SkinAfterContentHook.php

フックの設定についての詳細情報は Manual:フック を参照してください。
このフックを使用する拡張機能の例については、Category:SkinAfterContent extensions/ja を参照してください。

詳細

  • &$data: (文字列) 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.

関連項目