Manual:Hooks/SkinAfterContent/fr
Appearance
| SkinAfterContent | |
|---|---|
| Disponible depuis version 1.14.0 Allows extensions to add text after the page content and article metadata. | |
| Fonction à définir : | public static function onSkinAfterContent( &$data, Skin $skin ) { ... }
|
| Attacher l'accroche : | Dans extension.json :
{
"Hooks": {
"SkinAfterContent": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinAfterContent"
}
}
|
| Appelé de : | Fichier(s) : skins/Skin.php |
| Interface : | SkinAfterContentHook.php |
Pour plus d'information sur l'ajout des accroches (hooks), voir Manuel:Accroches.
Pour des exemples d'extensions utilisant cette accroche, voir Category:SkinAfterContent extensions/fr .
Détails
- &$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.