WikiFunctions.Tools.GetTemplateName C# (CSharp) Method

GetTemplateName() public static method

Returns the name of the input template, excess whitespace removed, underscores replaced with spaces
public static GetTemplateName ( string templateCall ) : string
templateCall string the template call
return string
        public static string GetTemplateName(string templateCall)
        {
            string name = WikiRegexes.TemplateNameRegex.Match(templateCall).Groups[1].Value;
            return Regex.Replace(name, @"[\s_]+", " ").Trim();
        }
Tools