Template:Namespace detect/doc

This is the {{Namespace detect}} meta-template. It helps other templates detect what type of page they are on.

It detects and groups all the different namespaces used on Wikipedia into several types:

main
Main (i.e. article) space, where normal Wikipedia articles are kept.
talk
Any talk space, including page names that start with "Talk:", "User talk:", "File talk:", etc.

  • portal
  • category
  • user
  • draft
  • wikipedia
  • mediawiki
  • book
  • timedtext
  • template
  • special
  • media
  • file
  • help
  • module
The remaining namespaces.
other
Any namespaces that were not specified as a parameter to the template (see explanation below).

For backwards compatibility, this template handles image as if file. image ([[Image:...]]) is now deprecated.

Note: For most cases it may be better to use the simpler namespace detection templates (see the see also section below). This template is more prone to human errors such as misspelling parameter names.