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