Extension:MassEditRegex/fr

L'extension MassEditRegex permet aux administrateurs d'effectuer une seule modification sur plusieurs pages en une seule étape, en exécutant une expression régulière sur le contenu de chaque page. Ceci est bien adapté pour effectuer des modifications simples telles que renommer un modèle, ajouter des pages à une catégorie ou corriger des fautes de frappe (toutes pouvant être effectuées dans la même opération d'édition en fournissant plusieurs expressions régulières.)

Utilisation
Once the extension has been installed and permission  to use MassEditRegex has been given, go to "Special:MassEditRegex" and fill out the edit form. Familiarity with regular expressions is required to use this extension.

Fonctionnalités

 * Page iteration can be done on the client side, so PHP maximum execution time is no longer an issue when editing large numbers of pages.
 * Transform each page using one or more regular expressions in a single step.
 * Edits appear as "bot" so they don't show up in the normal edit list (unless the user chooses to show bot edits).
 * Only users with the  permission can perform changes.
 * A new "edit all" tab appears on category pages and on Special:WhatLinksHere, for editing all listed pages at once.
 * Pages to edit can be specified as:
 * Une liste de noms de pages
 * A list of page name prefixes (e.g. "Test" will match pages called "Testing" and "Tested")
 * A list of categories (all pages within the categories will be edited)
 * A list of backlinks (pages edited are those linking to the ones in the list)

Configuration
This extension comes with an extra user right called " " 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. " ", add the following code to you " " file right after the lines added in step (3) of the installation process:

Alternatively you may grant the permission to an existing user group, e.g. " " by adding the following line:

Tips

 * Adding content to the top of the page
 * Detect any first character at the beginning of a page: → Search for:
 * Prepend my content to the char found a the beginning of a page including a line break: → Replace with:

Problèmes connus
However editing large numbers of pages will cause server timeouts due to PHP limits on script execution time. To work around this (and perhaps to get better feedback on progress) you can tick "execute in browser" to have the job tracking done on the client-side. This should mean timeouts are no longer a problem.
 * Server-side execution is the default as it (should) be faster.

In (at least) MediaWiki 1.31 and later, when the regex you provide is invalid, it will falsely indicate that all of the pages you selected for replacement are not found.
 * Page not found


 * Replacement in certain namespaces

If you would like to replace text only in certain namespaces, e.g. "File" and enter this with the page prefix option you will get the following note: "Error: The MediaWiki API returned the error code invalidtitle: Bad title "File:"."

Voir aussi

 * — A similar extension which however will not work if you set  for your wiki.