Wikipedia:Tools/FindSmith

FindSmith is a browser-based semi-automated find-and-replace editor for Wikimedia wikis, inspired by AutoWikiBrowser. It builds a list of pages, applies your rules in order, and lets you review and save changes one page at a time. It does not run unattended edits.

Who can use FindSmith

Anyone with a Wikimedia account can sign in, build page lists and preview changes. To save edits on a wiki, you need the same approval as for AutoWikiBrowser (AWB) on that wiki: FindSmith uses AWB's list of approved users. If you can already use AWB on a wiki, you can save edits there with FindSmith; if you cannot, FindSmith lets you review pages but not save them. Each wiki keeps its own list, so approval on one wiki does not cover others. On the English Wikipedia, ask for access at Wikipedia:Requests for permissions/AutoWikiBrowser; on other wikis, see their AutoWikiBrowser page or ask their administrators.

Sign in

On the home page, select Log in with Wikimedia. FindSmith signs you in through Meta-Wiki; you do not need to sign in separately to each project wiki.

Create a project

A project is your own saved workspace for one task on one wiki, for example "fix a common typo" or "rename a template". It keeps the page list, the rules, the skip settings and your review progress, so you can stop and continue later. Only you can see your projects. You can have several projects, each for a different task or wiki.

Open Your Projects, enter a project name, choose a wiki from the shared list, and select Create project. A project uses one wiki at a time. You do not need to add a wiki that is already in the list.

If the wiki you need is missing, open Add Wiki and enter its Wikimedia domain, for example en.wikipedia.org. FindSmith checks that the wiki's Project:AutoWikiBrowser/CheckPageJSON page is protected, then loads the wiki's namespaces. The new wiki is available to all FindSmith users; it only needs to be added once. Then return to Your Projects to create your project.

Before saving, FindSmith checks that you are approved to use AWB on the project's wiki (see Who can use FindSmith). Technically, it checks whether your account appears in that wiki's enabledusers or enabledbots list. If access is missing or cannot be verified, you can still review pages, but you cannot save edits. The project page also shows the account's groups on the selected wiki. Follow that wiki's editing and automation policies before using FindSmith.

Choose pages

In Make list, open Page sources and filters. Add one or more sources and enter one value per line where an input is shown. Available sources are manual titles, category members, backlinks, template transclusions, wiki search, your watchlist, user contributions, links on a page, categories on a page, and redirects to a page. Select the namespaces to include and set Maximum pages (up to 500). Then select Build page list. FindSmith normalizes titles and removes duplicates.

The Page list shows each page's status: Pending (not yet saved or skipped), Saved, Skipped (with the reason), Missing (the page does not exist) or Invalid (the title is not valid on the wiki). Missing and invalid pages cannot be reviewed or saved. Click a title to inspect that page. You can reorder or remove entries, append titles, or clear the queue. List tools can filter by title or status, sort the list by title, compare the queue with pasted titles, and export a CSV file. Rebuilding the list starts a new review.

Define replacements

Select Add rule in the Rules tab. Rules run in the order shown; use the arrows to reorder them or the checkbox to disable one. Operations include find and replace, append or prepend wikitext, add/remove/replace a category, rename a template, and set/remove a template parameter.

For find and replace, enter Find and Replace with. Leave Replace with empty to remove matches. Choose literal text or Regex, case sensitivity, and first match or all matches. Regex rules also have multiline and dot-matches-newline options. Replacement rules can protect selected wikitext regions, such as comments, references, links, headings, and templates. FindSmith uses Rust regex syntax; expressions written for AutoWikiBrowser's .NET regex engine may need adjustment.

Give a rule a name and select Save to my rules to reuse it in other projects. Rule names do not have to be unique. Add to project copies a saved rule into the current project.

Before building a list, you can enter a title in the Preview panel to test the current rules on one page without editing Wikimedia.

Review and save

For each page, compare the proposed text with the current revision in the side-by-side diff. The Preview switch asks the selected wiki to render the proposed wikitext. Select Refresh preview after changing the text. Open Proposed wikitext to edit it manually. The diff updates shortly after you stop typing, and saving waits for it; if the update fails, select Recompute diff to try again. If there is no change, FindSmith shows No diff and disables saving.

Save and next publishes the change and moves to the next page; see below. Skip records a skip and moves on. Previous returns to an earlier page. Your progress is kept, so you can close FindSmith and come back later. Use Ctrl+Enter or ⌘+Enter for Save and next and, when no input has focus, P for Previous or S for Skip. Skip pages without changes can inspect pages ahead of review and skip those without changes.

To publish a reviewed change, acknowledge the wiki's editing policies once for the review and select Save and next. FindSmith suggests an edit summary that lists each rule that changed the page, in order, with its first actual change and the number of changes, for example Autoreplacement: colour -> color (2), Added category New. Rules that do not fit in 500 characters are left out. When only one section changed, the summary starts with a link to it, such as /* History */; category rules and appended or prepended text get no section link. If no rule changed the page, or no rule's description fits, it uses Autoreplacement instead. You can edit the summary text, but FindSmith always appends using toolforge:findsmith and does not let you edit that attribution. To use the same summary on every page of the queue, select Use this summary for all pages; edits to the field then apply to all pages, and Use suggested summaries returns to the summary FindSmith suggests for each page. Select Minor edit only when allowed. Bot edit is available to accounts in the bot or flood group that also have the bot right; the backend checks this again when saving. FindSmith checks current edit permissions and the page revision before submission. If the page has changed, reload and review it again rather than saving an outdated version.

The Status tab shows review progress and decision history, including saved revisions and skip reasons. You can click a skipped page, edit it, and save it; FindSmith still shows why it was skipped. After saving, FindSmith selects the next pending page. After changing rules, select Apply rules to review the page list with the updated rules.

Limitations

FindSmith supports a Wikimedia wiki only after someone adds it to the shared list. To add it, the wiki must have a Project:AutoWikiBrowser/CheckPageJSON page protected from editing by at least non-autoconfirmed users. Its text must be JSON with enabledusers and enabledbots lists. To save edits, your account must appear in one of those lists, which means you are approved to use AWB on that wiki, and have the required edit rights on that wiki. You can still review pages if your account is not listed, but you cannot save them. There is no unattended editing; each Save and next submits at most one reviewed page. Choose the interface language with the Language selector at the bottom of the page; FindSmith remembers the choice for your account. Translations are made on translatewiki.net.