User:KitanBot/Completed Tasks/Wwclub

Task
There was a Bot Request to deprecate, et al, for Wwclub.

Issues

 * CrazyJack and Varghedin were edited manually. They had special characters that looked like &radic; and &ucirc; but their pages actually contained those characters and not the escape code.  I decided to just switch these manually to not have them wait.
 * So were Jeoh, who had Template:2500club instead of, and Hobinheim whose reference was in his bio template which Bot did not pick up.
 * Gryphon was unedited, and the only one left using the deprecated templates, because he is protected.
 * Bot had some special character issues besides the above. Fixed and 5 of the 7 special character issues were taken into account.  Seems like unicode needs to be considered.
 * Bot's retry page update, due to timeout etc, needs to be rewritten to be faster.
 * Bot had a few minor connection issues.
 * Bot's webcrawler had a minor issue that was taken care of.

Algorithm
namespace WikiUpdateAlgorithmWwclub {   public class WikiUpdateAlgorithmWwclub : IWikiUpdaterAlgorithm {       public string UpdateWiki(string CurrentWiki) {           //Objects Required string SearchWiki = CurrentWiki.ToLower; StringBuilder Current = new StringBuilder(CurrentWiki); Dictionary Replacements = new Dictionary;

//Primatives string[] Templates = { "", "", "", "", "", "", ""}; int Position; bool Continue;

foreach (string Template in Templates) {               Position = 0; Continue = true;

while (Continue) {                   Position = SearchWiki.IndexOf(Template, Position);

if (Position >= 0) {                       Replacements.Add(CurrentWiki.Substring(Position, Template.Length), ""); Position += Template.Length; }                   else {                       Continue = false; }               }

}

foreach (KeyValuePair Replacement in Replacements) {               Current.Replace(Replacement.Key, Replacement.Value); }

return Current.ToString; }       ///         /// Returns the update summary for the post action. ///        ///          public string UpdateSummary {           return "Updated page to use the Wwclub Template."; }   } }