mwbot-ts - v1.2.7
    Preparing search index...

    Interface RawWikilinkStatic

    This interface defines the static members of the RawWikilink class. For instance members, see RawWikilink (defined separately due to TypeScript limitations).

    RawWikilink is a class that serves to parse [[wikilink]] markups with an invalid title into an object structure, which is accessible via Mwbot.RawWikilink. Note that wikilinks with a valid non-file title are treated differently by the Wikilink class, and those with a valid file title by the FileWikilink class.

    interface RawWikilinkStatic {
        new RawWikilinkStatic(title: string, display?: string): RawWikilink;
    }

    Hierarchy

    Index

    Constructors

    Constructors

    • Creates a new instance.

      The title property of this class is not validated as a Title instance. The class is to construct a wikilink object whose title has to include invalid characters, e.g., '[[{{{1}}}]]'. When objectifying a wikilink with a valid title, use Wikilink or FileWikilink instead.

      Usage:

      const rawlink = new mwbot.RawWikilink('{{{1}}}');
      

      Parameters

      • title: string

        The title of the page that the wikilink links to.

      • Optionaldisplay: string

        An optional display text for the wikilink.

      Returns RawWikilink