Extension:ReplaceRedLinks

Description
Extension supports replacing "red links" to Wikipedia for simple wikification in other projects.

Switching on
Use tag    to switch extension on. Parameter lang - is a two-letter language identifier, e.g. "ru", "fr" etc. If there is no this parameter or if it incorrect - system uses "en" for default.

If in page there is not tag   , extension does not anything.

Working sample

 * http://wikiext.org/index.php/Red_links_sample - short sample (see wikitext).
 * http://wikiext.org/index.php/Harvard_references_sample - more complex sample.

Setup
Extension was tested on 1.15.3 version of MediaWiki.

To install this extension, make ReplaceRedLinks_1_0.php (source code is below) in folder extensions/ReplaceRedLinks.

Then write  in bottom of file LocalSettings.php.

Source code
Make file ReplaceRedLinks_1_0.php in ANSI encoding (do not add any spaces before starting "  ").