Jump to content

User:Lightmouse/AWB/scripts/dummy

From Wikipedia, the free encyclopedia

//

        WikiFunctions.Parse.HideText ht = new WikiFunctions.Parse.HideText(true, false, true);
        public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
        {
            Skip = false;
            Summary = "";



//Protect images, quotes etc by removing them
ArticleText = ht.HideMore(ArticleText);


//replace 'foo' with 'bar'

ArticleText=Regex.Replace(ArticleText, @"foo", "bar");


//Unprotect images, quotes etc (i.e. put them back)
return ht.AddBackMore(ArticleText);
//return ht.AddBack(ArticleText);
return ArticleText;
}
//