Manual:Hooks/SkinAfterContent/ja
From Linux Web Expert
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>Manual:フック </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SkinAfterContent extensions/ja</tvar>.</translate>
詳細
- &$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.