手册:$wgNonincludableNamespaces

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgNonincludableNamespaces and the translation is 38% complete.
Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
访问: $wgNonincludableNamespaces
Use this to deny inclusion of pages from specific namespaces.
引进版本:1.10.0 (r19934)
移除版本:仍在使用
允许的值:(array of numeric namespace IDs or namespace constants)
默认值:[]

细节

Pages in namespaces in this array cannot be used as templates. Elements must be numeric namespace IDs or namespace constants. 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;