Research:Content namespace

A content namespace is a namespace that contains the content of a Wikimedia project. In Wikipedia, content is traditionally limited to articles, i.e. pages in the namespace zero (aka the main namespace or ns0, from the numeric identifier that the software assigns to it).

However, a wiki may designate additional content namespaces. For example:

  • the Author namespace on Wikisource (example)
  • the Anexo (Appendix) namespace on the Spanish Wikipedia (example)

Such extra content namespaces are defined using MediaWiki's $wgContentNamespaces configuration setting. The extra content namespaces used by Wikimedia wikis are listed in InitialiseSettings.php.

In addition, you can determine this setting for an individual wiki by querying its siteinfo API module. For example, querying the Spanish Wikipedia at the URL returns a list including the following entry for the Anexo namespace:

104": { "id": 104, "case": "first-letter", "subpages": "", "canonical": "Anexo", "content": "", "*": "Anexo" },

The "content": "" marks it as a content namespace.

"Missing" content namespacesEdit

A number of Wikimedia projects contain namespaces which, from a statistical point of view, should probably be considered content but are not designated as such in the software configuration. This may be due to lack of interest or to the fact that the designation has some side effects (such as on searching).

Examples include;

  • the Research namespace on Meta (for example, this page!)
  • the Property namespace on Wikidata

See alsoEdit