Open main menu

Podręcznik:$wgContentHandlers

This page is a translated version of the page Manual:$wgContentHandlers and the translation is 23% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎čeština • ‎日本語
Wyjście: $wgContentHandlers
Mapping of content type handlers
Wprowadzono w wersji:1.21.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(Array of content model ID constants)
Domyślna wartość:(see below)

Szczegóły

Plugins for page content model handling. Each entry in the array maps a model ID constant to a PHP class name.

Domyślna wartość

Wersja MediaWiki: 1.31
$wgContentHandlers = [
	// the usual case
	CONTENT_MODEL_WIKITEXT => WikitextContentHandler::class,
	// dumb version, no syntax highlighting
	CONTENT_MODEL_JAVASCRIPT => JavaScriptContentHandler::class,
	// simple implementation, for use by extensions, etc.
	CONTENT_MODEL_JSON => JsonContentHandler::class,
	// dumb version, no syntax highlighting
	CONTENT_MODEL_CSS => CssContentHandler::class,
	// plain text, for use by extensions, etc.
	CONTENT_MODEL_TEXT => TextContentHandler::class,
];
Wersje MediaWiki: 1.24 – 1.30
$wgContentHandlers = [
	// the usual case
	CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
	// simple implementation, for use by extensions, etc.
	CONTENT_MODEL_JSON => 'JsonContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_CSS => 'CssContentHandler',
	// plain text, for use by extensions, etc.
	CONTENT_MODEL_TEXT => 'TextContentHandler',
];
Wersje MediaWiki: 1.21 – 1.23
$wgContentHandlers = array(
	// the usual case
	CONTENT_MODEL_WIKITEXT => 'WikitextContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_JAVASCRIPT => 'JavaScriptContentHandler',
	// dumb version, no syntax highlighting
	CONTENT_MODEL_CSS => 'CssContentHandler',
	// plain text, for use by extensions etc
	CONTENT_MODEL_TEXT => 'TextContentHandler',
);