public static UnknownTemplateParameters ( string templatecall, List |
||
templatecall | string | The template call to check |
knownParameters | List |
List of known template parameters |
return | List |
public static List<string> UnknownTemplateParameters(string templatecall, List<string> knownParameters)
{
List<string> Unknowns = new List<string>();
string pipecleanedtemplate = PipeCleanedTemplate(templatecall);
foreach(Match m in anyParam.Matches(pipecleanedtemplate))
{
string paramName = m.Groups[1].Value.Trim();
if (!knownParameters.Contains(paramName))
Unknowns.Add(paramName);
}
return Unknowns;
}