Interface TemplateData

Represents a template in a data-mw attribute.

interface TemplateData {
    template: {
        i: number;
        params: {
            [key: string]: {
                wt: string;
            };
        };
        target: {
            href: string;
            wt: string;
        };
    };
}

Properties

Properties

template: {
    i: number;
    params: {
        [key: string]: {
            wt: string;
        };
    };
    target: {
        href: string;
        wt: string;
    };
}

Information on the template.

Type declaration

  • i: number

    The identifier of this template within the MediaWikiData.

  • params: {
        [key: string]: {
            wt: string;
        };
    }

    The properties of this template.

    • [key: string]: {
          wt: string;
      }
      • wt: string
  • target: {
        href: string;
        wt: string;
    }

    The template target.

    • href: string

      A link to the template relative to $wgArticlePath.

    • wt: string

      The wikitext of the template.