Manual:$wgExtraNamespaces
Appearance
Namespaces: $wgExtraNamespaces | |
---|---|
Additional namespaces. |
|
Introduced in version: | 1.3.3 |
Removed in version: | Still in use |
Allowed values: | (array) |
Default value: | [] |
Other settings: Alphabetical | By function |
Details
[edit]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
[edit]- Namespace IDs used by extensions – Shows you a list of namespace IDs you should definitely avoid to prevent namespace conflicts, thus the first custom namespace may encounter conflicts even at ID
110
though100
is theoretically possible. It is recommened to define custom namespaces with IDs starting at3000
to avoid namespace conflicts. $wgExtraGenderNamespaces
$wgNamespaceAliases