Wikipedia:WikiProject Washington/Link repair

On 2010-05-04, the article for the U.S. state of Washington was moved to [[Washington (U.S. state) ]] and Washington was made a disambiguation page. This has caused most wikilinks to the state article to become ambiguous and need Disambiguation relinking. (In addition, there may be occasional links to Washington that were mislinked in the first place.)

Regular expressions
For people with Wikipedia bots or tools that use regular expressions, here are regex patterns that may help you match ambiguous links that refer to the state of Washington (or to some other specific Washington article for that matter). Each expression has the match pattern followed by the replacement pattern, and assumes the regex implementation uses \1 for backreferences in the expression itself, but $1 for backreferences/substitution in the replacement.

Bot and tool owners: Check these first before doing a mass run, just in case any of these have bugs. (Feedback on which have succeeded on a dry run/mass run may be helpful also.)

These are in the format:
 * Description

Based on explicit words that only mean the state

 * "" and the like &mdash; Note: Assumes Washington is a proper old link to the state; could also hit something like "state of Washington, D.C." or "state of Washington's mind" in a sentence in the unlikely event Washington was already improperly linked to begin with.


 * "" (be cautious, because "Washington State" is a disambiguation page, too; it can refer to the University)
 * &mdash; but not "Wash." because that could be "Wash., D.C." or "Geo. Wash." or something
 * &mdash; but not "Wash." because that could be "Wash., D.C." or "Geo. Wash." or something
 * &mdash; but not "Wash." because that could be "Wash., D.C." or "Geo. Wash." or something

Based on unambiguous locations

 * "" in various forms &mdash; Seattle is one of the U.S. cities not requiring a state name on Wikipedia
 * Locations linked as ""
 * Locations linked as ""
 * Locations linked as ""

Less-obvious location grouping

 * some western state &/and/or some direction in (common phrasing in geographic articles)

Template-focused fixups

 * disambiguate "Washington" in |*state*= parameters in templates, particular Geobox &mdash; one may want to manually make sure this is the result wanted for a given type of article