|
Parallel Visions: City of Angels City of Demons ebook and trade paperback available on Amazon (or here). |
![]() |
|||
MediaWiki Namespace notes
List of namespaces
The two pseudo-namespaces, main namespace and 15 auxiliary namespaces in this project (Meta) are as follows (the variables for them are also shown).
Note that the number of pages in each namespace may not be displayed on all MediaWiki projects, because this counting feature may be disabled: on this Wiki, per-namespace page counting is currently disabled.
| Variables | Alternate syntax | Name, linked to list of all such pages | Nr. of pages (see note above) |
Notes |
|---|---|---|---|---|
| {{ns:-2}} | {{ns:media}} | "Media" | pseudo-namespace for images and other files themselves, as opposed to the image description pages; see also below | |
| {{ns:-1}} | {{ns:special}} | "Special" | pseudo-namespace for special pages (list: Special:SpecialPages) | |
| {{ns:0}} | main | disabled | main namespace, no prefix, or optionally a colon (this is needed when using the page as template) | |
| {{ns:1}} | {{ns:talk}} | Talk | disabled | see Help:Talk page for this and the following odd-numbered namespaces |
| {{ns:2}} | {{ns:user}} | User | disabled | registered users (list: Special:ListUsers) have a user homepage User:username (linked to by the system from user names in lists of edits, e.g. on page histories, and from signatures on talk pages); this and subpages of it can be used to present oneself, for project-related bookmarks, and for drafts, tests, and other working material. One can put here material to give oneself one-step access to it from any page in the same project, and one can put here links to give oneself two-step access to the link targets from any page in the same project as the user page. For users who do not log in, the same applies, with the IP as username. Dynamic IPs are a complication. |
| {{ns:3}} | {{ns:user_talk}} | User talk | disabled | |
| {{ns:4}} | {{ns:project}} | FritzWiki | disabled | the project namespace for matters about the project, such as guidelines and discussions; see also the [[Help:|Help:]] namespace |
| {{ns:5}} | {{ns:project_talk}} | FritzWiki talk | disabled | |
| {{ns:6}} | {{ns:file}} | File | disabled | images and other uploaded files, with image description pages (list: Special:ListFiles) |
| {{ns:7}} | {{ns:file_talk}} | File talk | disabled | |
| {{ns:8}} | {{ns:mediawiki}} | MediaWiki | disabled | system messages (list: Special:AllMessages), editable by users, or if protected, by sysops |
| {{ns:9}} | {{ns:mediawiki_talk}} | MediaWiki talk | disabled | |
| {{ns:10}} | {{ns:template}} | Template | disabled | the default namespace for templates: the wikitext code {{name }} refers to and includes the page Template:name |
| {{ns:11}} | {{ns:template_talk}} | Template talk | disabled | |
| {{ns:12}} | {{ns:help}} | Help | disabled | typically used for the MediaWiki User's Guide, with the wikitext a frequently refreshed copy of the master version on Meta-Wikipedia, but with project-specific templates |
| {{ns:13}} | {{ns:help_talk}} | Help talk | disabled | |
| {{ns:14}} | {{ns:category}} | Category | disabled | each page (list: Special:Categories) represents a category of pages, with each category page displaying a list of pages in that category and optional additional text. |
| {{ns:15}} | {{ns:category_talk}} | Category talk | disabled |
Note that all characters of namespace prefixes are case-insensitive, so one can write, for example, "mediawiki". Also, underscores in namespace prefixes are equivalent to any non-zero number of spaces (leading or trailing spaces or underscores are ignored) : underscores are used only when encoding URLs but treated otherwise like spaces.
These names are set in the MessagesXX.php language files. The English defaults are below:
$namespaceNames = array(
NS_MEDIA => 'Media',
NS_SPECIAL => 'Special',
NS_MAIN => '',
NS_TALK => 'Talk',
NS_USER => 'User',
NS_USER_TALK => 'User_talk',
# NS_PROJECT set by $wgMetaNamespace
NS_PROJECT_TALK => '$1_talk',
NS_FILE => 'File',
NS_FILE_TALK => 'File_talk',
NS_MEDIAWIKI => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
NS_TEMPLATE => 'Template',
NS_TEMPLATE_TALK => 'Template_talk',
NS_HELP => 'Help',
NS_HELP_TALK => 'Help_talk',
NS_CATEGORY => 'Category',
NS_CATEGORY_TALK => 'Category_talk',
);
[[File:|right|thumbnail|50px]]
Categories[edit]
