Manual:$wgContentHandlerUseDB/zh
From Linux Web Expert
<translate> Content Models and Handlers</translate> |
---|
<translate> MediaWiki allows for page content types other than wikitext.</translate> <translate> It offers built-in support for JavaScript, CSS, JSON and plain text.</translate> <translate> Extensions can use MediaWiki's ContentHandler mechanism to add new content models for accepting different formats and controlling how they are rendered, stored and edited.</translate> |
File:OOjs UI icon information.svg <translate> About</translate> |
File:Wrench font awesome.svg <translate> Usage</translate> |
|
File:OOjs UI icon advanced.svg <translate> Configuration settings</translate> |
<translate> Support and development</translate>
|
· <span style="" title="<translate nowrap> Edit this template</translate>"><translate> e</translate> |
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.35.0</tvar>.</translate> |
<translate> Miscellaneous settings</translate>: $wgContentHandlerUseDB | |
---|---|
Whether to use the database fields introduced by the ContentHandler facility |
|
<translate> Introduced in version:</translate> | 1.21.0 |
<translate> Deprecated in version:</translate> | 1.34.0 (Gerrit change 535666; git #165d3cc5) |
<translate> Removed in version:</translate> | 1.35.0 (Gerrit change 589018; git #385ab887) |
<translate> Allowed values:</translate> | (布尔值) |
<translate> Default value:</translate> | true |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
详情
Set to false to disable use of the database fields introduced by the ContentHandler facility.
This way, the ContentHandler facility can be used without any additional information in the database.
A page's content model is then derived solely from the page's title.
This however means that changing a page's default model (e.g. using $wgNamespaceContentModels
) will break the page and/or make the content inaccessible.
This also means that pages can not be moved to a title that would default to a different content model.
Overall, set to false
, no database updates are needed, but content handling is less robust and less flexible.
Categories:
- Pages with broken file links
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.21.0/zh
- MediaWiki configuration settings deprecated in version 1.34.0/zh
- MediaWiki configuration settings removed in version 1.35.0/zh
- MediaWiki deprecated or obsolete features/zh
- Miscellaneous settings variables/zh