Difference between revisions of "MassEditRegex"
From Biowikifarm Metawiki
(Created page with "'''MassEditRegex''' This extension allows administrators to replace specific texts simultaneously in a larger number of pages. Adding texts like category assignments are also...") |
|||
Line 6: | Line 6: | ||
* Go to [[Special:MassEditRegex]] | * Go to [[Special:MassEditRegex]] | ||
− | * Enter a list of pagenames into the box "Pages to be edited", each pagename | + | * Enter a list of pagenames into the box "Pages to be edited", placing each pagename into a new line |
* Enter the search text using the [http://php.net/manual/en/function.preg-replace.php preg_replace] format. That means the search text needs to be enclosed in forward slashes and several signs need to be escaped, like [, / or |. The use of [[wikipedia:Regular expression|regular expressions]] is also possible. | * Enter the search text using the [http://php.net/manual/en/function.preg-replace.php preg_replace] format. That means the search text needs to be enclosed in forward slashes and several signs need to be escaped, like [, / or |. The use of [[wikipedia:Regular expression|regular expressions]] is also possible. | ||
* If the search text is not found in one of the pages listed no changes are done on that page. | * If the search text is not found in one of the pages listed no changes are done on that page. |
Revision as of 15:36, 13 May 2013
MassEditRegex
This extension allows administrators to replace specific texts simultaneously in a larger number of pages. Adding texts like category assignments are also possible. The pagenames need to be specified which means a text search normally precedes the use of the extension. However, apart from providing a list of the pages to be edited other options like specifying the begining of the pagenames or categories are also possible. For categories all pages within a category are searched and edited.
Here are a few notes for administrators who are not familiar with this extension:
- Go to Special:MassEditRegex
- Enter a list of pagenames into the box "Pages to be edited", placing each pagename into a new line
- Enter the search text using the preg_replace format. That means the search text needs to be enclosed in forward slashes and several signs need to be escaped, like [, / or |. The use of regular expressions is also possible.
- If the search text is not found in one of the pages listed no changes are done on that page.
- Normally it is advisable to use the "Show preview" option first. However, the preview is limited to the first 10 pages listed.