Wikipedia:Bots/Requests for approval/BattyBot 52: Difference between revisions
GoingBatty (talk | contribs) simplified request |
GoingBatty (talk | contribs) →BattyBot 52: updated link to discussion |
||
Line 25: | Line 25: | ||
<!-- Bot tasks require consensus in order to be approved. Please list any relevant discussions here to indicate consensus for the task. If such input is not necessary (for instance, a task that is duplicating or closely matching an existing bot) leave this blank--> |
<!-- Bot tasks require consensus in order to be approved. Please list any relevant discussions here to indicate consensus for the task. If such input is not necessary (for instance, a task that is duplicating or closely matching an existing bot) leave this blank--> |
||
'''Links to relevant discussions (where appropriate):''' [[Wikipedia:Bot requests#Deadlink Fixing]] |
'''Links to relevant discussions (where appropriate):''' [[Wikipedia:Bot requests/Archive 67#Deadlink Fixing]] |
||
<!-- e.g. Continuous, daily, one time run, etc. --> |
<!-- e.g. Continuous, daily, one time run, etc. --> |
Revision as of 02:49, 25 January 2016
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/Archive 67#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:
Changeurl=http://ohsweb.ohiohistory.org/ohpo/nr/details.aspx?refnum=XXXXXXXX
tourl={{OHC NRHP|XXXXXXXX}}
- 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)
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)
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)