2008-04-29 14:43:25 +00:00
|
|
|
Replace Text Extension
|
|
|
|
|
2023-09-07 16:43:45 +00:00
|
|
|
Version 1.8
|
2018-04-16 20:21:47 +00:00
|
|
|
Yaron Koren, Niklas Laxström and others
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
This is free software licenced under the GNU General Public Licence. Please
|
2022-09-08 18:41:13 +00:00
|
|
|
see https://www.gnu.org/copyleft/gpl.html for further details, including the
|
2008-04-29 14:43:25 +00:00
|
|
|
full text and terms of the licence.
|
|
|
|
|
|
|
|
== Overview ==
|
|
|
|
|
|
|
|
Replace Text is an extension to MediaWiki that creates a new special page,
|
2009-04-27 18:49:18 +00:00
|
|
|
Special:ReplaceText, available to anyone who has the 'replacetext'
|
|
|
|
privilege, that does a text find-and-replace on all pages in the wiki,
|
2009-05-19 15:24:13 +00:00
|
|
|
selectable by namespace. Both the contents of pages and their titles can be
|
|
|
|
modified. The search is case-sensitive.
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
Since the replacement is not undoable, if the replacement string is
|
|
|
|
blank or a string that is already contained in the wiki, the 'ReplaceText'
|
|
|
|
page prompts the user to confirm the replacement before it is performed.
|
|
|
|
|
|
|
|
Each replacement shows up as a wiki edit, with the administrator who
|
2014-05-29 17:54:46 +00:00
|
|
|
performed the replacement appearing as the user and an edit summary that
|
|
|
|
looks like "Text replacement: 'search string' to 'replacement string'".
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
For more information, see the extension homepage at:
|
2019-04-08 17:45:43 +00:00
|
|
|
https://www.mediawiki.org/wiki/Extension:Replace_Text
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
== Requirements ==
|
|
|
|
|
2020-12-22 16:56:01 +00:00
|
|
|
This version of the Replace Text extension requires MediaWiki 1.32 or higher.
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
== Installation ==
|
|
|
|
|
2020-06-18 19:01:22 +00:00
|
|
|
To install the extension, place the entire 'ReplaceText' directory within
|
|
|
|
your MediaWiki 'extensions' directory, then add the following line to your
|
|
|
|
'LocalSettings.php' file:
|
2008-04-29 14:43:25 +00:00
|
|
|
|
2018-04-03 17:02:47 +00:00
|
|
|
wfLoadExtension( 'ReplaceText' );
|
2009-01-18 16:21:29 +00:00
|
|
|
|
2022-09-08 18:50:00 +00:00
|
|
|
In order to perform replacements, you must have the 'replacetext' permission;
|
2009-01-18 16:21:29 +00:00
|
|
|
if you are an administrator on your wiki, the easiest way to do this is to
|
|
|
|
also add the following line:
|
|
|
|
|
2009-01-18 00:15:08 +00:00
|
|
|
$wgGroupPermissions['sysop']['replacetext'] = true;
|
2008-04-29 14:43:25 +00:00
|
|
|
|
|
|
|
== Contact ==
|
|
|
|
|
|
|
|
Comments, questions, suggestions and bug reports are welcome, and can
|
|
|
|
be placed on the Talk page for the extension, or sent to Yaron at
|
|
|
|
yaron57@gmail.com.
|