Extension:RemoveRedlinks

From MediaWiki.org

Jump to: navigation, search

         

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
RemoveRedlinks

Release status: stable

Implementation  Skin
Description Removes redlinks from page output
Author(s)  Chad Horohoe (^demonTalk)
MediaWiki  1.14+
License GPL v2.0
Download Download snapshot

Subversion [Help]
Browse source code

check usage (experimental)

Quick and dirty extension I whipped up to remove redlinks from page output. Note, this runs on _all_ links run through Linker::link(), not only page content. Thus, redlinks in messages, special pages, etc will all be rendered as plaintext too.

[edit] Variants

[edit] Remove redlinks for unregistered users only

Adding the following code will remove redlinks for unregistered users only. Registered users will see redlinks as before. [To be added after function efRemoveRedlinks(...)]

global $wgUser; # always show for logged in users
if ( $wgUser->isLoggedIn()) {
	return true; 
}