Manual:$wgNamespaceContentModels

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Namespaces: $wgNamespaceContentModels
Content types defined for a given namespace
Introduced in version: 1.21.0
Removed in version: still in use
Allowed values:
Default value: array()
Other settings: Alphabetical | By function

Details[edit]

Associative array mapping namespace IDs to the name of the content model pages in that namespace should have by default (use the CONTENT_MODEL_XXX constants). If no special content type is defined for a given namespace, pages in that namespace will use the CONTENT_MODEL_WIKITEXT (except for the special case of JavaScript and CSS pages).

Example[edit]

  • TODO