For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/extensions/templatedata/ApiTemplateDataRoot.md.
  • 中文
  • Interface: ApiTemplateDataRoot

    Defined in: extensions/templatedata.ts:119

    The stored TemplateData block of one template.

    Extended by

    Properties

    description?

    optional description?: ApiTemplateDataText | null

    Defined in: extensions/templatedata.ts:121

    One-line description of the template.


    format?

    optional format?: string & object | "block" | "inline" | null

    Defined in: extensions/templatedata.ts:146

    Preferred transclusion layout, or a FormatString.


    maps?

    optional maps?: unknown[] | Record<string, ApiTemplateDataMap>

    Defined in: extensions/templatedata.ts:143

    Consumer-specific maps, keyed by consumer identifier.


    paramOrder?

    optional paramOrder?: string[]

    Defined in: extensions/templatedata.ts:134

    Parameter order for display — a complete permutation of the keys of params; the validator rejects a partial or duplicated list.


    params?

    optional params?: unknown[] | Record<string, unknown[] | ApiTemplateDataParam>

    Defined in: extensions/templatedata.ts:128

    Parameter descriptions, keyed by parameter name. Full objects for pages with TemplateData; for notemplatedata pages only the names extracted from raw wikitext, each mapping to an empty entry.


    sets?

    optional sets?: ApiTemplateDataSet[]

    Defined in: extensions/templatedata.ts:140

    Parameter groups. An array of ApiTemplateDataSet (the stored shape; a map there is rejected with templatedata-invalid-type).