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

    Interface RawTemplateStaticPrivate

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

    This class is exclusive to Wikitext.parseTemplates. It represents a malformed {{template}} markup with an invalid title. For the class that represents a well-formed {{template}} markup, see ParsedTemplateStatic (and ParsedParserFunctionStatic).

    This class differs from ParsedTemplate in that:

    • It does not extend any class (that the user can access).
    • The title property is a string instead of an instance of Title.

    The constructor of this class is inaccessible, and instances can only be referenced in the result of parseTemplates.

    To check if an object is an instance of this class, use TemplateStatic.is.

    Important:

    The instance properties of this class are pseudo-read-only, in the sense that altering them does not affect the behaviour of Wikitext.modifyTemplates.

    interface RawTemplateStatic {
        new RawTemplateStatic(
            initializer: ParsedTemplateInitializer,
            options?: ParsedTemplateOptions,
        ): RawTemplate;
    }

    Hierarchy

    Index

    Constructors

    Constructors

    • Private

      Parameters

      • initializer: ParsedTemplateInitializer
      • Optionaloptions: ParsedTemplateOptions

      Returns RawTemplate