MakeHumanCatKey() 공개 정적인 메소드

Returns Category key from article name e.g. "David Smith" returns "Smith, David". special case: "John Doe, Jr." turns into "Doe, Jonn Jr." https://en.wikipedia.org/wiki/Wikipedia:Categorization_of_people
public static MakeHumanCatKey ( string name, string articletext ) : string
name string
articletext string
리턴 string
예제 #1
0
        /// <summary>
        /// Applies the key words "%%title%%" etc.
        /// </summary>
        public static string ApplyKeyWords(string Title, string Text)
        {
            Text = Text.Replace("%%title%%", Title);
            Text = Text.Replace("%%key%%", Tools.MakeHumanCatKey(Title));

            Text = Text.Replace("%%titlename%%", Tools.RemoveNamespaceString(Title));
            Text = Text.Replace("%%namespace%%", Tools.GetNamespaceString(Title));

            return(Text);
        }