publicstringProcessArticle(stringArticleText,stringArticleTitle,intwikiNamespace,outstringSummary,outboolSkip){Skip=false;Summary="";//-----//This custom module is designed to remove the deprecated {{Persondata}} template//when the ONLY value in the {{Persondata}} parameters is the NAME//-----//Remove Persondata commentArticleText=Regex.Replace(ArticleText,@"(?i) *<!-- Metadata: see \[\[Wikipedia:Persondata\]\]\.? -->","");//Remove Persondata with only NAMEArticleText=Regex.Replace(ArticleText,@"(?i){{Persondata\s*\n\s*\|\s*NAME\s*=[\w\.,\-\s]*\n+(?:\s*\|\s*ALTERNATIVE NAMES\s*=\s*\n+)?\s*\|\s*SHORT DESCRIPTION\s*=\s*\n+\s*\|\s*DATE OF BIRTH\s*=\s*\n+\s*\|\s*PLACE OF BIRTH\s*=\s*\n+\s*\|\s*DATE OF DEATH\s*=\s*\n+\s*\|\s*PLACE OF DEATH\s*=\s*\n?}}","",RegexOptions.Singleline);//Remove empty PersondataArticleText=Regex.Replace(ArticleText,@"(?i){{Persondata *}}","");returnArticleText;}