Manual:$wgNonincludableNamespaces

From MediaWiki.org
Jump to: navigation, search
Access: $wgNonincludableNamespaces
Use this to deny inclusion of pages from specific namespaces.
Introduced in version: 1.10.0 (r19934)
Removed in version: still in use
Allowed values: array of numeric namespace ids
Default value: empty array

Other settings: Alphabetical | By Function

Details[edit | edit source]

Pages in namespaces in this array can not be used as templates. Elements must be numeric namespace ids. Among other things, this may be useful to enforce read-restrictions that may otherwise be bypassed by using the template mechanism.

$wgNonincludableNamespaces[] = 102;

Older versions[edit | edit source]

This setting was introduced in MediaWiki v1.10.0.

Older versions of MediaWiki may acquire this functionality (and the protection it can provide) by installing the NonincludableNamespaces extension.

The extension also adds some extra settings to make configuration slightly easier for the most common use-cases and may be safely installed on versions > 1.10.0 if you just want access to these new settings.

Language: English  • français • 日本語 • polski