Help:Namespace: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (1 revision imported)
(camelcase)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
A '''namespace''' is a type of page in the 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 that Wikia.
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:
Namespaces are used for the following reasons:
Line 10: Line 9:
*in principle allows easy exporting
*in principle allows easy exporting
*allows for feature separation
*allows for feature separation



==List of namespaces==
==List of namespaces==
By default, every wiki has 16 namespaces, and 2 special namespaces. On Croc Wiki, being a wiki hosted on Miraheze, bureaucrats can create custom namespaces via [[Special:ManageWiki/namespace]]s.


{| class="wikitable"
By default, every Wikia has 16 namespaces, and 2 special namespaces. [[Wikia:Help:Custom namespaces|Custom namespaces]] can also be created.

{| border="0" cellpadding="4" cellspacing="0"
|-
|-
|<nowiki>{{ns:Media}}</nowiki>
|<nowiki>{{ns:Media}}</nowiki>
Line 71: Line 68:
|<nowiki>{{ns:15}}</nowiki>
|<nowiki>{{ns:15}}</nowiki>
|{{ns:15}}
|{{ns:15}}
|}

Example of a custom namespace:

{| class="wikitable"
|-
|<nowiki>{{ns:3004}}</nowiki>
|{{ns:3004}} - for a large collection of images pertaining to a subject
|}
|}


==Basic namespaces==
==Basic namespaces==
The '''Main''' namespace ( i.e., ns:0), or article namespace is the informational content of the wiki. In Wikipedia, this would be the encyclopedia article. It is the default namespace and does not use a prefix.
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 title of your Wikia. 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 '''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 [[Help:user page|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 '''User''' namespace has the prefix ''User:'' and is used for information about users of the wiki. A user has a main [[Help:user page|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.
Line 82: Line 87:
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 '''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 [[Help:user access levels|admins]]. An automatically generated list of all interface messages is at [[Special:Allmessages]].
The '''MediaWiki''' namespace (prefix ''MediaWiki:'') is a namespace containing interface texts such as link labels and messages. These are only editable by [[Help:user access levels|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 '''Template''' namespace can be used for small standard texts which need to be inserted on a number of pages.
Line 96: Line 101:
There are two virtual namespaces that do not relate to pages stored in the database.
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]].
'''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.
The '''Media''' namespace can be used to link directly to an image or sound clip, rather than to the image description page.


[[Category:Help]]
==See also==

*See [[MetaWikipedia:Help:Namespace]], from which this page was derived, for further details on the namespace feature of [[Wikia:MediaWiki]].

[[Category:Help|Namespace]]

Latest revision as of 19:58, January 19, 2022

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

By default, every wiki has 16 namespaces, and 2 special namespaces. On Croc 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}} Croc Wiki
{{ns:5}} Croc 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:3004}} Gallery - for a large collection of images pertaining to a subject

Basic namespaces

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

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

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.