////<summary>Removes <br> tags at the end of template parameter values. It works only for named parameters. CHECKWIKI error 59</summary>// run through all templates in articlepublicstringProcessArticle(stringArticleText,stringArticleTitle,intwikiNamespace,outstringSummary,outboolSkip){Skip=false;Summary="Removed break from end of template value";// for each template get all the named parametersforeach(MatchminWikiRegexes.NestedTemplates.Matches(ArticleText)){stringtemplate=m.Value;Dictionary<string,string>paramsFound=Tools.GetTemplateParameterValues(template);// assess each parameter in the template// remove <br> from endforeach(KeyValuePair<string,string>kpinparamsFound){stringparamvalue=kp.Value;paramvalue=Regex.Replace(paramvalue,@"( *< */? *[Bb][Rr] */? *> *)*$","");// if <br> removed, update template parameter value in template callif(!paramvalue.Equals(kp.Value))template=Tools.SetTemplateParameterValue(template,kp.Key,paramvalue);}// if template changed, update article textif(!template.Equals(m.Value))ArticleText=ArticleText.Replace(m.Value,template);}returnArticleText;}