WikiFunctions.Tools.ApplyKeyWords C# (CSharp) Method

ApplyKeyWords() public static method

Applies the key words "%%title%%" etc. https://meta.wikimedia.org/wiki/Help:Magic_words
public static ApplyKeyWords ( string title, string text ) : string
title string
text string
return string
        public static string ApplyKeyWords(string title, string text)
        {
            return ApplyKeyWords(title, text, false);
        }

Same methods

Tools::ApplyKeyWords ( string title, string text, bool escape ) : string

Usage Example

 public DynamicRegexArticleComparer(string comparator, RegexOptions options)
 {
     Comparator = comparator;
     Options    = (options & ~RegexOptions.Compiled);
     // Create a regex to try it out. Throws an exception if there's a regex error
     new Regex(Tools.ApplyKeyWords("a", comparator), options);
 }
All Usage Examples Of WikiFunctions.Tools::ApplyKeyWords
Tools