User:Makecat/AWB/DatingTags
外观
< User:Makecat | AWB
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?[Ww]ikify\s?\}\}", "{{subst:dated|Wikify}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Oo]rphan\s?\}\}", "{{subst:dated|Orphan}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Uu]ncategorized\s?\}\}", "{{subst:dated|Uncategorized}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Cc]leanup\s?\}\}", "{{subst:dated|Cleanup}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Uu]nreferenced(sect)?\s?\}\}", "{{subst:dated|Unreferenced$1}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Rr]efimprove(sect)?\s?\}\}", "{{subst:dated|Refimprove$1}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Nn]otability\s?\}\}", "{{subst:dated|Notability}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Ee]xpand\s?\}\}", "{{subst:dated|Expand}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Oo]riginal research\s?\}\}", "{{subst:dated|Original research}}");
ArticleText = Regex.Replace(ArticleText, @"\{\{\s?[Dd]isputed\s?\}\}", "{{subst:dated|Disputed}}");
return ht.AddBack(ArticleText);
return ArticleText;
}