Content handlers

Jump to: navigation, search

Other languages:
български • ‎Deutsch • ‎English • ‎español • ‎français • ‎hrvatski • ‎italiano • ‎日本語 • ‎नेपाली • ‎Nederlands • ‎polski • ‎русский • ‎sicilianu • ‎удмурт • ‎中文
See also: Manual:ContentHandlerManual:ContentHandler, Help:ChangeContentModelHelp:ChangeContentModel

This page contains information about different content models and their implementations. It may be incomplete as any extension can add their own content model. Content model refers to the internal ID that represents that content type. The content format is the mime-type of ways the content can be represented (serialized) in.

Core content handlers[edit]

Content model Content format(s) Usage
css text/css For pages that contain CSS, like MediaWiki:Common.css
javascript text/javascript For pages that contain JavaScript, like MediaWiki:Common.js
json application/json A generic model that stores information in the JSON format. Many extension content handlers build on top of this.
text text/plain A generic model that displays plain text (no formatting). It is not intended to be used directly, but it can be.
wikitext text/x-wiki Wikitext! The default in most pages.

Extension content handlers[edit]

Content model Content format(s) Extension Usage
Campaign application/json UploadWizard (Campaigns)Extension:UploadWizard/Campaigns See Extension:UploadWizard/Campaigns
CollaborationHubContent application/json, text/x-collabkit CollaborationKitExtension:CollaborationKit Structured on-wiki project pages
CollaborationListContent application/json, text/x-collabkit CollaborationKitExtension:CollaborationKit Structured lists of wiki pages with annotations
flow-board application/json FlowExtension:Flow For Flow discussion pages
JsonBook application/json BookManagerv2Extension:BookManagerv2
JsonSchema application/json EventLoggingExtension:EventLogging See Extension:EventLogging/Guide#Creating a schema
proofread-page text/x-wiki (default), application/json ProofreadPageExtension:ProofreadPage
sanitized-css text/css TemplateStylesExtension:TemplateStyles For sanitized CSS intended for use with TemplateStyles
Scribunto text/plain ScribuntoExtension:Scribunto For Scribunto (Lua) modules in the Module namespace
SecurePoll application/json SecurePollExtension:SecurePoll For managing SecurePoll elections on-wiki
wikibase-item application/json (default), application/vnd.php.serialized Wikibase RepositoryExtension:Wikibase Repository See wikidata:Help:Items
wikibase-property application/json (default), application/vnd.php.serialized Wikibase RepositoryExtension:Wikibase Repository See wikidata:Help:Properties