×
Create a new article
Write your page title here:
We currently have 3,300 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,300Articles

Help:Namespaces: Difference between revisions

(reorganise and rewrite)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A '''namespace''' is a collection of pages with similar purpose. It appears as a prefix to page names - this page is named <code>{{PAGENAME}}</code> and is prefixed by the namespace <code>{{NAMESPACE}}</code>. The MediaWiki software has many default namespaces, and {{SITENAME}} uses them for the [[:Category:Wikis|wikis it hosts.]]
A '''namespace''' is a collection of pages with similar purpose. It appears as a prefix to page names. The MediaWiki software has many default namespaces, and Yume Wiki uses them for the [[:Category:Wikis|wikis it hosts.]]


Basic information on namespaces can be found on the [https://mediawiki.org/wiki/Help:Namespaces MediaWiki help page.]
Basic information on namespaces can be found on the [https://mediawiki.org/wiki/Help:Namespaces MediaWiki help page.]
==Definition==
The most basic part of a namespace is the name itself, which is the prefix the page has. Each namespace also has a number, which acts as a unique ID, and is always even. Adding 1 to the namespace number gives the number of the corresponding talk space, used for discussing the subject page. It has the same namespace except with <code>talk</code> appended.
For example: the current page's full name is <code>{{SUBJECTSPACE}}:{{PAGENAME}}</code>. This is in the namespace <code>{{SUBJECTSPACE}}</code> which has the number <code>{{NAMESPACENUMBER:{{SUBJECTSPACE}}:{{PAGENAME}}}}</code>. This page's corresponding talk page is titled <code>{{SUBJECTSPACE}}&nbsp;talk:{{PAGENAME}}</code>. This is in the namespace <code>{{SUBJECTSPACE}}&nbsp;talk</code>, which has a number of <code>{{NAMESPACENUMBER:{{TALKSPACE}}:{{PAGENAME}}}}</code>.


==Usage==
==Usage==
You will most commonly see namespaces used in '''wikilinks'''. To link to a page on the ''Yume Nikki'' Wiki, you must write <code><nowiki>[[Yume Nikki:Uboa|Uboa]]</nowiki></code>. You also see them when hovering over links. Rarely, the prefix appears in the page title at the start. This is all due to the way namespaces are used to separate wikis. Putting wikis in different namespaces creates a static and consistent way to identify pages: [[Yume Nikki:Hell]] will not be confused with [[Dotflow:Hell]]. Another positive is having different styles when viewing pages using the default skin<!--Cosmos-->.
Separating wikis into different namespaces creates a static and consistent way to identify pages. For example, [[Yume Nikki:Hell]] will not be confused with [[Dotflow:Hell]]. Another positive is having different styles when viewing pages using the default Cosmos skin and the Citizen skin.
 
Namespaces are most commonly used in wikilinks. For example, to link to a page on the ''Yume Nikki'' Wiki, the namespace must be prefixed to the page title, such as in {{awrap|<code><nowiki>[[Yume Nikki:Uboa|Uboa]]</nowiki></code>}}.
 
Links to the File and Category namespaces must be prefixed with a colon <code>:</code>. For example, <code><nowiki>[[File:NoImage.png]]</nowiki></code> will embed the file directly into the page, but <code><nowiki>[[</nowiki><span style="color:red"><b>:</b></span><nowiki>File:NoImage.png]]</nowiki></code> will produce the link [[:File:NoImage.png]].


Namespaces are also seen prefixed to pages listed in categories. This can be useful when a category has pages from multiple namespaces (such as [[:Category:Article Stubs]]), but is otherwise redundant. There is no way to hide them.<!--If a way does get added, this will need to be changed-->
Namespaces are also seen prefixed to pages listed in categories. This can be useful when a category has pages from multiple namespaces (such as [[:Category:Article Stubs]]), but is otherwise redundant. There is no way to hide them.<!--If a way does get added, this will need to be changed-->


Links to the '''File''' and '''Category''' namespaces must be prefixed with a colon <code>:</code>. For example, <code><nowiki>[[File:NoImage.png]]</nowiki></code> will embed the file directly into the page, but <code><nowiki>[[</nowiki><span style="color:red"><b>:</b></span><nowiki>File:NoImage.png]]</nowiki></code> will produce the link [[:File:NoImage.png]].
==Notable namespaces==
Some namespaces have special importance or function.
<!-- TBA add more specific explanations -->


==List==
===Main===
The below tables list the namespaces of {{SITENAME}} in addition to some information about them. The most basic part is the '''name'''. This is the prefix the page has and what you use in links. The '''namespace number''' is also listed. This is the "ID" of a namespace, and it is '''always even'''. Adding 1 to the namespace number gives the number of the '''talk space'''. It is the place for discussing the subject page. It has the same namespace except with <code>talk</code> appended.
The main namespace, also called the mainspace, is for the main articles of a wiki. In Yume Wiki, the mainspace was split off to the sister site, the [https://ynfg.yume.wiki/Main_Page Yume Nikki Fangames Wiki,] which uses it for pages on fangames and [[YumeWiki:Authors#Individual authors|fangame developers]]. The reason for the split is that they were orginally individual wikis, and merging them would introduce filename conflicts that cannot be easily resolved.


A clear example of the above: the page you are reading is <code>{{SUBJECTSPACE}}:{{PAGENAME}}</code>. This is in the namespace <code>{{SUBJECTSPACE}}</code> which has the number <code>{{NAMESPACENUMBER:{{SUBJECTSPACE}}:{{PAGENAME}}}}</code>. The page's corresponding talk page is titled <code>{{SUBJECTSPACE}}&nbsp;talk:{{PAGENAME}}</code>. This is in the namespace <code>{{SUBJECTSPACE}}&nbsp;talk</code>, which has a number of <code>{{NAMESPACENUMBER:{{TALKSPACE}}:{{PAGENAME}}}}</code>.
===Special===
The Special namespace is reserved for [[Help:Special pages|special pages]], which have a unique function instead of holding content. This can be information about the wiki, lists of content for maintenance purposes, or tools that are helpful for finding and editing content.


For the default and extension namespaces, the purpose of the namespace is described. For the wiki namespaces, it shows the shortened form used in URLs, and for most of them an abbreviated form that you may see people use.
==List==
The below tables list the namespaces of Yume Wiki in addition to some information about them. For the default and extension namespaces, the purpose of the namespace is described. For the wiki namespaces, it shows the shortened form used in URLs, and for most of them an abbreviated form that users have adopted.


{| class="wikitable mw-collapsible mw-collapsed" style="width:100%; text-align:center;"
{| class="wikitable mw-collapsible mw-collapsed sortable" style="width:100%; text-align:center;"
|+Default Namespaces
|+ <span id="Default Namespaces">Default Namespaces</span>
!style="width:10ch"|Namespace
!style="width:10ch"|Namespace
!style="width:1px"|Number
!style="width:1px"|Number
!Purpose
!class="unsortable"|Purpose
|-
|-
|Media
|Media
Line 33: Line 46:
|(Main)
|(Main)
|0
|0
|The main space for articles. It '''has no prefix''' and the talk space is just <code>Talk:</code>
|The main space for articles. It has no prefix and the talk space is just <code>Talk:</code>
|-
|-
|User
|User
|2
|2
|User pages. If you made an account, you can create one under your name. Protected so only the users themselves and admins can edit.
|User pages. Protected so only the users themselves and admins can edit.
|-
|-
|{{SITENAME}}
|{{SITENAME}}
|4
|4
|The "Project" namespace uses the site name and is used for meta talk.
|The "Project" namespace uses the internal site name. It is used for meta content.
|-
|-
|File
|File
|6
|6
|All the [[Help:Files|files you upload]] are found here.  
|All the [[Help:Files|uploaded files]] are found here.  
|-
|-
|MediaWiki
|MediaWiki
|8
|8
|Pages for important parts of the wiki such as system messages and interface CSS.
|Pages for important parts of the wiki, such as system messages and interface CSS.
|-
|-
|Template
|Template
Line 61: Line 74:
|Category
|Category
|14
|14
|Categories allow pages (and other categories) to be sorted. Used plenty as lists of pages.
|Categories allow pages (and other categories) to be organised and sorted. Categories are sometimes used as lists of pages.
|}
|}


{| class="wikitable mw-collapsible mw-collapsed" style="width:100%; text-align:center;"
{| class="wikitable mw-collapsible mw-collapsed sortable" style="width:100%; text-align:center;"
|+Extension Namespaces
|+ <span id="Extension Namespaces">Extension Namespaces</span>
!style="width:10ch"|Namespace
!style="width:10ch"|Namespace
!style="width:1px"|Number
!style="width:1px"|Number
!Purpose
!class="unsortable"|Purpose
|-
|-
|Property
|Property
Line 80: Line 93:
|Form
|Form
|106
|106
|Used by the [https://mediawiki.org/wiki/Extension:Page_Forms Page Forms extension] for the page forms.
|Used by the [https://mediawiki.org/wiki/Extension:Page_Forms Page Forms extension] for the [[Special:AllPages/Form:|page forms]].
|-
|-
|Concept
|Concept
|108
|108
|Could be used as pseudo-categories for Semantic MediaWiki. Unused on {{SITENAME}}.
|Pseudo-categories for Semantic MediaWiki queries. See a list [[Special:Concepts|here]].
|-
|-
|Forum
|Forum
|110
|110
|Supposedly for forums. Not implemented on {{SITENAME}}.
|To contain a forum. Not implemented on Yume Wiki.
|-
|-
|Rule
|Rule
Line 96: Line 109:
|smw/schema
|smw/schema
|114
|114
|Seemingly for SMW related settings.
|For SMW related settings.
|-
|-
|…
|data-sort-value=z|…
|…
|data-sort-value=3000|…
|…
|…
|-
|-
Line 106: Line 119:
|The [https://mediawiki.org/wiki/Extension:Widgets Widgets extension] is for transcluding templates made in raw HTML instead of wiki parsing.
|The [https://mediawiki.org/wiki/Extension:Widgets Widgets extension] is for transcluding templates made in raw HTML instead of wiki parsing.
|-
|-
|…
|data-sort-value=z|…
|…
|data-sort-value=3000|…
|…
|…
|-
|-
Line 114: Line 127:
|Used by the [https://mediawiki.org/wiki/Extension:TimedMediaHandler TimedMediaHandler] extension.
|Used by the [https://mediawiki.org/wiki/Extension:TimedMediaHandler TimedMediaHandler] extension.
|-
|-
|…
|data-sort-value=z|…
|…
|data-sort-value=3000|…
|…
|…
|-
|-
Line 122: Line 135:
|Lua scripts for [https://mediawiki.org/wiki/Extension:Scribunto Scribunto.]
|Lua scripts for [https://mediawiki.org/wiki/Extension:Scribunto Scribunto.]
|-
|-
|…
|data-sort-value=z|…
|…
|data-sort-value=3000|…
|…
|…
|-
|-
Line 135: Line 148:
|}
|}


{| class="wikitable mw-collapsible mw-collapsed" style="width:100%; text-align:center;"
{| class="wikitable mw-collapsible mw-collapsed sortable" style="width:100%; text-align:center;"
|+Wiki Namespaces
|+ <span id="Wiki Namespaces">Wiki Namespaces</span>
!style="width:10ch"|Namespace
!style="width:10ch"|Namespace
!style="width:1px"|Number
!Number
!style="width:1px"|URL
!URL
!style="width:1px"|<span title="These are technically a standard for YNO badge files uploaded to the wiki. Unofficial otherwise." tabindex="0"><u>Abbr</u></span>
!<span class="explain" title="These are used for YNO badge files uploaded to the wiki. Unofficial otherwise." tabindex="0">Abbr</span>
|-
|-
|Yume Nikki
|Yume Nikki
Line 152: Line 165:
|Y2
|Y2
|-
|-
|<span title="Game is .flow" tabindex="0"><u>Dotflow</u></span>
|<span class="explain" title="Game is .flow" tabindex="0">Dotflow</span>
|3004
|3004
|flow
|flow
Line 242: Line 255:
|YT
|YT
|-
|-
|NostAlgic
|<span class="explain" title="Game is nostAlgic" tabindex="0">NostAlgic</span>
|3040
|3040
|nostalgic
|nostalgic
|NA
|NA
|-
|If
|3042
|if
|IF
|-
|Unaccomplished
|3044
|unaccomplished
|UA
|}
|}


[[Category:Help]]
[[Category:Help]]
[[Category:Editing help]]
[[Category:Editing help]]

Latest revision as of 03:15, 4 April 2025

A namespace is a collection of pages with similar purpose. It appears as a prefix to page names. The MediaWiki software has many default namespaces, and Yume Wiki uses them for the wikis it hosts.

Basic information on namespaces can be found on the MediaWiki help page.

Definition

The most basic part of a namespace is the name itself, which is the prefix the page has. Each namespace also has a number, which acts as a unique ID, and is always even. Adding 1 to the namespace number gives the number of the corresponding talk space, used for discussing the subject page. It has the same namespace except with talk appended.

For example: the current page's full name is Help:Namespaces. This is in the namespace Help which has the number 12. This page's corresponding talk page is titled Help talk:Namespaces. This is in the namespace Help talk, which has a number of 13.

Usage

Separating wikis into different namespaces creates a static and consistent way to identify pages. For example, Yume Nikki:Hell will not be confused with Dotflow:Hell. Another positive is having different styles when viewing pages using the default Cosmos skin and the Citizen skin.

Namespaces are most commonly used in wikilinks. For example, to link to a page on the Yume Nikki Wiki, the namespace must be prefixed to the page title, such as in [[Yume Nikki:Uboa|Uboa]].

Links to the File and Category namespaces must be prefixed with a colon :. For example, [[File:NoImage.png]] will embed the file directly into the page, but [[:File:NoImage.png]] will produce the link File:NoImage.png.

Namespaces are also seen prefixed to pages listed in categories. This can be useful when a category has pages from multiple namespaces (such as Category:Article Stubs), but is otherwise redundant. There is no way to hide them.

Notable namespaces

Some namespaces have special importance or function.

Main

The main namespace, also called the mainspace, is for the main articles of a wiki. In Yume Wiki, the mainspace was split off to the sister site, the Yume Nikki Fangames Wiki, which uses it for pages on fangames and fangame developers. The reason for the split is that they were orginally individual wikis, and merging them would introduce filename conflicts that cannot be easily resolved.

Special

The Special namespace is reserved for special pages, which have a unique function instead of holding content. This can be information about the wiki, lists of content for maintenance purposes, or tools that are helpful for finding and editing content.

List

The below tables list the namespaces of Yume Wiki in addition to some information about them. For the default and extension namespaces, the purpose of the namespace is described. For the wiki namespaces, it shows the shortened form used in URLs, and for most of them an abbreviated form that users have adopted.

Default Namespaces
Namespace Number Purpose
Media -2 Used to link directly to images: Media:NoImage.png. Has no talk page equivalent.
Special -1 Used for all the special pages, which are lists or tools managed by the software.
(Main) 0 The main space for articles. It has no prefix and the talk space is just Talk:
User 2 User pages. Protected so only the users themselves and admins can edit.
YumeWiki 4 The "Project" namespace uses the internal site name. It is used for meta content.
File 6 All the uploaded files are found here.
MediaWiki 8 Pages for important parts of the wiki, such as system messages and interface CSS.
Template 10 The default namespace for transcluding pages using {{curly braces}}.
Help 12 Helps you help us with the wiki. You are here.
Category 14 Categories allow pages (and other categories) to be organised and sorted. Categories are sometimes used as lists of pages.
Extension Namespaces
Namespace Number Purpose
Property 102 Semantic MediaWiki (SMW) properties that are applied to pages and subobjects.
Unused 104
Form 106 Used by the Page Forms extension for the page forms.
Concept 108 Pseudo-categories for Semantic MediaWiki queries. See a list here.
Forum 110 To contain a forum. Not implemented on Yume Wiki.
Rule 112 Currently unused. See the SMW namespace help page here.
smw/schema 114 For SMW related settings.
Widget 274 The Widgets extension is for transcluding templates made in raw HTML instead of wiki parsing.
TimedText 710 Used by the TimedMediaHandler extension.
Module 828 Lua scripts for Scribunto.
Gadget 2300 Javascript or CSS tweaks that can be applied in the user preferences page - extension link
Gadget definition 2302 Alternate place for defining gadgets; see here.
Wiki Namespaces
Namespace Number URL Abbr
Yume Nikki 3000 yume YN
Yume 2kki 3002 2kki Y2
Dotflow 3004 flow DF
Someday 3006 someday SD
Deep Dreams 3008 deepdreams DD
Answered Prayers 3010 prayers AP
Amillusion 3012 amillusion AM
Uneven Dream 3014 unevendream UD
Braingirl 3016 braingirl BG
Collective Unconscious 3018 unconscious CU
Cerasus 3020 cerasus
Muma Rope 3022 muma MR
YNOproject 3024 ynoproject YNO
Dream Genie 3026 genie DG
Mikan Muzou 3028 mikan MM
Ultra Violet 3030 ultraviolet UV
She Awaits 3032 sheawaits SA
Oversomnia 3034 oversomnia OS
Yume Tagai 3036 tagai
Yume Tsushin 3038 tsushin YT
NostAlgic 3040 nostalgic NA
If 3042 if IF
Unaccomplished 3044 unaccomplished UA