手册:$wgContentHandlerTextFallback
Jump to navigation
Jump to search
内容模型及处理器 |
---|
MediaWiki允许维基文本之外的页面内容类型。 它提供对JavaScript、CSS、JSON和纯文本的内置支持。 扩展可以使用MediaWiki的内容模型处理器机制来减价新的内容模型,以便接受不同格式的文本,并控制它们如何渲染、存储以及编辑。 |
![]() |
![]() |
![]() |
支持和发展
|
Content handlers and storage: $wgContentHandlerTextFallback | |
---|---|
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText() |
|
引进版本: | 1.21.0 |
移除版本: | 仍在使用 |
允许的值: | (允许的参数之一) |
默认值: | '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 objectsserialize
method to get a string