Operator: Kaldari (talk · contribs)
Time filed: 04:17, Wednesday January 12, 2011 (UTC)
Automatic or Manually assisted: Automatic (supervised)
Programming language(s): PHP
Source code available: botclasses.php + regex (/^((italictitle))\\n\\n/m)
Function overview: Remove extra newline after ((italictitle)) templates so that articles don't start with empty whitespace.
Links to relevant discussions (where appropriate):
Edit period(s): one time run
Number of pages affected: 2628
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): Y
Function details: A while back, someone added the ((italictitle)) template to the beginning of several categories of articles (probably with a bot), but also added two linebreaks after the template. Since the template itself doesn't display anything, this caused all of these articles to begin with empty whitespace (an example). At this point most of the articles have been fixed by hand, but the more obscure articles are still broken. This is essentially a cosmetic problem, but a very noticable and annoying one. I've fixed several dozen myself by hand over the last year as I ran into them, but I would really like to just run this bot and get it over with.
The only thing this script will do is look for articles that begin with the ((italictitle)) template followed by 2 newlines, and delete the 2nd newline. I would like to run it in batches so that I can manually review the edits (just to be paranoid).
What about >2 linebreaks, someone bypassing redirect to ((italic title)), or inserting whitespace? Or do you plan to only do this once for this specific case and not run this task afterwards? Any particular reason this is not exclusion compliant? — HELLKNOWZ ▎TALK 08:59, 15 January 2011 (UTC)[reply]
Anyway, Approved. for one time run. — HELLKNOWZ ▎TALK 21:10, 15 January 2011 (UTC)[reply]