This is a documentation subpage for Template:Namespace detect. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 445,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Preview message: Transclusion count updated automatically (see documentation). |
This template uses Lua: |
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:
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.