PluginCheckTemplateCall() private method

private PluginCheckTemplateCall ( string templateCall ) : void
templateCall string
return void
示例#1
0
        protected string MatchEvaluator(Match match)
        {
            if (match.Groups["parm"].Captures.Count != match.Groups["val"].Captures.Count)
            {
                Template.BadTemplate = true;
            }
            else
            {
                Template.FoundTemplate = true;
                TheArticle.PluginCheckTemplateCall(match.Groups["tl"].Value, PluginShortName);

                if (HasAlternateNames)
                {
                    PluginCheckTemplateName(match.Groups["tlname"].Value);
                }
                //.Trim)

                if (match.Groups["parm"].Captures.Count > 0)
                {
                    for (int i = 0; i <= match.Groups["parm"].Captures.Count - 1; i++)
                    {
                        string value = match.Groups["val"].Captures[i].Value;
                        string parm  = match.Groups["parm"].Captures[i].Value;

                        Template.AddTemplateParmFromExistingTemplate(parm, value);
                    }
                }
            }

            return(Constants.TemplaterPlaceholder);
        }