This site is supported by donations to The OEIS Foundation.

Template:Allpages/test

From OeisWiki
Jump to: navigation, search
This is the testing template for the {{allpages}} OEIS Wiki utility template.

NOTE: The Media [virtual] namespace ({{namespace ID}} = −2) is disabled on OEISWiki.

Tests

Tests with namespace names

Code Result
{{allpages|media}} Allpages error: The Media [virtual] namespace (−2) is disabled in OEIS Wiki!
   
{{allpages|special}} Special
   
{{allpages}}

{{allpages|main}}
{{allpages|article}}

Article

Article
Article

   
{{allpages|talk}}

{{allpages|article talk}}
{{allpages|article+}}

Article talk

Article talk
Article talk

   
{{allpages|user}} User
   
{{allpages|user talk}}

{{allpages|user+}}

User talk

User talk

   
{{allpages|project}}

{{allpages|oeiswiki}}

OeisWiki

OeisWiki

   
{{allpages|project talk}}

{{allpages|project+}}
{{allpages|oeiswiki talk}}
{{allpages|oeiswiki+}}

OeisWiki talk

OeisWiki talk
OeisWiki talk
OeisWiki talk

   
{{allpages|image}}

{{allpages|file}}

File

File

   
{{allpages|image talk}}

{{allpages|image+}}
{{allpages|file talk}}
{{allpages|file+}}

File talk

File talk
File talk
File talk

   
{{allpages|mediawiki}} MediaWiki
   
{{allpages|mediawiki talk}}

{{allpages|mediawiki+}}

MediaWiki talk

MediaWiki talk

   
{{allpages|template}} Template
   
{{allpages|template talk}}

{{allpages|template+}}

Template talk

Template talk

   
{{allpages|help}} Help
   
{{allpages|help talk}}

{{allpages|help+}}

Help talk

Help talk

   
{{allpages|category}} Category
   
{{allpages|category talk}}

{{allpages|category+}}

Category talk

Category talk

   
{{allpages|extras}} Extras
   
{{allpages|extras talk}}

{{allpages|extras+}}

Extras talk

Extras talk

Tests with namespace abbreviations

Code Result
{{allpages|m}} Allpages error: The Media [virtual] namespace (−2) is disabled in OEIS Wiki!
   
{{allpages|s}} Special
   
{{allpages|a}}

{{allpages}}

Article

Article

   
{{allpages|a+}}

{{allpages|+}}

Article talk

Article talk

   
{{allpages|u}} User
   
{{allpages|u+}} User talk
   
{{allpages|p}}

{{allpages|ow}}

OeisWiki

OeisWiki

   
{{allpages|p+}}

{{allpages|ow+}}

OeisWiki talk

OeisWiki talk

   
{{allpages|i}}

{{allpages|f}}

File

File

   
{{allpages|i+}}

{{allpages|f+}}

File talk

File talk

   
{{allpages|mw}} MediaWiki
   
{{allpages|mw+}} MediaWiki talk
   
{{allpages|t}} Template
   
{{allpages|t+}} Template talk
   
{{allpages|h}} Help
   
{{allpages|h+}} Help talk
   
{{allpages|c}} Category
   
{{allpages|c+}} Category talk
   
{{allpages|e}} Extras
   
{{allpages|e+}} Extras talk

Tests with namespace IDs

Code Result
{{allpages|-2}} Allpages error: The Media [virtual] namespace (−2) is disabled in OEIS Wiki!
{{allpages|-1}} Special
{{allpages|0}} Article
{{allpages|1}} Article talk
{{allpages|2}} User
{{allpages|3}} User talk
{{allpages|4}} OeisWiki
{{allpages|5}} OeisWiki talk
{{allpages|6}} File
{{allpages|7}} File talk
{{allpages|8}} MediaWiki
{{allpages|9}} MediaWiki talk
{{allpages|10}} Template
{{allpages|11}} Template talk
{{allpages|12}} Help
{{allpages|13}} Help talk
{{allpages|14}} Category
{{allpages|15}} Category talk
{{allpages|100}} Extras
{{allpages|101}} Extras talk

Namespaces

Code Result
{{ns:-2}} Media
{{ns:-1}} Special
{{ns:0}}
{{ns:1}} Talk
{{ns:2}} User
{{ns:3}} User talk
{{ns:4}} OeisWiki
{{ns:5}} OeisWiki talk
{{ns:6}} File
{{ns:7}} File talk
{{ns:8}} MediaWiki
{{ns:9}} MediaWiki talk
{{ns:10}} Template
{{ns:11}} Template talk
{{ns:12}} Help
{{ns:13}} Help talk
{{ns:14}} Category
{{ns:15}} Category talk
{{ns:100}} Extras
{{ns:101}} Extras talk

