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

    Interface NewTemplateParameter

    Object that is used to initialize template parameters in TemplateStatic.constructor.

    interface NewTemplateParameter {
        key?: string;
        value: string;
    }
    Index

    Properties

    Properties

    key?: string

    The key of the new template parameter. This is automatically trimmed of leading and trailing whitespace.

    If omitted, a numeric key is internally assigned.

    value: string

    The value of the new template parameter.

    If the parameter has a name (i.e., key is set), its value will be trimmed of leading and trailing whitespace.

    See https://en.wikipedia.org/wiki/Help:Template#Whitespace_handling.