Manual:Hooks/SkinAfterContent/es
Appearance
| SkinAfterContent | |
|---|---|
| Disponible desde versión 1.14.0 Allows extensions to add text after the page content and article metadata. | |
| Definir función: | public static function onSkinAfterContent( &$data, Skin $skin ) { ... }
|
| Attach hook: | En extension.json:
{
"Hooks": {
"SkinAfterContent": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinAfterContent"
}
}
|
| Called from: | Archivo(s): Skin/Skin.php |
| Interface: | SkinAfterContentHook.php |
For more information about attaching hooks, see Manual:Enganches.
For examples of extensions using this hook, see Category:SkinAfterContent extensions/es.
Detalles
- &$data: (cadena) 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.