Custom version of mediawiki extension ReplaceText