Difference between revisions of "MassEditRegex"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 10: Line 10:
 
* 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.
 
* Normally it is advisable to use the "Show preview" option first. However, the preview is limited to the first 10 pages listed.
 
* Normally it is advisable to use the "Show preview" option first. However, the preview is limited to the first 10 pages listed.
* Several search and replace expressions can be used simultaneously. Fore this each search and replace expression is entered in a new line, even if the replace line is blank.
+
* Several search and replace expressions can be used simultaneously. Fore this each search and replace expression is entered in a new line, even if the replace line is blank.
 +
* A Gateway error might occur if too many pages are changed at once (e.g. more than 200).
  
 
[[Category:Extensions]]
 
[[Category:Extensions]]

Revision as of 21:06, 2 June 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.
  • Several search and replace expressions can be used simultaneously. Fore this each search and replace expression is entered in a new line, even if the replace line is blank.
  • A Gateway error might occur if too many pages are changed at once (e.g. more than 200).