Operator: Primefac (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 22:22, Thursday, February 1, 2018 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): AWB
Source code available: WP:AWB
Function overview: Fix broken URLs
Links to relevant discussions (where appropriate): BOTREQ request
Edit period(s): one time run
Estimated number of pages affected: ~1500
Namespace(s): All
Exclusion compliant (Yes/No): Yes
Function details: www.cwgc.org has changed their URL parameters, leaving a lot of pages with broken links. Simple find/replace:
(?<!/)http://www.cwgc.org/search/casualty_details.aspx?Casualty=([0-9]+)
→ http://www.cwgc.org/find-war-dead/casualty/$1
(?<!/)http://www.cwgc.org/search/cemetery_details.aspx?cemetery=([0-9]+)&mode=1
→ http://www.cwgc.org/find-a-cemetery/cemetery/$1
|url=http://www.cwgc.org/find-war-dead/casualty/9898
? -- GreenC 04:10, 2 February 2018 (UTC)[reply]
|url=
might also have |deadurl=yes
and ideally it would be set back to |deadurl=no
but understandably that would be a more complex bot and not crucial. IABot might be able to detect and make the change not sure. @Cyberpower678: -- GreenC 04:55, 2 February 2018 (UTC)[reply]