MoveMaintenanceTags() public static method

Moves maintenance tags to the top of the article text. Deduplicates identical tags Does not move tags when only non-infobox templates are above the last tag For en-wiki apply this to zeroth section of article only
public static MoveMaintenanceTags ( string articleText ) : string
articleText string the article text
return string
        /// <summary>
        /// In the {{Multiple issues}} template renames unref to BLPunref for living person bio articles
        /// </summary>
        /// <param name="articleText">The page text</param>
        /// <returns>The updated page text</returns>
        private string MultipleIssuesBLPUnreferenced(string articleText)
        {
            articleText = MultipleIssuesDate.Replace(articleText, "");

            if (WikiRegexes.MultipleIssues.IsMatch(articleText))
            {
                string aiat = WikiRegexes.MultipleIssues.Match(articleText).Value;

                // unref to BLPunref for living person bio articles
                if (Tools.GetTemplateParameterValue(aiat, "unreferenced").Length > 0 && articleText.Contains(CategoryLivingPeople))
                {
                    articleText = articleText.Replace(aiat, Tools.RenameTemplateParameter(aiat, "unreferenced", "BLP unsourced"));
                }
                else if (Tools.GetTemplateParameterValue(aiat, "unref").Length > 0 && articleText.Contains(CategoryLivingPeople))
                {
                    articleText = articleText.Replace(aiat, Tools.RenameTemplateParameter(aiat, "unref", "BLP unsourced"));
                }

                string zerothSection = Tools.GetZerothSection(articleText);
                string restOfArticle = articleText.Substring(zerothSection.Length);
                articleText = MetaDataSorter.MoveMaintenanceTags(zerothSection) + restOfArticle;
            }

            return(articleText);
        }