Manual:Hooks/SkinTemplateToolboxEnd

From MediaWiki.org
Jump to: navigation, search
SkinTemplateToolboxEnd
Available from version 1.13.0
Called by SkinTemplate skins after toolbox links have been rendered (useful for adding more)
Define function:
public static function onSkinTemplateToolboxEnd( $tpl ) { ... }
Attach hook:
$wgHooks['SkinTemplateToolboxEnd'][] = 'MyExtensionHooks::onSkinTemplateToolboxEnd';
Called from: File(s): MonoBook.php, Modern.php, Vector.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SkinTemplateToolboxEnd extensions.

Can be used for adding items to the toolbox. BaseTemplateToolbox also does the same thing, is cleaner and more future proof than SkinTemplateToolboxEnd, but may not work in old skins that don't use BaseTemplate yet and hardcode the toolbox.

Details[edit]

  • $tpl: template reference