Help:Namespaces
| Driver's Manual | ||||||||||||
| Page | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| New • Search • Info • Move • Delete | ||||||||||||
| Editing | ||||||||||||
| ||||||||||||
| Account | ||||||||||||
| Account • Preferences | ||||||||||||
| Directory... |
The title of a page must be given when creating it. It is the large, styled text at the top of the page.
Change
- Assuming it is not under protection, the title can be moved using the "Move" edit tab or directly with Special:MovePage.
- If only the display should be changed, use
{{displaytitle:}}or a wrapping template such as {{italic title}}. - If the title should be hidden (and you have express permission to do so), add
__NOTITLE__at the top – see the Main Page for an example. This method is now preferred over manual targeting of the#firstHeadingselector.
Parts
One of several function hooks can retrieve specific parts of the title. Generally:
Prefix:Rootpage/Subpage
There is also {{#titleparts:}} which works to the same end, but with a bit more involved user input. Scribunto has a built-in mw.title library; Get the title object with mw.title.getCurrentTitle() then use one of several methods to retrieve one or more parts/data as a text string.
Example page title: Help:Parser functions/rreplace
For the Lua column:
local MWTitle = mw.title.getCurrentTitle()
| Parser function | Normal | URL-encoded link | Lua | |
|---|---|---|---|---|
{{PAGENAME}}
|
Parser functions/rreplace | Parser_functions/rreplace | MWTitle.text
| |
{{FULLPAGENAME}}
|
Help:Parser functions/rreplace | Help:Parser_functions/rreplace | MWTitle.prefixedText
| |
{{BASEPAGENAME}}
|
Parser functions | Parser_functions | MWTitle.baseText
| |
{{ROOTPAGENAME}}
|
Parser functions | Parser_functions | MWTitle.rootText
| |
{{SUBPAGENAME}}
|
rreplace | rreplace | MWTitle.subpageText
|
If seeking to compare equality of two page titles, usually it is best to use {{PAGEID}} instead, as various transclusion factors may influence the encoding level of a string at different points of evaluation.
Namespaces
Namespaces refer to each different type, or perhaps "class" of page that exists on the wiki. Each has unique properties and quirks that define its identity, and how it interacts with others. The namespace of a given page is easily identifiable by the prefix in the title, with the principal exception of the mainspace, which has none.
Every content namespace (except Special) has a corresponding talk page. The latter should be assumed to operate identically unless noted otherwise.
Index list
| # | Namespace | Purpose | Example |
|---|---|---|---|
0 |
Main
|
All content articles about Cars. | Lightning McQueen |
1 |
Talk
|
Forums for user discussion, about edits and proposals to the respective page. | Talk:Mater |
2 |
User
|
Each user has their own personal userpage - see Pixar Cars Wiki:Userspace for details and policies. A userpage can also serve as the base for additional sub-pages. | User:RodRedlineM1 |
3 |
User talk
|
See Talk, but for userpages - Every user also has one of these, which can be used for free and open discussion with any other user.
|
User talk:RodRedlineM1 |
4 |
Pixar Cars Wiki
|
(Project) - Pages devoted to the Pixar Cars Wiki itself: Often covering guidelines, policies, and other information about the wiki's goals, history, and administration. | Pixar Cars Wiki:About |
5 |
Pixar Cars Wiki talk
|
Pixar Cars Wiki talk:Manual of Style | |
6 |
File
|
Houses each image, video, and audio sample. A file page also displays licensing information for its respective upload. | File:LightningTent.jpg |
7 |
File talk
|
File talk:Site-favicon.ico | |
8 |
MediaWiki
|
System pages that control the functions and appearance of the site itself. Only administrators can edit them, but any user may offer or discuss suggestions on the corresponding talk page. | MediaWiki:Common.css |
9 |
MediaWiki talk
|
MediaWiki talk:Sitenotice | |
10 |
Template
|
Pages that can be transcluded into others via use of {{curly braces}}. | Template:Mattel-cars |
11 |
Template talk
|
Template talk:Delete | |
12 |
Help
|
Documentation pages, designed as a resource for new and returning users to learn more about editing the wiki. | Help:Editing |
13 |
Help talk
|
Help talk:Directory | |
14 |
Category
|
The base of a category, typically with a brief description of its purpose, as well as sorting of appropriate sub-categories. | Category:Dinoco |
15 |
Category talk
|
Category talk:Articles pending deletion | |
| Custom namespaces | |||
100 |
Gallery
|
See Help:Gallery | Gallery:Flo |
101 |
Gallery talk
|
Gallery talk:Flo | |
102 |
Vehicle
|
See Help:Vehicle | Vehicle:Hydraulic Ramone |
103 |
Vehicle talk
|
Vehicle talk:Hydraulic Ramone | |
| Custom namespaces (extension) | |||
106 |
Form
|
Preset HTML forms (Page Forms) | |
107 |
Form talk
|
||
828 |
Module
|
Lua script modules (Scribunto) | Module:Tdoc |
829 |
Module talk
|
||
2300 |
Gadget
|
Gadget names and content (Gadgets) - Alias/extension of MediaWiki space
|
MediaWiki:Gadget-HotCat |
2301 |
Gadget talk
|
||
2302 |
Gadget definition
|
MediaWiki:Gadget-HotCat.js | |
2303 |
Gadget definition talk
|
||
Functions
Like above, several functions exist to retrieve the namespace data of a page.
| Retrieve | Primary Method | Secondary Method(s) |
|---|---|---|
| Name (Prefix) | {{NAMESPACE}}
|
{{SUBJECTSPACE}}{{TALKSPACE}}
|
| Index # | {{NAMESPACENUMBER}}
|
{{ns:}} (and url-encoded counterpart {{nse:}}) will return the title from an input of either the name or number.

