跳至內容

用戶:Makecat/AWB/sectionname

維基百科,自由的百科全書
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 = "";
 
ArticleText = ht.Hide(ArticleText);

ArticleText=Regex.Replace(ArticleText, @"==\s?References?\s?==", "== 参考资料 ==");
ArticleText=Regex.Replace(ArticleText, @"==\s?External links?\s?==", "== 外部链接 ==");
ArticleText=Regex.Replace(ArticleText, @"==\s?See also\s?==", "== 参见 ==");
 
            return ht.AddBack(ArticleText);
 
            return ArticleText;
        }