This site is supported by donations to The OEIS Foundation.


From OeisWiki
Jump to: navigation, search

A short introduction to namespaces (including Special, (Main), User, Project, Image, MediaWiki, Template, Help, Category, Extras, and their corresponding Talk pages, where applicable), as well as system messages, template files, and other creatures for the purposes of OeisWiki.


In MediaWiki terminology, each Wiki is a project with a chosen topic. Article pages about this topic belong to the (Main) namespace, they are for readers interested in the OEIS.

Some pages are protected, only sysops can edit them. After creating an account, editors (registered users) can discuss protected pages on the associated Article talk page, edit unprotected pages, or create new pages.

User pages

Editors (registered users) have their own User homepage with a corresponding User talk page. In discussions on talk pages users sign contributions with ~~~~ or similar, this results in a timestamp with links to the user page and its talk page. Depending on the preferences, a red link would indicate a not yet created page, it is always okay to create a new talk page for a discussion.

Project pages

Project pages such as Project:About or this page are for issues related to using a Wiki and other meta-topics, and typically irrelevant for readers only interested in the main topic.

Each project selects its own project name, here OeisWiki, and the wiki is configured so that prefix Project: as in Project:About is substituted by OeisWiki: yielding OeisWiki:About where appropriate.

Like other pages all OeisWiki pages have corresponding OeisWiki talk pages.

System messages and templates

MediaWiki system messages are mostly relevant for sysops, but of course all editors (registered users) can discuss system messages on MediaWiki talk pages. A special page lists also unmodified system messages with links to their talk pages.

Template pages are created by editors (registered users) and are purposed to be transcluded or substituted in other pages, and may accept parameters. Unsurprisingly Template talk allows to discuss such templates.

This page uses Template:Allpages in the form {{Allpages|n}} to link to the subset of Special:Allpages belonging to namespace number n as explained below.

Images (and other files), categories, help

This Wiki supports file uploads for a restricted list of file formats, check out File and File talk pages. There are also categories, see Category and Category talk. The number of Help and Help talk pages is limited, see below for related Help pages.

Special pages

All [[Media:]] files belong to a virtual namespace -2, they are created by uploads, a special page shows new images (or other files).

All special pages belong to the virtual namespace -1. [[Special:]] pages cannot be edited and have no corresponding talk page, they are created by the MediaWiki software on the fly depending on the Wiki configuration, installed extensions, and user permissions.

Unlike other namespaces the (Main) namespace 0 does not require a prefix (you may use the optional : (colon) as prefix). If main pages are ever used for transclusion or substitution, a : (colon) indicates the main namespace, e.g. {{:Page}} refers to a [[Page]] in the (Main) namespace, while {{Page}} uses a page [[Template:Page]] from the template namespace (default namespace used for transcluded or substituted pages).

Namespace 2 is for user pages as explained above. 4 is for project pages, 6 for images and other uploaded files, 8 for MediaWiki system messages, 10 for template files, 12 for help pages, 14 for category pages, all explained above. There can be more customized namespaces, here limited to 100 for Extras.

Odd namespace numbers 1, 3, 5, etc. for talk pages correspond to the preceding even namespace numbers 0, 2, 4, etc. The namespace numbers can be relevant for project and language independent templates and links, for most practical purposes using the prefixes is better.

NOTE: The Media namespace ({{namespace ID|Media}} = −2) is disabled on OEIS Wiki.

Wiki variables
[⧼Purge⧽ Template:Wikivar] [<Edit> Template:Wikivar]

variable generates
common namespaces [-2 ... 15] used at all MediaWiki projects
{{ns:-2}} {{ns:Media}}   Media
{{ns:-1}} {{ns:Special}}   Special
{{ns:1}} {{ns:Talk}}   Talk
{{ns:2}} {{ns:User}}   User
{{ns:3}} {{ns:User_talk}}   User talk
{{ns:4}} {{ns:Project}}   OeisWiki
{{ns:5}} {{ns:Project_talk}}   OeisWiki talk
{{ns:6}} {{ns:Image}}   File
{{ns:7}} {{ns:Image_talk}}   File talk
{{ns:8}} {{ns:MediaWiki}}   MediaWiki
{{ns:9}} {{ns:MediaWiki_talk}}   MediaWiki talk
{{ns:10}} {{ns:Template}}   Template
{{ns:11}} {{ns:Template_talk}}   Template talk
{{ns:12}} {{ns:Help}}   Help
{{ns:13}} {{ns:Help_talk}}   Help talk
{{ns:14}} {{ns:Category}}   Category
{{ns:15}} {{ns:Category_talk}}   Category talk
{{ns:100}} {{ns:Extras}}   Extras
{{ns:101}} {{ns:Extras_talk}}   Extras talk

Current date and time
(Universal Time Coordinated—UTC)
variable generates
{{CURRENTDAY2}}[2]   21
{{CURRENTDAYNAME}}   Wednesday
{{CURRENTTIME}}   13:49
{{CURRENTYEAR}}   2018

Local date and time
(OEIS Wiki Server Time)
variable generates
{{LOCALDAY}}   21
{{LOCALDAY2}}[2]   21
{{LOCALDAYNAME}}   Wednesday
{{LOCALDOW}}   3
{{LOCALTIME}}   08:49
{{LOCALYEAR}}   2018

Common MediaWiki variables
variable generates
{{BASEPAGENAME}}[3]   Project
{{BASEPAGENAMEE}}[4][5]   Project
{{FULLPAGENAME}}   OeisWiki:Project
{{FULLPAGENAMEE}}[4]   OeisWiki:Project
{{NAMESPACE}}   OeisWiki
{{NAMESPACEE}}[4]   OeisWiki
{{PAGENAME}}   Project
{{PAGENAMEE}}[4]   Project
{{SUBPAGENAME}}[6]   Project
{{SUBPAGENAMEE}}[4][7]   Project
{{REVISIONID}}[8]   1616981
{{SITENAME}}   OeisWiki

This is not a complete list of all Wiki variables, but it shows important variables supported in all MediaWiki versions since 2006.

See also


  1. Returns empty string.
  2. 2.0 2.1 Always show 2 digits (with leading 0 if required).
  3. See {{basepage name}}.
  4. 4.0 4.1 4.2 4.3 4.4 URL encoded version.
  5. See {{basepage name|e}}.
  6. See {{subpage name}}.
  7. See {{subpage name|e}}.
  8. Revision ID of the current page (changes with each saved edit).