手册:$wgNonincludableNamespaces
Jump to navigation
Jump to search
名字空间: $wgNonincludableNamespaces | |
---|---|
使用此选项可拒绝包含来自特定名字空间的页面。 |
|
引进版本: | 1.10.0 (r19934) |
移除版本: | 仍在使用 |
允许的值: | (数字名字空间ID或名字空间常量的数组) |
默认值: | [] |
其他设置: 按首字母排序 | 按功能排序 |
细节
该数组中名字空间中的页面不能用作模板。 元素必须是数字名称空间ID或名称空间常量。 Among other things, this may be useful to enforce read-restrictions that may otherwise be bypassed by using the template mechanism.
$wgNonincludableNamespaces[] = 3000;
或
$wgNonincludableNamespaces[] = NS_CUSTOM;