Manual:Hooks/SkinTemplateBuildNavUrlsNav urlsAfterPermalink
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.37.0</tvar> (after being deprecated in <tvar name=4>1.35.0</tvar>).</translate> <translate> Please see <tvar name=page>SidebarBeforeOutput</tvar> for an alternative way to use this feature.</translate> |
SkinTemplateBuildNavUrlsNav_urlsAfterPermalink | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (r11803, codereview)</tvar></translate> <translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 701110)</tvar></translate> This hook is called after creating the "permanent link" tab. For more information, see phab:T254431. | |
<translate> Define function:</translate> | public static function onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink( &$skin, &$nav_urls, &$revid, &$revid2 ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SkinTemplateBuildNavUrlsNav_urlsAfterPermalink": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinTemplateBuildNavUrlsNavurlsAfterPermalink"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> skins/SkinTemplate.php |
<translate> Interface:</translate> | SkinTemplateBuildNavUrlsNav_urlsAfterPermalinkHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SkinTemplateBuildNavUrlsNav_urlsAfterPermalink extensions</tvar>.</translate>
Details
- Should be used in conjunction with the BaseTemplateToolbox hook.