Template:Namespace
Jump to navigation
Jump to search
Documentationview • edit • history • ⧼Code-rev-purge-link⧽
template

This documentation is transcluded from Template:Namespace/doc.
This works similar to the magic word {{NAMESPACE}}, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.
This table compares the magic word to this template showing what each would display if in those namespaces.
Location | {{NAMESPACE}} | {{namespace}} |
---|---|---|
Main space | (nothing) | gallery |
Commons: pages | Project | project page |
File: pages | File | media file |
User: pages | User | user page |
Categories | Category | category |
Templates | Template | template |
System messages | MediaWiki | system message |
Any talk page | Talk, User talk, Project talk, File talk... | talk page |
All other pages are rendered as "page".
See also: {{namespaces}} - for when a plural form is needed.