WikiCrawler/MediaWiki/WikiUtils.cs
/// <summary>
/// Adds the specified interwiki link to the page if it doesn't already exist.
/// </summary>
/// <returns>The new text.</returns>
Adds the specified interwiki link to the page if it doesn't already exist.
Adds the specified interwiki link to the page if it doesn ' t already exist .
public static string AddInterwiki(string wiki, string page, string text)
		{
			string link = "[[" + wiki + ":" + page + "]]";
			if (!text.Contains(link))
			{
				return text + "\n" + link;
			}
			else
			{
				return text;
			}
		}
public static string AddInterwiki ( string wiki , string page , string text ) { string link = " " + wiki + " " + page + " " ; if ( ! text . Contains ( link ) ) { return text + " \n " + link ; } else { return text ; } }
Adds the specified interwiki link to the page if it doesn't already exist.
Adds the specified interwiki link to the page if it doesn ' t already exist .
The new text.
The new text .
wiki
string
page
string
text
string