WikiFunctions.Tools.RenameTemplateParameter C# (CSharp) Method

RenameTemplateParameter() public static method

Renames the given template named parameters in the input template
public static RenameTemplateParameter ( string templateCall, string>.Dictionary templateparams ) : string
templateCall string The template to update
templateparams string>.Dictionary Dictionary of old names, new names to apply
return string
        public static string RenameTemplateParameter(string templateCall, Dictionary<string, string> templateparams)
        {
            foreach(KeyValuePair<string, string> kvp in templateparams)
            {
                templateCall = RenameTemplateParameter(templateCall, kvp.Key, kvp.Value);
            }

            return templateCall;
        }

Same methods

Tools::RenameTemplateParameter ( string templateCall, List oldparameters, string newparameter ) : string
Tools::RenameTemplateParameter ( string templateCall, string oldparameter, string newparameter ) : string
Tools