Click or drag to resize

WikiLink Class

This is preliminary documentation and is subject to change.

An immutable representation of a MediaWiki link (local or interwiki).
Inheritance Hierarchy
SystemObject
  WikiClientLibraryWikiLink

Namespace: WikiClientLibrary
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class WikiLink

The WikiLink type exposes the following members.

Properties
 NameDescription
Public propertyAnchor For wikilink expression in the form [[target|anchor]], excluding the square brackets, gets the actual displayed text (anchor) for the link.
Public propertyDisplayText Gets the actual link text that should be shown.
Public propertyFullTitle Gets the full title of the target page. (Namespace:Title)
Public propertyFullTitleAndSection Gets the full page title and section part of the wikilink. (Namespace:Title#Section)
Public propertyInterwikiPrefix Gets interwiki prefix of the wikilink.
Public propertyNamespace Gets the namespace information.
Public propertyNamespaceName Gets the namespace name.
Public propertyOriginalText Gets the original wikitext expression that was passed to the Parse or ParseAsync methods.
Public propertySection Gets the section title of a section on the page. (Section)
Public propertySite The original wiki site provided to resolve this wikilink.
Public propertyTarget Gets the full wikilink target expression. (interwiki:Namespace:Title#Section)
Public propertyTargetSite Gets the wiki site containing the specified page title, if such information is available.
Public propertyTargetUrl Gets the full URL of the wikilink target.
Public propertyTitle Gets the target page title, excluding all the prefix and section. (Title)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberNormalizeWikiLink(WikiSite, String) Uses this class to normalize a specific wikilink expression.
Public methodStatic memberNormalizeWikiLink(WikiSite, String, Int32) Uses this class to normalize a specific wikilink expression.
Public methodStatic memberParse(WikiSite, String) Parses a new instance using specified Wikilink expression.
Public methodStatic memberParse(WikiSite, String, Int32) Parses a new instance using specified Wikilink expression.
Public methodStatic memberParseAsync(IWikiFamily, String) Parses a new instance from the a Wikilink expression on the specified Wiki family. This overload resolves the target interwiki site with the interwiki prefixes provided instance, and requires text to have interwiki prefix.
Public methodStatic memberParseAsync(IWikiFamily, String, Int32) Parses a new instance from the a Wikilink expression on the specified Wiki family. This overload resolves the target interwiki site with the interwiki prefixes provided instance, and requires text to have interwiki prefix.
Public methodStatic memberParseAsync(WikiSite, IWikiFamily, String) Parses a new instance from the a Wikilink expression on the specified Wiki site and Wiki family. This overload also resolves the target interwiki site with the interwiki prefixes provided instance.
Public methodStatic memberParseAsync(WikiSite, IWikiFamily, String, Int32) Parses a new instance from the a Wikilink expression on the specified Wiki site and Wiki family. This overload also resolves the target interwiki site with the interwiki prefixes provided instance.
Public methodToString Gets the formatted expression of the wikilink.
(Overrides ObjectToString)
Public methodStatic memberTryParse(WikiSite, String) Tries to parse a new instance using specified Wikilink expression.
Public methodStatic memberTryParse(WikiSite, String, Int32) Tries to parse a new instance using specified Wikilink expression.
Public methodStatic memberTryParseAsync(IWikiFamily, String) Tries to parse a new instance from the a Wikilink expression on the specified Wiki family. This overload resolves the target interwiki site with the interwiki prefixes provided instance, and requires text to have interwiki prefix.
Public methodStatic memberTryParseAsync(IWikiFamily, String, Int32) Tries to parse a new instance from the a Wikilink expression on the specified Wiki family. This overload resolves the target interwiki site with the interwiki prefixes provided instance, and requires text to have interwiki prefix.
Public methodStatic memberTryParseAsync(WikiSite, IWikiFamily, String) Parses a new instance from the a Wikilink expression on the specified Wiki site and Wiki family. This overload also resolves the target interwiki site with the interwiki prefixes provided instance.
Public methodStatic memberTryParseAsync(WikiSite, IWikiFamily, String, Int32) Parses a new instance from the a Wikilink expression on the specified Wiki site and Wiki family. This overload also resolves the target interwiki site with the interwiki prefixes provided instance.
Top
Fields
 NameDescription
Public fieldStatic memberIllegalTitlesPattern A regular expression used to match illegal titles.
Top
Remarks
A WikiLink expression is in the form of interwiki:Namespace:Title#section|anchor.
See Also