4 Yaron Koren, Niklas Laxström and others
6This is free software licenced under the GNU General Public Licence. Please
7see http://www.gnu.org/copyleft/gpl.html for further details, including the
8full text and terms of the licence.
12Replace Text is an extension to MediaWiki that creates a new special page,
13Special:ReplaceText, available to anyone who has the 'replacetext'
14privilege, that does a text find-and-replace on all pages in the wiki,
15selectable by namespace. Both the contents of pages and their titles can be
16modified. The search is case-sensitive.
18Since the replacement is not undoable, if the replacement string is
19blank or a string that is already contained in the wiki, the 'ReplaceText'
20page prompts the user to confirm the replacement before it is performed.
22Each replacement shows up as a wiki edit, with the administrator who
23performed the replacement appearing as the user and an edit summary that
24looks like "Text replacement: 'search string' to 'replacement string'".
26For more information, see the extension homepage at:
27https://www.mediawiki.org/wiki/Extension:Replace_Text
31This version of the Replace Text extension requires MediaWiki 1.23 or higher.
35To install the extension, place the entire 'ReplaceText' directory
36within your MediaWiki 'extensions' directory, then add either of the
37following lines to your 'LocalSettings.php' file:
39 wfLoadExtension( 'ReplaceText' );
40 require_once( "$IP/extensions/ReplaceText/ReplaceText.php" );
42In order to perform replacements, you must have the 'replacetext' permssion;
43if you are an administrator on your wiki, the easiest way to do this is to
44also add the following line:
46 $wgGroupPermissions['sysop']['replacetext'] = true;
50Comments, questions, suggestions and bug reports are welcome, and can
51be placed on the Talk page for the extension, or sent to Yaron at