GuildWiki talk:Bot tasks/Builds redlinks rewrite

For red links with less than X number of links to it, just unlink it and bold the name, not worth the effort of finding a corresponding PvX article. I propose the X threshold to be set around 10. -User:PanSola (talk to the ) 06:28, 30 April 2008 (UTC)
 * Good idea - there's certainly a point beyond which the work required to find the new name is much greater than the benefit gained from fixing the link. Personally I'd set the threshold at 5, though.  Oh, and I may have to get Wizerdboy to do the correspondence file - Ereanor seems to be otherwise occupied at the moment. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 23:33, 30 April 2008 (UTC)
 * Change edit summary to  imo. Also, I don't know perl so I cant tell if you're going through both anything starting with Build: and also starting with the usual Prof/Prof prefix or what. Also, some builds had Prof/Any which I don't think is included here. &mdash;♥ Jedi ♥ Rogue ♥  00:04, 1 May 2008 (UTC)
 * Hmm, does it really need the bot name in the summary? If you're looking at RC or at the article's history, the editor's name is always displayed on the same line anyway, so it seems redundant.
 * Yes, the line  strips "Build:" off the beginning of $title so that the following if statement can match against the de-namespaced article name.  The full name is retained in $full_title.
 * Said if statement checks for article titles beginning with "Team" or beginning with "X/Y", where X is a prof code, and Y is a prof code or "Any". (I changed this just now - the previous version would've only matched "X/" and ignored whatever followed the slash.) &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 01:56, 1 May 2008 (UTC)


 * I just made a new template, that should help with removing links without greatly changing the original presentation. -User:PanSola (talk to the [[Image:follower of Lyssa.png]]) 01:10, 1 May 2008 (UTC)
 * Ooooh.... I likes. That'll also let me get rid of a bunch of mostly useless images I've been placing on the non-orphaned page.  I'll have to modify this script to actually check the number of links in the Wantedpages list so it can use this below the threshold. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 01:56, 1 May 2008 (UTC)

Final version, 24 hour notice
I have uploaded a final version of the code, and I have a complete correspondence file thanks to Wizardboy777. The only unresolved issue from above is whether to include the bot name in the edit summary. If no other concerns are raised, I will begin running this bot at 11 AM CST (16:00 GMT) tomorrow. &mdash;Dr Ishmael 15:46, 1 May 2008 (UTC)
 * You don't need the bot name in the edit summery. GL&mdash;♥ Jedi ♥ Rogue ♥ 15:55, 1 May 2008 (UTC)
 * It's a bit later than my notice said, but I am now starting this bot. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 16:42, 2 May 2008 (UTC)
 * And the first few edits look perfect. Yay!  I go eat lunch. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 16:48, 2 May 2008 (UTC)

Finding a few little quirks as it goes along here. &mdash;Dr Ishmael 19:33, 2 May 2008 (UTC)
 * We have a spam filter (I had no clue... >.>), and some pages are not saving because of the spam filter. I am noting these in the script's logfile and will post them here when it finishes.
 * It can't match links that use mixed space/underscore, e.g. "Mo/A Blessed_Escaper". I don't know of an easy way to fix this, but as it seems to show up very rarely, I'll take care of them manually.
 * If the bot doesn't make any changes to a page, when it attempts to save it the wiki engine detects this and does not record an edit at all. This is a good thing.
 * If a page has links to more than one build, then the bot will edit it once for every build. I'd actually thought of this before but couldn't come up with a solution.
 * My find and replace can edit once for all builds Random Time  19:40, 2 May 2008 (UTC)

The bot finished the initial pass. I'm going to run it again in order to record the articles that resulted in a null edit, for whatever reason, so they can be fixed manually. Then I'll run it once more after Special:Wantedpages gets refreshed tomorrow afternoon. &mdash;Dr Ishmael 04:10, 3 May 2008 (UTC)