Wiki variables

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}}   3
{{CURRENTDAY2}}[3]   03
{{CURRENTDAYNAME}}   Sunday
{{CURRENTDOW}}   0
{{CURRENTMONTH}}   11
{{CURRENTMONTHABBREV}}   Nov
{{CURRENTMONTHNAME}}   November
{{CURRENTMONTHNAMEGEN}}   November
{{CURRENTTIME}}   08:58
{{CURRENTWEEK}}   44
{{CURRENTYEAR}}   2024


Local date and time
(OEIS Wiki Server Time)
variable generates
{{LOCALDAY}}   3
{{LOCALDAY2}}[3]   03
{{LOCALDAYNAME}}   Sunday
{{LOCALDOW}}   0
{{LOCALMONTH}}   11
{{LOCALMONTHABBREV}}   Nov
{{LOCALMONTHNAME}}   November
{{LOCALMONTHNAMEGEN}}   November
{{LOCALTIME}}   03:58
{{LOCALWEEK}}   44
{{LOCALYEAR}}   2024


Common MediaWiki variables
variable generates
{{BASEPAGENAME}}[4]   Allpages
{{BASEPAGENAMEE}}[5][6]   Allpages
{{FULLPAGENAME}}   Template:Allpages/test
{{FULLPAGENAMEE}}[5]   Template:Allpages/test
{{NAMESPACE}}   Template
{{NAMESPACEE}}[5]   Template
{{NUMBEROFARTICLES}}   179,327
{{NUMBEROFFILES}}   3,847
{{PAGENAME}}   Allpages/test
{{PAGENAMEE}}[5]   Allpages/test
{{SUBPAGENAME}}[7]   test
{{SUBPAGENAMEE}}[5][8]   test
{{REVISIONID}}[9]   1579508
{{CURRENTVERSION}}   1.30.0
{{SCRIPTPATH}}   /w
{{SERVER}}   https://oeis.org
{{SERVERNAME}}   oeis.org
{{SITENAME}}   OeisWiki



Code

<noinclude>{{Documentation}}</noinclude><includeonly><span class="plainlinks">{{{{{subst|}}}#switch: {{ns ID|{{{1|0}}}}}<!--

Concerning the {{{subst|}}} parameter (with empty string as default): see subst: keyword in http://en.wikipedia.org/wiki/Wikipedia:Substitution

--><!--

  ***** Virtual namespaces *****

-->
|  -2 = {{error|Allpages error: The {{ns:-2}} [virtual] namespace (−2) is disabled in OEIS Wiki! }}
|  -1 = [[{{ns:-1}}:Specialpages|{{ns:-1}}]] <!-- NOTE: The ''from'' and ''to'' parameters don't work in the {{ns:-1}} Special [virtual] namespace. --><!--

  ***** Namespaces *****

-->
|   0 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=0}} Article<!--{{Mediawiki:Blanknamespace}}--><!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   1 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=1}} Article talk<!--{{ns:1}}--><!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   2 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=2}} {{ns:2}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   3 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=3}} {{ns:3}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   4 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=4}} {{ns:4}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   5 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=5}} {{ns:5}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   6 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=6}} {{ns:6}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   7 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=7}} {{ns:7}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   8 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=8}} {{ns:8}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|   9 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=9}} {{ns:9}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  10 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=10}} {{ns:10}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  11 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=11}} {{ns:11}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  12 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=12}} {{ns:12}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  13 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=13}} {{ns:13}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  14 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=14}} {{ns:14}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
|  15 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=15}} {{ns:15}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
| 100 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=100}} {{ns:100}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]
| 101 = [{{fullurl:{{ns:-1}}:Allpages|from={{#urlencode:{{{from|{{{2|}}}}}}}}&to={{#urlencode:{{{to|{{{3|}}}}}}}}&namespace=101}} {{ns:101}}<!--
-->{{#if: {{{from|{{{2|}}}}}}{{{to|{{{3|}}}}}} | (''from:'' {{{from|{{{2|}}}}}}, ''to:'' {{{to|{{{3|}}}}}})}}]<!--
-->
| #default = {{error|Allpages error: Invalid namespace "{{{1|0}}}" }}
}}</span></includeonly>

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).