WikiFunctions.Parse.Parsers.GetCategorySort C# (CSharp) Method

GetCategorySort() public static method

Returns the sortkey used by all categories, if * all categories use the same sortkey * no {{DEFAULTSORT}} in article Otherwise returns null
public static GetCategorySort ( string articleText ) : string
articleText string The wiki text of the article.
return string
        public static string GetCategorySort(string articleText)
        {
            if (WikiRegexes.Defaultsort.Matches(articleText).Count == 1)
                return "";

            int matches;
            const string dummy = @"@@@@";

            string sort = GetCategorySort(articleText, dummy, out matches);

            return sort == dummy ? "" : sort;
        }

Same methods

Parsers::GetCategorySort ( string articleText, string articleTitle, int &matches ) : string
Parsers