(make tables sortable) |
(reorganise and rewrite) |
||
(3 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 | 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}} talk:{{PAGENAME}}</code>. This is in the namespace <code>{{SUBJECTSPACE}} talk</code>, which has a number of <code>{{NAMESPACENUMBER:{{TALKSPACE}}:{{PAGENAME}}}}</code>. | |||
==Usage== | ==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 {{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--> | ||
==Notable namespaces== | |||
Some namespaces have special importance or function. | |||
<!-- TBA add more specific explanations --> | |||
== | ===Main=== | ||
The | 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. | ||
===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 | ==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 sortable" style="width:100%; text-align:center;" | {| class="wikitable mw-collapsible mw-collapsed sortable" style="width:100%; text-align:center;" | ||
Line 33: | Line 46: | ||
|(Main) | |(Main) | ||
|0 | |0 | ||
|The main space for articles. It | |The main space for articles. It has no prefix and the talk space is just <code>Talk:</code> | ||
|- | |- | ||
|User | |User | ||
|2 | |2 | ||
|User pages | |User pages. Protected so only the users themselves and admins can edit. | ||
|- | |- | ||
|{{SITENAME}} | |{{SITENAME}} | ||
|4 | |4 | ||
|The "Project" namespace uses the site name | |The "Project" namespace uses the internal site name. It is used for meta content. | ||
|- | |- | ||
|File | |File | ||
|6 | |6 | ||
|All the [[Help:Files|files | |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. | |Categories allow pages (and other categories) to be organised and sorted. Categories are sometimes used as lists of pages. | ||
|} | |} | ||
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 | ||
| | |Pseudo-categories for Semantic MediaWiki queries. See a list [[Special:Concepts|here]]. | ||
|- | |- | ||
|Forum | |Forum | ||
|110 | |110 | ||
| | |To contain a forum. Not implemented on Yume Wiki. | ||
|- | |- | ||
|Rule | |Rule | ||
Line 96: | Line 109: | ||
|smw/schema | |smw/schema | ||
|114 | |114 | ||
| | |For SMW related settings. | ||
|- | |- | ||
|data-sort-value=z|… | |data-sort-value=z|… | ||
Line 140: | Line 153: | ||
!Number | !Number | ||
!URL | !URL | ||
!<span class="explain" title="These are | !<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 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.
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. |
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. |
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 |