#TemplateData
#Interfaces
| Interface | Description |
|---|---|
| ApiTemplateDataPage | One entry of pages, keyed by page id. |
| ApiTemplateDataParam | One parameter description (params.<name>). |
| ApiTemplateDataResponse | Response of action=templatedata, which returns no continuation cursors: every requested page arrives in a single reply. |
| ApiTemplateDataRoot | The stored TemplateData block of one template. |
| ApiTemplateDataSet | A group of parameters presented together (sets[]). |
#Type Aliases
| Type Alias | Description |
|---|---|
| ApiTemplateDataMap | A consumer-specific mapping (maps.<consumer>). Keys are consumer-defined and not validated; each value references parameters of the template — a parameter name, a list of names, or a list of lists of names. |
| ApiTemplateDataText | InterfaceText as served: a map keyed by language code ({"en": "Nowrap?"}). A plain string only when the request passes lang, which resolves each text to a single language (requested language, then its fallbacks, then the site content language). |
| TemplateDataType | Parameter type a template expects, as accepted by the validator (content, line, number, boolean, string, date, unbalanced-wikitext, unknown, url, wiki-page-name, wiki-user-name, wiki-file-name, wiki-template-name). Hook handlers may register additional names, so consumers must tolerate values outside this list. |