Manuel:$wgExtraNamespaces

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgExtraNamespaces and the translation is 33% complete.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎français • ‎magyar • ‎polski • ‎中文 • ‎日本語
Espaces de noms: $wgExtraNamespaces
Espaces de noms supplémentaires.
Introduit dans la version :1.3.3
Retiré dans la version :Encore utilisé
Valeurs autorisées :(tableau)
Valeur par défaut :[]

Détails

$wgExtraNamespaces configures additional, custom namespaces for a wiki. It can also be used to rename the default namespaces.

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 setting, instead they should use the CanonicalNamespaces hook or load the namespace through extension.json (MW 1.26+, Gerrit change 234146).

See also

  • 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 though 100 is theoretically possible.

It is recommened to define custom namespaces with IDs starting at 3000 to avoid namespace conflicts.