WikiCrawler/MediaWiki/WikiUtils.cs
/// <summary>
/// Returns true if the specified page text contains the specified template.
/// </summary>\
Returns true if the specified page text contains the specified template.
Returns true if the specified page text contains the specified template .
public static bool HasTemplate(string text, string template)
		{
			return text.Contains("{{" + template.ToLowerFirst()) || text.Contains("{{" + template.ToUpperFirst());
		}
public static bool HasTemplate ( string text , string template ) { return text . Contains ( " " + template . ToLowerFirst ( ) ) || text . Contains ( " " + template . ToUpperFirst ( ) ) ; }
Returns true if the specified page text contains the specified template.
Returns true if the specified page text contains the specified template .
// template names are case-insensitive on the first letter
text
string
template
string