Manual:$wgDisabledActions/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.23.0</tvar>.</translate> |
<translate> Access</translate>: $wgDisabledActions | |
---|---|
一系列禁用的文章操作,例如查看,编辑,dublincore,删除等。 |
|
<translate> Introduced in version:</translate> | 1.4.1 |
<translate> Deprecated in version:</translate> | 1.18.0 (Gerrit change 157140; git #8779f4b5) |
<translate> Removed in version:</translate> | 1.23.0 (Gerrit change 109891; git #e7b85e72) |
<translate> Allowed values:</translate> | (-{zh-hans:字符串数组; zh-hant:字串陣列;}-) |
<translate> Default value:</translate> | array() |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.22</tvar> is unsupported version</translate>"><translate> ≤</translate> 1.22
MediaWiki版本: |
一系列禁用的文章操作,例如查看,编辑,dublincore,删除等。 参见手册:index.php的参数 。
从1.18版开始不推荐使用,并在1.23版中删除。
只需设置$wgActions ['action'] = false;
即可禁用操作。
将$wgDisabledActions转换为$wgActions的示例:
// 旧格式
$wgDisabledActions = array( 'raw', 'render', 'credits' );
// 新格式
$wgActions['raw'] = false;
$wgActions['render'] = false;
$wgActions['credits'] = false;
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.4.1/zh
- MediaWiki configuration settings deprecated in version 1.18.0/zh
- MediaWiki configuration settings removed in version 1.23.0/zh
- Pages with broken file links
- MediaWiki deprecated or obsolete features/zh
- Permission variables/zh