We can have our own namespace, which is known as having a custom namespace. Each project or wiki can have a lot of custom namespaces as per the site's requirement. Custom namespaces are added by the administrator in need of new namespaces other than the ones defined by MediaWiki. For our site, we can have different namespaces such as story, article, novel, real-life experience, etc. In general, custom namespaces are numbered from 100.
In order to add a new custom namespace, we have to perform the following steps:
1. Pick a name for the namespace and its corresponding talk page. Do not include a space in the name. If required, you can use the underscore (_) character.
2. Pick namespace numbers appropriately. Numbers should start from after 100. Also we should apply the following rule for talk pages: Even numbers are for namespaces containing articles, odd numbers are reserved for talk pages for the corresponding namespace.
3. In the
include
directory, open thedefaultsettings...