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/core/ContentModel.md.
  • 中文
  • Type Alias: ContentModel

    ContentModel = "wikitext" | "javascript" | "css" | "json" | "text" | "Scribunto" | ContentModelExtension[keyof ContentModelExtension] | string & object

    Defined in: common/index.ts:96

    Content model of a page. Open union — known values are autocomplete sugar only; (string & {}) accepts any model a response may carry.

    Coverage policy: MediaWiki core models are listed directly; Scribunto is included as the one near-universal extension model; extension packs promote their own models by augmenting ContentModelExtension (e.g. MassMessageListContent from the MassMessage pack); consumers may augment the same interface for site-specific models registered through $wgContentHandlers.