For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:HtmlPageLinkRendererEnd extensions.
Used when generating internal and interwiki links in LinkRenderer, just before the function returns a value. If you return true, or without return value, an <a> element with HTML attributes $attribs and contents $text will be returned. If you return false, $ret will be returned.
$linkRenderer
: the LinkRenderer object$target
: the LinkTarget that the link is pointing to$isKnown
: boolean indicating whether the page is known or not&$text
: the contents that the <a> tag should have; either a plain, unescaped string or a HtmlArmor object.&$attribs
: the final HTML attributes of the <a> tag, after processing, in associative array form.&$ret
: the value to return if your hook returns false.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4