Operator: Josh Parris
Automatic or Manually assisted: Automatic
Programming language(s): Python, pywikipedia
Source code available: https://svn.toolserver.org/svnroot/josh/ (revision 6)
Function overview: Add checking of #section anchors for existence to existing bot
Links to relevant discussions (where appropriate): Guideline: Wikipedia:Linking#Checking links as they are created
Edit period(s): Continuous
Estimated number of pages affected: I'd guess less than 5% of new pages have #section links, and perhaps 20% of those would be wrong. At 1000/new pages a day, this would be about 10 edits. Hard figures show: 4% of new pages have #section links, and 32.5% of these are wrong; At 1000/new pages a day, this would be about 13 edits/day.
Exclusion compliant (Y/N): Y, standard in pywikipedia
Already has a bot flag (Y/N): Y
Function details: At the same time as checking new page's wiki markup for links to dab pages, the bot will also check for links containing a #section anchor to ensure the anchor appears on the target page. Normally this is a section heading, but there are techniques available (templates like {{ Anchor}} and raw HTML tags) which create an anchor without a ==section==; to detect these cases, the HTML of the target page will be downloaded and searched for these anchors.
![]() |
WildBot found one or more links in this article with broken #section; for more information on #section links see
Wikipedia:Linking#Piped links to sections of articles. The broken #section links found were: Broadway#Golden years, New York#Histery |
This is certainly a good idea. @ harej 16:22, 17 January 2010 (UTC) reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.
@
harej 03:30, 23 January 2010 (UTC)
reply
Coding... adding this functionality has demanded a substantial internal redesign for WildBot, as it's no longer making one edit to a talk page (at least, not internally). The hard figures above were produced by a very rough draft.
Josh Parris 22:20, 24 January 2010 (UTC)
reply
Doing... The trial has commenced, with some preliminary results are available in this
a seeded group of #section checking with nine hits. The rest of the results are going to be spread out though the normal run of WildBot. There's code to limit it to 50 #section edits per run.
Josh Parris 01:01, 26 January 2010 (UTC)
reply
Trial complete. I'll be posting links to the edits in a few hours
Josh Parris 02:45, 29 January 2010 (UTC)
reply
If I might add, this has been terribly buggy. I'm going to be keeping a very close eye on it in its early life, the multitude of problem that turned up during the trial haven't endeared the code to me. Josh Parris 11:48, 29 January 2010 (UTC) reply
Operator: Josh Parris
Automatic or Manually assisted: Automatic
Programming language(s): Python, pywikipedia
Source code available: https://svn.toolserver.org/svnroot/josh/ (revision 6)
Function overview: Add checking of #section anchors for existence to existing bot
Links to relevant discussions (where appropriate): Guideline: Wikipedia:Linking#Checking links as they are created
Edit period(s): Continuous
Estimated number of pages affected: I'd guess less than 5% of new pages have #section links, and perhaps 20% of those would be wrong. At 1000/new pages a day, this would be about 10 edits. Hard figures show: 4% of new pages have #section links, and 32.5% of these are wrong; At 1000/new pages a day, this would be about 13 edits/day.
Exclusion compliant (Y/N): Y, standard in pywikipedia
Already has a bot flag (Y/N): Y
Function details: At the same time as checking new page's wiki markup for links to dab pages, the bot will also check for links containing a #section anchor to ensure the anchor appears on the target page. Normally this is a section heading, but there are techniques available (templates like {{ Anchor}} and raw HTML tags) which create an anchor without a ==section==; to detect these cases, the HTML of the target page will be downloaded and searched for these anchors.
![]() |
WildBot found one or more links in this article with broken #section; for more information on #section links see
Wikipedia:Linking#Piped links to sections of articles. The broken #section links found were: Broadway#Golden years, New York#Histery |
This is certainly a good idea. @ harej 16:22, 17 January 2010 (UTC) reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.
@
harej 03:30, 23 January 2010 (UTC)
reply
Coding... adding this functionality has demanded a substantial internal redesign for WildBot, as it's no longer making one edit to a talk page (at least, not internally). The hard figures above were produced by a very rough draft.
Josh Parris 22:20, 24 January 2010 (UTC)
reply
Doing... The trial has commenced, with some preliminary results are available in this
a seeded group of #section checking with nine hits. The rest of the results are going to be spread out though the normal run of WildBot. There's code to limit it to 50 #section edits per run.
Josh Parris 01:01, 26 January 2010 (UTC)
reply
Trial complete. I'll be posting links to the edits in a few hours
Josh Parris 02:45, 29 January 2010 (UTC)
reply
If I might add, this has been terribly buggy. I'm going to be keeping a very close eye on it in its early life, the multitude of problem that turned up during the trial haven't endeared the code to me. Josh Parris 11:48, 29 January 2010 (UTC) reply