en.m.wikipedia.org
Wikipedia:Namespace
"WP:NS" redirects here. You may be looking for Wikipedia:WikiProject Nova Scotia.
This is an information page.
It is not one of Wikipedia's policies or guidelines, but rather intends to describe some aspect(s) of Wikipedia's norms, customs, technicalities, or practices. It may reflect varying levels of consensus and vetting.
Wikipedia data structure
Namespaces
Subject namespacesTalk namespaces
0(Main/Article)Talk1
2UserUser talk3
4WikipediaWikipedia talk5
6FileFile talk7
8MediaWikiMediaWiki talk9
10TemplateTemplate talk11
12HelpHelp talk13
14CategoryCategory talk15
100PortalPortal talk101
118DraftDraft talk119
710TimedTextTimedText talk711
828ModuleModule talk829
Deprecated
108BookBook talk109
446Education ProgramEducation Program talk447
2300GadgetGadget talk2301
2302Gadget definitionGadget definition talk2303
Virtual namespaces
-1Special
-2Media
A Wikipedia namespace is a set of Wikipedia pages whose names begin with a particular reserved word recognized by the MediaWiki software (followed by a colon). For example, in the user namespace all titles begin with the prefix User:. In the case of the article (or main) namespace, in which encyclopedia articles appear, the reserved word and colon are absent. (Note: main space articles can optionally include a colon at the beginning with no reserved word, so [[Article]] and [[:Article]] are equivalent. This is usually only necessary for the advanced technique of transcluding a main space article into another page.)
Wikipedia has 34 current namespaces: 16 subject namespaces, 16 corresponding talk namespaces, and 2 virtual namespaces. These are all listed in the box to the right. While surfing Wikipedia, a list of namespaces is available in two clicks: do an empty search, then click Advanced under the search box. The list also makes itself available where needed in the dropdown menus of, for example, Special:Prefixindex, Special:Allpages, Special:Recentchanges​, and Special:Contributions.
The aliases WP for Wikipedia, and WT for Wikipedia talk, work for page names in the search box, and making links as well as inclusions. See Aliases below for other aliases. (The pseudo-namespaces such as H for Help, and CAT for Category, are extremely limited. See Pseudo-namespaces below.)
The table on the right shows what number to use when you want to hide pages that are on your watchlist. See: Wikipedia:Hide Pages in Watchlist for details.
Previously, the Topic namespace was available for the Flow project but it has since been turned off on this wiki.
Subject namespaces
Further information: Wikipedia:Administration § Data structure and development
This page is in the Wikipedia namespace.
Namespaces allow for the organization and separation of content pages from administration pages. Namespaces separate data into core sets, those intended for public viewing, and those intended for the editing community. Wikipedia's subject namespaces and their functions are listed below. A brief description is provided, but see the link for more information.
A namespace is sometimes called a space, for short, as in "Project space". A subject page and its talk page form a pair.
In use
Deprecated
Not installed
On MediaWiki installations other than the English Wikipedia, additional namespaces may be installed by MediaWiki extensions; the list of default IDs for these namespaces is at Extension default namespaces.
The Flow namespace (prefix Topic:) was a proposed talk page replacement, formerly installed on English Wikipedia by Extension:StructuredDiscussions​. It is no longer installed after being rejected by the community.
Aliases and pseudo-namespaces
An alias of a namespace is its namespace. For example, WP: is Wikipedia:, and so
[[Wikipedia:Page name]]
can be abbreviated
[[WP:Page name]]
. See Aliases below, for a list of aliases, such as WT: for Wikipedia talk:. A pseudo-namespace is an agreement to create redirect pages named that way, each of which is a shortcut from mainspace to a single page in its namespace. So an alias refers to any page in its namespace, but a pseudo-namespace has far fewer pages than its real namespace. There are a few pseudo-namespace names like H: for Help:, and CAT: for Category:, and these can be discovered below in the section Pseudo-namespaces.
Talk namespaces
Main pages: Help:Using talk pages and Wikipedia:Talk page guidelines
Each of the above namespaces (but not the virtual namespaces and the former Topic: namespace) has an associated talk namespace—these are also known as discussion pages. The talk namespaces are designated by appending the word talk to the namespace name. For example, the talk namespace associated with the user namespace has the prefix User talk:. The talk namespace associated with the article namespace is Talk:.
Most of the pages in the talk namespaces are used to discuss changes to the corresponding page in the associated namespace. Pages in the user talk namespace are used to leave messages for a particular user. The user talk namespace is special in that, whenever a user's talk page is edited, that user will see an orange box saying "You have new messages" on the top of every page that they view until they visit their talk page. By default, logged-in users will see a red notification square and a small orange box on the top right hand corner of the page; IP users will only see a wide orange box spanning the top of the page. (Minor edits made by bots no longer set off the new message bar. For logged-in users, the new-message bar may be disabled in Special:Preferences.)
Note that the prefix WT: expands to Wikipedia talk:, just as WP: expands to Wikipedia: (see Aliases below). For example, [[WT:Verifiability]] links to Wikipedia talk:Verifiability.
Virtual namespaces
In addition to subject namespaces, and their corresponding talk pages, there are two virtual namespaces (without corresponding talk pages) for specialist purposes:
Special
Main page: Help:Special page
The Special: namespace consists of pages (called special pages) that are created by the software on demand, such as Special:RecentChanges​. These pages can be linked as usual, as with [[Special:RecentChanges]], except when they have parameters. To use parameters, the full URL must be given as an external link. For example, https://en.wikipedia.org/w/index.php?title=Special:Recentchanges&days=3&limit=10​, which returns the last ten changes in the last three days.
You can create a redirect to a Special page, but the redirect will not be followed automatically.
For a list of special pages, see Special:SpecialPages​.
Media
Main page: Help:Files
The Media: namespace can be used to link directly to a file, rather than to the file description page.
Aliases and pseudo-namespaces
Further information: Wikipedia:Shortcut § List of prefixes
Aliases and pseudo-namespaces are not namespaces in themselves; their main role is to provide handy ways to link to actual namespaces, by providing shortened links.
The main difference between them being the way they work for this purpose; while aliases directly link to namespaces, pseudo-namespaces can only link to other namespaces by using specialist redirect pages in the main namespace called shortcuts. While aliases are also used for shortcuts, this isn't necessary if the pagename is not shortened.
Pseudo-namespaces all actually reside in main namespace; but a pseudo-namespace called Transwiki: exists as a pseudo-namespace before being moved to another namespace.
Aliases
There are six aliases defined for namespaces, all of which are case-insensitive:
AliasNamespace
WPWikipedia
Project
WTWikipedia talk
Project talk
ImageFile
Image talkFile talk
These aliases are automatically translated by the Wikipedia servers to the proper namespace prefix. So if a link is made to a page title beginning with one of these aliases, or else entered in the search box or used in a URL in a browser address bar, the alias links to the page with the corresponding true namespace prefix. Hence entering WP:External links or Project:External links is equivalent to entering Wikipedia:External links; and entering WT:External links or Project talk:External links is equivalent to entering Wikipedia talk:External links.
An alias cannot be used as the actual namespace in a page title. For example, you cannot create page WP:123; if tried, the page name is instantly converted to Wikipedia:123. It is, however, possible to change the displayed title on page Wikipedia:123 to make it WP:123 or Project:123.
This is very handy for the creation of shortcuts. For example, the shortcut for this section is WP:ALIAS, as shown in the right-side box. When the link is clicked, it automatically translated to Wikipedia:ALIAS. At this page is a redirect to Wikipedia:Namespace#Aliases​. This means that the shortcut goes directly to this section from anywhere in Wikipedia. It can also be entered as a URL in the browser address bar as https://en.wikipedia.org/wiki/WP:ALIAS .
Pseudo-namespaces
Аpart from Wikipedia's 32 regular namespaces and their aliases, and 2 virtual ones, there are several title prefixes appearing in shortcut redirects pointing to frequently-referred-to Wikipedia pages. These prefixes are referred to as pseudo-namespaces and include the following:
A more complete list is available at Wikipedia:Shortcut#List of prefixes.
Pseudo-namespaces are not in any way recognised by the wiki software; they are purely a community custom. Titles in pseudo-namespaces actually belong technically in the main (article) namespace and are treated as such by the software: they are case-sensitive and appear in search results restricted to the main namespace. An alias is treated like a real namespace, resulting in a search for the pagename in its namespace, but the "pseudo-namespace:pagename" search is in mainspace, not its pseudo-namespace. For example, searching for "H:S" will not search Help.
To learn some of these shortcuts, first follow the pseudo-namespace link above, then follow one of the redirects listed on that page. It will take you to the target, where you then notice any {{shortcut}} boxes to the right of the page, which may also list some additional shortcuts to that same area. By observing these steps repeatedly, you can discover ways to shorten your typing. You will use pseudo-namespace names more often if you are an advanced editor, highly active in many namespaces, or constantly linking to pages that have a pseudo-namespace shorcut.
To understand the appropriateness of redirects of this type, see Wikipedia:Cross-namespace redirects. All shortcuts are discoverable by searching for redirects. There is also the category Wikipedia redirects.
As a final example, every Wikimedia Foundation project has a "Transwiki:" pseudo-namespace (sometimes a real namespace) for importing articles manually. A wiki project that would manually move many pages between sister projects uses this tag. Redirects/shortcuts are not directly involved here, as described above. Instead the page title is moved to "Transwiki:​namespace:pagename​", and that content is then copied and pasted into a new page name of that temporary title on the target wiki. When it is accepted the title is then moved out of the Transwiki pseudo-namespace there and becomes a real page name in its respective namespace.
Interwiki and interlanguage links
Further information: Help:Interwiki linking and Help:Interlanguage links
Interwiki and interlanguage prefixes do not define namespaces, but point to pages in other Wikimedia projects, outside the en.wikipedia.org website. They are mentioned here because they use a namespace-like prefix technique for linking. Examples of interwiki prefixes include w: for Wikipedia; m: (or meta:) for Meta-Wiki, mw: for MediaWiki, and wikt: for Wiktionary. Examples of interlanguage prefixes include en: for English language, fr: for French language, and de: for German language.
Important points to note:
When making links to other language Wikipedias, add an initial colon if you want the link to appear inline rather than in the skin's sidebar under "Languages"; see Help:Colon trick for an explanation. So [[:de:Internet]] is an inline link to "Internet" in the German Wikipedia; but if using an interwiki prefix this is unnecessary, for example [[w:de:Internet]] is the same inline link.
Further examples:
Interwiki prefixes are not just for Wikimedia projects. For example, Dictionary: is the interwiki link for dict.org (the DICT Development Group). For a complete list of interwiki prefixes, see the interwiki map and interwiki table.
As with aliases, it is not possible to create a page with a title beginning with an interwiki or interlanguage prefix. It is also not possible to create redirects to interwiki pages, unless it is a soft redirect.
Case insensitivity
Standard namespace names, aliases and interwiki prefixes are case insensitive. The same applies to the first character after the colon. Hence the following all link to the same page:
Namespace-dependent functionality
The namespace name is a useful variable for searching in and reporting on sets of pages. It is also used to apply features that configure the sets of pages in one namespace differently from another namespace. Using the namespace name MediaWiki can:
The namespace functionality is often visible in the URL, where you will see a namespace number. These are given in the table below.
Subpages are configured for all namespaces except Main, File, MediaWiki and Category namespaces. Subpages are configured in the software by enabling or disabling the subpage feature per namespace. This further extends the function of a namespace by extending the types of pages or topics of pages a namespace can home. For example, talk page /archives are subpages, and they are both namespace searchable and page name searchable from the search box, unlike history pages, which are in no namespace. Another example is in the Template namespace where it is routine to put the documentation in a subpage called /doc.
Random pages are enabled, in the default software configuration, only for the mainspace.
Searching and reporting can operate over the entire database, or they can be limited to a namespace, and so they will offer a list of all the namespaces currently configured. Special:WhatLinksHere also offers a list of namespaces.
Programming
The 34 namespaces in the English Wikipedia are numbered for programming purposes. The prefix for each namespace is generated by a variable, using the magic word {{ns}}, in the form {{ns:xx}}, as shown in the table below.
Namespace variableResult (namespace name)Namespace variableResult (talk namespace name)
{{ns:-2}}Media
{{ns:-1}}Special
{{ns:0}}(main namespace, returns empty string){{ns:1}}Talk
{{ns:2}}User{{ns:3}}User talk
{{ns:4}}Wikipedia{{ns:5}}Wikipedia talk
{{ns:6}}File{{ns:7}}File talk
{{ns:8}}MediaWiki{{ns:9}}MediaWiki talk
{{ns:10}}Template{{ns:11}}Template talk
{{ns:12}}Help{{ns:13}}Help talk
{{ns:14}}Category{{ns:15}}Category talk
{{ns:100}}Portal{{ns:101}}Portal talk
{{ns:108}}Book{{ns:109}}Book talk
{{ns:118}}Draft{{ns:119}}Draft talk
{{ns:446}}Education Program{{ns:447}}Education Program talk
{{ns:710}}TimedText{{ns:711}}TimedText talk
{{ns:828}}Module{{ns:829}}Module talk
{{ns:2300}}Gadget{{ns:2301}}Gadget talk
{{ns:2302}}Gadget definition{{ns:2303}}Gadget definition talk
Alternative variables are available for most namespaces, for example {{ns:talk}}, {{ns:user}}, and {{ns:user_talk}} for {{ns:1}}, {{ns:2}} and {{ns:3}}. The portal and book namespaces are numbered in the 100-plus range as are all MediaWiki nonstandard namespaces.
All namespaces with a positive number or zero in this list are searchable. Specifically, the Media and Special namespaces are not searchable.
The magic word {{NAMESPACE}} returns the namespace prefix of the current page. This can be used in combination with other magic words and parser functions to change the appearance of templates depending on the namespace in which they are transcluded.
Meta-templates have been created to simplify this process. These include the simple template {{main other}}, and the more complex and versatile {{namespace detect}}.
For information on changing the appearance of a page or template by namespace based on CSS, see CSS-based namespace detection on the Meta help page.
See also
Help desk
References
  1. ^ Wikipedia:Village pump (technical)/Archive 139#New "Gadget:" and "Gadget definition:" namespaces?
  2. ^ Education_Extension_scheduled_shutdown, Wikimedia outreach
  3. ^ Wikipedia:Education noticeboard/Archive 18#NOTICE:_EducationProgram extension is being deprecated
  4. ^ Wikipedia:Village pump (technical)/Archive 176#Suppress rendering of Template:Wikipedia books
Last edited on 31 May 2021, at 07:03
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomNearbyLog inSettingsDonateAbout WikipediaDisclaimers
LanguageWatchEdit