Available from version 1.18.0 (r79358)
Called on both content and special pages after variants have been added
Define function:
public static function onSkinTemplateNavigation_Universal( SkinTemplate $sktemplate, array &$links ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"SkinTemplateNavigation::Universal": "MyExtensionHooks::onSkinTemplateNavigationUniversal"

For MediaWiki ≤1.25:

$wgHooks['SkinTemplateNavigation::Universal'][] = 'MyExtensionHooks::onSkinTemplateNavigationUniversal';
Called from:File(s): SkinTemplate.php

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


  • $sktemplate: SkinTemplate object
  • &$links: Structured array of navigation links

See alsoEdit