手册:$wgContentHandlerTextFallback
Appearance
From mediawiki.org
This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 38% complete.
| 内容模型及处理器 |
|---|
| MediaWiki允许维基文本之外的页面内容类型。 提供对JavaScript、CSS、JSON和纯文本的内置支持。 扩展程序可以使用MediaWiki的内容处理器(ContentHandler)机制来添加新的内容模型,以便接受不同格式的文本,并控制这些页面如何渲染、存储和编辑。 |
| 关于 |
|
关于内容处理器 内容处理器及其实现 |
| 用法 |
|
更改页面的内容模型 更改命名空间的内容模型 使用内容处理器的扩展程序 添加带扩展名的内容模型 示例: |
| 配置设置 |
|
$wgContentHandlers $wgNamespaceContentModels $wgContentHandlerTextFallback $wgContentHandlerUseDB |
| 支持和发展 |
|
最新技术文档(Git) Phabricator |
| 查 · 论 · 编 |
此功能已在版本1.42.0被完全移除。
| 内容处理程序和存储: $wgContentHandlerTextFallback | |
|---|---|
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText() |
|
| 引进版本: | 1.21.0 |
| 弃用版本: | 1.37.0 (Gerrit change 691704; git #e34e93f2) |
| 移除版本: | 1.42.0 (Gerrit change 993049; git #ba1563a0) |
| 允许的值: | (允许的参数之一) |
| 默认值: | 'ignore' |
| 其他设置: 按首字母排序 | 按功能排序 | |
允许的参数
Depending on the value, the following action is taken when Content is not a TextContent object:
'ignore'-ContentHandler::getContentText()returns null'fail'- Throw an MWException'serialize'- Use the Content objectsserializemethod to get a string
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.21.0/zh
- MediaWiki configuration settings deprecated in version 1.37.0/zh
- MediaWiki configuration settings removed in version 1.42.0/zh
- MediaWiki deprecated or obsolete features/zh
- ContentHandler variables/zh