Manual:$wgExtraNamespaces/en

From Linux Web Expert

Revision as of 13:12, 24 July 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Namespaces</translate>: $wgExtraNamespaces
Additional namespaces.
<translate> Introduced in version:</translate>1.3.3
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>[]

Details

The $wgExtraNamespaces configuration parameter lets you configure additional, custom namespaces . It can also be used to rename the default namespaces. See the manual on using custom namespaces for further details.

Developer information:

In case an extension should work with the newly created custom namespace, make sure that you define and name them prior to invoking the respective extension.

Extensions should not use this configuration parameter. Instead they should use the CanonicalNamespaces hook or load the namespace through extension.json (MW 1.26+, Gerrit change 234146).

See also