Help:Namespace

From the Pokémon Wiki, a Pokémon encyclopedia
Jump to navigationJump to search

A namespace is a type of page in a wiki. Each page belongs to exactly one namespace. The corresponding namespace to a page is indicated the by the word preceding the colon in the address line. If there is no such word, the page belongs to the Main namespace of the wiki.

Namespaces are used for the following reasons:

  • allows separation of different kinds of unrelated content;
  • several namespaces have special features related to their intended purpose
  • allows unrelated content to be stored in one wiki (this requires the use of the namespace prefix in each link)
  • provides facilities to limit searches to a particular area
  • in principle allows easy exporting
  • allows for feature separation

List of namespaces[edit]

By default, every wiki has 16 namespaces, and 2 special namespaces. On the Pokémon Wiki, being a wiki hosted on Miraheze, bureaucrats can create custom namespaces via Special:ManageWiki/namespaces.

{{ns:Media}} Media
{{ns:Special}} Special
{{ns:0}} Main namespace
{{ns:1}} Talk (discussion pages for the main namespace articles)
{{ns:2}} User
{{ns:3}} User talk
{{ns:4}} Pokémon Wiki
{{ns:5}} Pokémon Wiki 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

Example of a custom namespace:

{{ns:3000}} Gallery - for a large collection of images pertaining to a subject

Basic namespaces[edit]

The Main namespace ( i.e., ns:0), or article namespace is the informational content of the wiki. It is the default namespace, so it does not use a prefix.

The Project namespace has the prefix of the wiki name. On some wikis, this is used to give information about the project. Other wikis have less need to separate the content from information about the content so may choose to put these pages in the main namespace. You can use the prefix "Project:" if you do not know the real prefix to use. This will be converted automatically.

The User namespace has the prefix User: and is used for information about users of the wiki. A user has a main user page and possibly some subpages. The main user page is linked from page histories and from recent changes. A user page has links to a user's contributions and a link which allows you to email them.

The Image namespace is prefixed with Image:. Pages here are also called image description pages. This namespace is for information about images or other files. Every image uploaded will show the information given in the upload summary on the image description page.

The MediaWiki namespace (prefix MediaWiki:) is a namespace containing interface texts such as link labels and messages. These are only editable by admins. An automatically generated list of all interface messages is at Special:AllMessages.

The Template namespace can be used for small standard texts which need to be inserted on a number of pages.

The Category namespace contains categories of pages, with each displaying a list of pages in that category and optional additional text.

The Help namespace is for help pages on wikis which want to separate these from the main content of the wiki.

Talk namespaces[edit]

Except for special pages, each namespace has an associated talk namespace. The talk namespaces are designated by adding talk: to the normal prefix. For example, the talk namespace associated with the main article namespace has the prefix Talk:, while the talk namespace associated with the user namespace has the prefix User 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 since they will get automatic notification of any messages left there, see Help:User page.

Virtual namespaces[edit]

There are two virtual namespaces that do not relate to pages stored in the database.

Special pages, or the special namespace, are automatically generated, uneditable, pages, such as Special:RecentChanges or Special:UserLogin.

The Media namespace can be used to link directly to an image or sound clip, rather than to the image description page.