Difference between revisions of "Help:Namespace"

From ISFDB
Jump to navigation Jump to search
(source)
Line 10: Line 10:
  
 
* If a page title contains a colon, but the initial part of the title is ''not'' one of the pre-defined namespaces, that page is considered to be in the main namespace.
 
* If a page title contains a colon, but the initial part of the title is ''not'' one of the pre-defined namespaces, that page is considered to be in the main namespace.
 +
 +
==Namespace uses==
 +
 +
Namespaces allow, among other things, a separation of content from policy and discussion. They encourage separation of the pages of a wiki into a core set intended for public viewing, and private information intended for the editing community.
 +
 +
The core set is the main namespace. Other namespaces that are also useful to viewers are:
 +
* the image namespace (with the full-size images)
 +
* the category namespace (for navigation)
 +
* the [[help:help|help]] pages and the preferences page (as far as they concern viewing)
 +
 +
By default, searches and the [[Special:Randompage|random page feature]] are restricted to the main namespace, thus the user interface is directed towards readers who are not part of the community.
 +
 +
*[[Special:Allpages]] can be applied to a namespace of choice.
 +
*So can [[Help:Recent changes|Recent changes]].
 +
*[[Help:Searching|Searching]] can be restricted to any subset of namespaces
 +
 +
[[Help:User contributions|User contributions]] can show all or be restricted to a namespace of choice.
 +
 +
The [[Help:Subpage feature|subpage feature]] can be enabled for selected namespaces.
 +
 +
It is possible to customize the visual appearance of pages and the appearance and function of templates based on namespace. See sections [[#Template programming|Template programming]] and [[#CSS based namespace detection|CSS based namespace detection]] below.
 +
  
 
{{HelpSourceMW|Namespace}}
 
{{HelpSourceMW|Namespace}}
 +
 +
[[Category:Wiki Help|Namespace}}

Revision as of 17:43, 13 November 2008

Page titles in MediaWiki are composed of two parts: an optional namespace name, and the remainder of the title. For example, this page has the title [[Help:Namespace]], so it is in the Help namespace. A title without a colon, for example [[Goings-on]], is in the main namespace.

By default, a wiki using the MediaWiki software has 18 namespaces, including:

  • the main namespace, where page names have no prefix
  • 15 additional namespaces, each with its own prefix. (Two namespaces, the so-called 'project' namespaces, get their names from the name of the wiki project, and so differ in name from one wiki to the next; on the ISFDB, they are called ISFDB: and ISFDB talk:. On each wiki, these project namespaces (whatever they may happen to be for that wiki), can be referred to by the pseudonyms "Project:" and "Project Talk:", respectively.)
  • two pseudo-namespaces

But take note:

  • If a page title contains a colon, but the initial part of the title is not one of the pre-defined namespaces, that page is considered to be in the main namespace.

Namespace uses

Namespaces allow, among other things, a separation of content from policy and discussion. They encourage separation of the pages of a wiki into a core set intended for public viewing, and private information intended for the editing community.

The core set is the main namespace. Other namespaces that are also useful to viewers are:

  • the image namespace (with the full-size images)
  • the category namespace (for navigation)
  • the help pages and the preferences page (as far as they concern viewing)

By default, searches and the random page feature are restricted to the main namespace, thus the user interface is directed towards readers who are not part of the community.

User contributions can show all or be restricted to a namespace of choice.

The subpage feature can be enabled for selected namespaces.

It is possible to customize the visual appearance of pages and the appearance and function of templates based on namespace. See sections Template programming and CSS based namespace detection below.


This page is derived from the MediaWiki help page on Namespace

[[Category:Wiki Help|Namespace}}