Manual:$wgNoFollowLinks/pl

Szczegóły
Jeżeli true, zewnętrzne linki URL w zawartości wiki będą miały dodawany atrybut, który informuje przeglądarki, aby nie śledziły tego linku, gdyż jako link dodawany przez użytkownika może zawierać spam.

Setting nofollow for red links
It may be desirable to configure MW to append  to internal links that point to pages that haven't yet been written (so-called "red links") for various reasons that include avoiding unnecessary crawler traffic to non-extant pages or for the possibility of improved SEO by avoiding punitive action against a site's ranking due to the presence of "broken links" that aren't broken, just not yet authored.

This may be accomplished by using the  hook as follows:

// Add rel="nofollow" to links to pages that don't exist (redlinks) $wgHooks['HtmlPageLinkRendererEnd'][] = 'noFollowRedLinks'; function noFollowRedLinks( $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret ) { if (!$isKnown && preg_match('/\bnew\b/S', $attribs['class'] ?? "")) { 		$attribs['rel'] = 'nofollow'; } 	return true; }



Zobacz też

 * - the easiest way to manage whitelisting (since nofollow is not applied to interwiki links)
 * - the easiest way to manage whitelisting (since nofollow is not applied to interwiki links)
 * - the easiest way to manage whitelisting (since nofollow is not applied to interwiki links)
 * nofollow, Meta-Wiki discussion on nofollow's use on Wikimedia sites. Some of the arguments raised there may also applicable to other wikis' decisions concerning this configuration setting.