Extension:ReplaceRedLinks

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

Switching on
Use tag    to switch extension on. If in page there is not tag   , extension does not anything.

Language parameter
Use parameter lang e.g.    to switch Wikipedia language. There is need 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.

Exclusions parameter
Use parameter exclusions e.g.    to switch off processing for any article names. Delimitier - is vertical pipe "|".

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.php (source code is below) in folder extensions/ReplaceRedLinks.

Then write  in bottom of file LocalSettings.php.

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