Jump to content

Manual:$wgNonincludableNamespaces

From mediawiki.org
Revision as of 15:23, 31 May 2024 by Clump (talk | contribs) (Reverted edits by 89.198.232.84 (talk) to last version by Shirayuki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 or namespace constants)
Default value:[]

Details[edit]

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;

or

$wgNonincludableNamespaces[] = NS_CUSTOM;