Jump to content

Wikipedia:Bots/Requests for approval/BattyBot 52

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by GoingBatty (talk | contribs) at 01:37, 25 January 2016 (simplified request). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Operator: GoingBatty (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 00:54, Monday, January 25, 2016 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): AutoWikiBrowser

Source code available: AWB

Function overview: Replace dead links to the Ohio Historical Society

Links to relevant discussions (where appropriate): Wikipedia:Bot requests#Deadlink Fixing

Edit period(s): One time run, unless requested otherwise

Estimated number of pages affected: 488 460

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): Yes

Function details: Replace dead links with {{OHC NRHP}} as follows:

  1. Change url=http://ohsweb.ohiohistory.org/ohpo/nr/details.aspx?refnum=XXXXXXXX to url={{OHC NRHP|XXXXXXXX}}
  2. Change [http://ohsweb.ohiohistory.org/ohpo/nr/details.aspx?refnum=XXXXXXXX Words] to {{OHC NRHP|XXXXXXXX|Words}}

Perform and AWB general fixes as well. GoingBatty (talk) 00:54, 25 January 2016 (UTC)[reply]

Discussion

Thanks! For future reference: the Ohio Historical Society changed its URLs some time back, from one systematic format to another, thus breaking all our links to their pages. By replacing the links with {{OHC NRHP}}, the bot will presumably make us largely immune to future activities of this sort: the template transcludes everything of the URL except the unique identifier at the end, so as long as they use URLs that are identical except for this unique identifier, a future URL change will be fixed by a single edit to the template. Nyttend (talk) 01:00, 25 January 2016 (UTC)[reply]

Since {{OHC NRHP}} doesn't work inside citation templates, I have changed this request to exclude citation templates. GoingBatty (talk) 01:37, 25 January 2016 (UTC)[reply]