Wikipedia:Bots/Requests for approval/H3llBot 10

H3llBot 10

[[User:H3llBot|H3llBot]] 10

{{Newbot|H3llBot|10}}

Operator: {{User|H3llkn0wz}}

Time filed: 11:19, Thursday January 5, 2012 (UTC)

Automatic or Manual: Automatic (though if there's very few I'll probably check them all anyway)

Programming language(s): C#

Source code available: No

Function overview: Convert bare text inline problem tags into their respective templates, such as [citation needed] → {{Citation needed}}

Links to relevant discussions (where appropriate): very old BOTREQ, should be non-controversial

Edit period(s): when bot is running and comes across the issue

Estimated number of pages affected: no idea, I think very few, may be a dozen or so per 100k pages

Exclusion compliant (Y/N): Y

Already has a bot flag (Y/N): Y

Function details:

The match syntax is one of:

  • TEXT citation needed → {{Citation needed}}
  • [TEXT] [citation needed] → {{Citation needed}}
  • (TEXT) (citation needed) → {{Citation needed}}
  • [TEXT] (or any other italic/bold combo) [citation needed] → {{Citation needed}}
  • [TEXT] (or any other italic/bold combo) [citation needed] → {{Citation needed}}
  • {{Sup|[TEXT]}} {{Sup|[citation needed]}} → {{Citation needed}}
  • TEXT citation needed → {{Citation needed}}
  • [TEXT] [citation needed] → {{Citation needed}}
  • [TEXT] [citation needed] → {{Citation needed}}
  • [TEXT] [citation needed] → {{Citation needed}}
  • and similar mix&match from above

Additionally it will fix (double) superscripted inline problem tags:

  • {{TEMPLATE|date=November 2008}} {{Citation needed|date=November 2008}} → {{Citation needed}}
  • [{{TEMPLATE|date=November 2008}}] [{{Citation needed|date=November 2008}}] → {{Citation needed}}
  • [{{TEMPLATE|date=November 2008|reason=Whatever}}] [{{Citation needed|date=November 2008|reason=Whatever}}] → {{Citation needed|date=November 2008|reason=Whatever}}

Note that all new templates or previously undated ones will be dated with current month and year.

In the above TEXT, TEMPLATE, and LINK are one of the entries in the full list below:

=Discussion=

{{BotTrial}} --Chris 17:11, 8 January 2012 (UTC)

:Here's a sandbox example with different borked up syntaxes: [http://en.wikipedia.org/w/index.php?title=User:H3llBot/Sandbox&diff=next&oldid=470410188]. —  HELLKNOWZ  ▎TALK 10:17, 9 January 2012 (UTC)

:Here are some edits on the pages I had stored: [http://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=20120108185600&contribs=user&target=H3llBot&limit=11 contribs]. A couple edits made double tags because there were misformatted tags present; I'll tell it to not add same tags twice somehow. Anywho, the edits don't happen very often so it'll probably be a while until I get more. —  HELLKNOWZ  ▎TALK 19:14, 8 January 2012 (UTC)

:Three more [http://en.wikipedia.org/w/index.php?title=Antichrist&diff=prev&oldid=472858400][http://en.wikipedia.org/w/index.php?title=Mercury%28I%29_bromide&diff=prev&oldid=472844575][http://en.wikipedia.org/w/index.php?title=Maria_Beatriz_del_Rosario_Arroyo&diff=prev&oldid=472839484]. —  HELLKNOWZ  ▎TALK 14:09, 24 January 2012 (UTC)

::Have you fixed the double tag problem evidenced [http://en.wikipedia.org/w/index.php?title=STOIC&diff=prev&oldid=470296433 here], [http://en.wikipedia.org/w/index.php?title=Industrial_Canal&diff=prev&oldid=470296643 here], and [http://en.wikipedia.org/w/index.php?title=Ward_Churchill_September_11_attacks_essay_controversy&diff=prev&oldid=470296672 here]? (The last one was not caught.) If so, I'll approve. — madman 06:27, 4 February 2012 (UTC)

::{{tlx|OperatorAssistanceNeeded|D}} Ready to approve as soon as you get to madman's questions. MBisanz talk 15:24, 6 February 2012 (UTC)

:Sorry, yes, there's [http://en.wikipedia.org/w/index.php?title=User:H3llBot/Sandbox&oldid=474940234 lots of different cases], so I'm coding it up slowly. General cases work, but I realized I need to know all tags and redirects just to check for duplicates. Real life's a bit in the way, so hopefully it's OK the BRFA lingers a bit. I don't want to claim it works 100% before I know it works 99.9%. —  HELLKNOWZ  ▎TALK 16:29, 6 February 2012 (UTC)

::No problem. I'm going to switch this to {{BotExtendedTrial}} so I can remember why it's hanging around (my memory's not the best). Cheers! — madman 19:01, 6 February 2012 (UTC)

:Question from entirely unqualified editor: will this lead to the new citation needed tag being dated February 2012? Is so, are we happy to accept the dating of new tags with the current date? Grandiose (me, talk, contribs) 16:53, 14 February 2012 (UTC)

::I don't think it's a big deal. The alternative is that I leave them undated. There is no easy, reliable way to parse the page's history, though that could be possible. If they are left undated, another bot will date them very shortly afterwards anyway. —  HELLKNOWZ  ▎TALK 17:29, 14 February 2012 (UTC)

::Yes, it will just create a bulge in the backlog that will go down over time. MBisanz talk 22:17, 14 February 2012 (UTC)

:::And a rather tiny bulge, given how rare these cases are. In fact, I'm pretty confident no one will ever notice. :) —  HELLKNOWZ  ▎TALK 22:18, 14 February 2012 (UTC)

:As mentioned here, and the corresponding bot request, could this bot expand to include "(citation needed)" (and perhaps some other variations similar to what you've mentioned above, like "(citations needed)", "(citation needed)" and "(citation needed)", though, compared to the bare form, I don't know how common these are). Mark Hurd (talk) 02:35, 18 February 2012 (UTC)

:I think it more or less catches everything from those syntaxes now, including duplicates: [http://en.wikipedia.org/w/index.php?title=User%3AH3llBot%2FSandbox&action=view&diff=478059380]. Now, just links and plain text as described above. —  HELLKNOWZ  ▎TALK 12:28, 21 February 2012 (UTC)

::Just my 2¢: Leaving the templates un-dated would be silly, because User:Smackbot goes around adding dates to those types of templates anyways. In response to Mark Hurd's comment, there aren't many instances of "(citation needed)" or its variants. Grep says there's only 150.

::--Tim1357 talk

:Any update Hell? MBisanz talk 03:25, 8 March 2012 (UTC)

::Ha-ha, what do you mean? I'm going for the longest open BRFA here! But I do need to simplify my uber-parser, which is getting so inefficient I can't run it anymore without miles of hacky code. —  HELLKNOWZ  ▎TALK 09:34, 8 March 2012 (UTC)

:::Haha. Noted. Let us know when you are streamlined. MBisanz talk 02:48, 14 March 2012 (UTC)

::::How's development progressing? Josh Parris 02:55, 29 March 2012 (UTC)

:::::I semi-fixed the parser, but I'm trying to get the main archiving task working again. This is stalling other work. I do have a feeling though that additional processing time of this task is not worth it and I should do more meaningful stuff... —  HELLKNOWZ  ▎TALK 07:56, 29 March 2012 (UTC)

You can mark this as withdrawn. Messing with syntax is too messy and the main task is taking all the time. Plus real life. —  HELLKNOWZ  ▎TALK 12:49, 12 April 2012 (UTC)

{{BotWithdrawn}}

:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.