DotNetWikiBot Framework Documentation

The Site type exposes the following members.

Methods

  NameDescription
Public methodCorrectNsPrefix
Function changes default English namespace prefixes and local namespace aliases to canonical local prefixes (e.g. for German wiki-sites it changes "Category:..." to "Kategorie:...").
Public methodGetApiQueryResult
Gets and parses results of specified custom API query. Only some basic queries are supported and can be parsed automatically.
Public methodGetEnglishNsPrefix
Gets canonical default English prefix for specified namespace and colon. If default prefix is not found the main local prefix is returned.
Public methodGetNamespace
Identifies the namespace of the page.
Public methodGetNsPrefix
Gets main local prefix for specified namespace and colon.
Public methodGetNsPrefixes
Gets all names and aliases for specified namespace delimited by '|' character and escaped for use within Regex patterns.
Public methodGetWebPage
Gets the text of page from web.
Public methodGetWikimediaProjects
Gets the list of all WikiMedia Foundation wiki sites as listed here.
Public methodLoadMediawikiMessages
Gets MediaWiki system messages (those listed on "Special:Allmessages" page).
Public methodPostDataAndGetResult(String, String)
Posts specified string to requested resource and gets the result text.
Public methodPostDataAndGetResult(String, String, Boolean, Boolean)
Posts specified string to requested resource and gets the result text.
Public methodRemoveNsPrefix
Removes the namespace prefix from page title.
Public methodShowNamespaces
Shows names and integer keys of local and default namespaces and namespace aliases.

See Also