Translations:Manual:Using custom namespaces/46/en

An extension can unconditionally add to $ExtraNamespaces as described above, or if its namespace registration is conditional (for example $EventLogging only defines its "Schema" namespace on the wiki where it stores schemas), then it can add a handler function for the $CanonicalNamespaces hook that decides what to do.