Github mirror of MediaWiki extension MassEditRegex - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
转到文件
Translation updater bot be3d098d21 Localisation updates from https://translatewiki.net.
Change-Id: I2bcba3c308b099ee596e70baa0ca604fc9e0b12f
2024-03-27 07:23:48 +01:00
.phan build: Add mediawiki/mediawiki-phan-config 2020-06-08 22:40:38 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-03-27 07:23:48 +01:00
includes Remove hook BaseTemplateToolbox 2023-10-02 15:46:49 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 01:34:18 +00:00
.gitignore build: Replace jsonlint with eslint 2021-02-20 20:32:16 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:02:55 -07:00
.phpcs.xml Move php files into /includes/ folder 2021-09-27 17:51:48 +00:00
CHANGELOG Remove I18n php shim and bump version 2017-07-19 10:42:50 +02:00
CODE_OF_CONDUCT.md build: Updating npm dependencies for security issues 2018-10-11 08:34:19 +00:00
COPYING Several minor tweaks 2015-08-12 15:52:13 +02:00
Gruntfile.js build: Replace jsonlint with eslint 2021-02-20 20:32:16 +01:00
MassEditRegex.alias.php Add alias for Serbian 2019-12-25 11:57:35 +00:00
MassEditRegex.js Replace $( document ).ready( ... ) by $( ... ) 2023-04-18 07:17:29 +00:00
README Remove PHP entry point 2021-12-05 01:46:23 +01:00
composer.json build: Updating dependencies 2023-04-29 06:51:07 +00:00
extension.json Remove hook BaseTemplateToolbox 2023-10-02 15:46:49 +00:00
package-lock.json build: Updating npm dependencies 2024-02-11 17:07:51 +00:00
package.json build: Updating grunt-banana-checker to 0.11.0 2023-06-02 14:24:56 +00:00

README

## MassEditRegex

MassEditRegex is an extension to MediaWiki that allowing to use regular expressions for editing many pages
in one operation.


### Copyright
Copyright © 2009, 2013 Adam Nielsen <malvineous@shikadi.net> according to the GNU General Public License 2.0
or later (GPL-2.0-or-later). See also the "COPYING" file provided with the code.


### Compatibility

* PHP 5.3 and later
* MediaWiki 1.17 and later

See also the "CHANGELOG" file provided with the code.


### Installation

(1) Obtain the code from [GitHub](https://github.com/wikimedia/mediawiki-extensions-MassEditRegex/releases)

(2) Extract the files in a directory called `MassEditRegex` in your `extensions/` folder.

(3) Add the following code at the bottom of your "LocalSettings.php" file:
```
wfLoadExtension( 'MassEditRegex' );
```
(4) Define which user groups may use this extension by configuring it as outlined in the "Configuration" section
of this file.

(5) Go to "Special:Version" on your wiki to verify that the extension is successfully installed.

(6) Done.


### Configuration

This extension comes with an extra user right called "masseditregex" to allow fine grained control of which user groups
may use this extension. By default it is assigned to no user group. In case you would like to assign it to a user group
e.g. "masseditregexeditor", add the following code to you "LocalSettings.php" file right after the lines added in step (3)
of the installation process:

```
$wgGroupPermissions['masseditregexeditor']['masseditregex'] = true;
```
Alternatively you may grant the permission to an existing user group, e.g. "sysop" by adding the following line:

```
$wgGroupPermissions['sysop']['masseditregex'] = true;
```

### Usage
See the extensions homepage at https://www.mediawiki.org/wiki/Extension:MassEditRegex for full instructions on how to
use this extension.