> 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.

# Interface: ApiExpandTemplatesResult

Defined in: [core/expandtemplates.ts:36](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L36)

The `expandtemplates` object of a successful response.

## Properties

### categories?

> `optional` **categories?**: [`ApiExpandTemplatesCategory`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesCategory.md)\[]

Defined in: [core/expandtemplates.ts:53](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L53)

Categories the output would add. `prop=categories`; absent when the output adds none.

***

### encodedjsconfigvars?

> `optional` **encodedjsconfigvars?**: `string`

Defined in: [core/expandtemplates.ts:68](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L68)

The JS config variables serialized as a JSON string. `prop=encodedjsconfigvars`.

***

### jsconfigvars?

> `optional` **jsconfigvars?**: `unknown`

Defined in: [core/expandtemplates.ts:65](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L65)

Parser-magic JS config variables. `prop=jsconfigvars`.

***

### modules?

> `optional` **modules?**: `string`\[]

Defined in: [core/expandtemplates.ts:56](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L56)

ResourceLoader modules the output depends on. `prop=modules`.

***

### modulescripts?

> `optional` **modulescripts?**: `never`\[]

Defined in: [core/expandtemplates.ts:59](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L59)

Always empty; deprecated. Emitted with `prop=modules`.

***

### modulestyles?

> `optional` **modulestyles?**: `string`\[]

Defined in: [core/expandtemplates.ts:62](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L62)

ResourceLoader module styles the output depends on. `prop=modules`.

***

### parsetree?

> `optional` **parsetree?**: `string`

Defined in: [core/expandtemplates.ts:41](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L41)

XML parse tree of the input wikitext. `prop=parsetree`.

***

### properties?

> `optional` **properties?**: [`ApiExpandTemplatesProperties`](https://types-mediawiki-response.pages.dev/zh/api/core/ApiExpandTemplatesProperties.md)

Defined in: [core/expandtemplates.ts:50](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L50)

Page settings parsed from the output. `prop=properties`.

***

### ttl?

> `optional` **ttl?**: `number`

Defined in: [core/expandtemplates.ts:47](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L47)

Cache TTL in seconds; `prop=ttl`, present only when the frame carries one.

***

### volatile?

> `optional` **volatile?**: `boolean`

Defined in: [core/expandtemplates.ts:44](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L44)

Whether the result varies per-user / request. `prop=volatile`; a real `boolean`.

***

### wikitext?

> `optional` **wikitext?**: `string`

Defined in: [core/expandtemplates.ts:38](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/expandtemplates.ts#L38)

The expanded wikitext. `prop=wikitext`.
