This site is supported by donations to The OEIS Foundation.

OeisWiki:Project

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.

Namespaces

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 oeis.org 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]


Namespaces
variable generates
(common namespaces: -2 to 15) (used at all MediaWiki projects)
{{ns:-2}}[1] {{ns:Media}}[1]   Media
{{ns:-1}} {{ns:Special}}   Special
{{ns:0}}[2]
 
 
{{MediaWiki:Blanknamespace}}
 
  (Main)
{{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
{{CURRENTDAY}}   19
{{CURRENTDAY2}}[3]   19
{{CURRENTDAYNAME}}   Sunday
{{CURRENTDOW}}   0
{{CURRENTMONTH}}   08
{{CURRENTMONTHABBREV}}   Aug
{{CURRENTMONTHNAME}}   August
{{CURRENTMONTHNAMEGEN}}   August
{{CURRENTTIME}}   14:04
{{CURRENTWEEK}}   33
{{CURRENTYEAR}}   2018


Local date and time
(OEIS Wiki Server Time)
variable generates
{{LOCALDAY}}   19
{{LOCALDAY2}}[3]   19
{{LOCALDAYNAME}}   Sunday
{{LOCALDOW}}   0
{{LOCALMONTH}}   08
{{LOCALMONTHABBREV}}   Aug
{{LOCALMONTHNAME}}   August
{{LOCALMONTHNAMEGEN}}   August
{{LOCALTIME}}   10:04
{{LOCALWEEK}}   33
{{LOCALYEAR}}   2018


Common MediaWiki variables
variable generates
{{BASEPAGENAME}}[4]   Project
{{BASEPAGENAMEE}}[5][6]   Project
{{FULLPAGENAME}}   OeisWiki:Project
{{FULLPAGENAMEE}}[5]   OeisWiki:Project
{{NAMESPACE}}   OeisWiki
{{NAMESPACEE}}[5]   OeisWiki
{{NUMBEROFARTICLES}}   179,152
{{NUMBEROFFILES}}   2,010
{{PAGENAME}}   Project
{{PAGENAMEE}}[5]   Project
{{SUBPAGENAME}}[7]   Project
{{SUBPAGENAMEE}}[5][8]   Project
{{REVISIONID}}[9]   1616981
{{CURRENTVERSION}}   1.30.0
{{SCRIPTPATH}}   /w
{{SERVER}}   https://oeis.org
{{SERVERNAME}}   oeis.org
{{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

Notes

  1. 1.0 1.1 The Media namespace ({{namespace ID|Media}} = −2) is disabled on OEIS Wiki.
  2. Returns empty string.
  3. 3.0 3.1 Always show 2 digits (with leading 0 if required).
  4. See {{basepage name}}.
  5. 5.0 5.1 5.2 5.3 5.4 URL encoded version.
  6. See {{basepage name|e}}.
  7. See {{subpage name}}.
  8. See {{subpage name|e}}.
  9. Revision ID of the current page (changes with each saved edit).