Difference between revisions of "Template:Cite OEIS/doc"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(add {{documentation subpage}})
imported>Mirokado
(corrections)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
{{cs1 wrapper|base=Cite web}}
 
{{cs1 wrapper|base=Cite web}}
 +
{{Lua|Module:Preview warning|Module:Check for unknown parameters}}
 +
 
This template creates a reference to the '''[[On-Line Encyclopedia of Integer Sequences]] (OEIS)'''. Parameter {{para|1}} is the identifying A-number, {{para|2}} (optional) is the name of the sequence:
 
This template creates a reference to the '''[[On-Line Encyclopedia of Integer Sequences]] (OEIS)'''. Parameter {{para|1}} is the identifying A-number, {{para|2}} (optional) is the name of the sequence:
  
Line 7: Line 9:
  
  
Before April 2018, this template was named <nowiki>{{SloanesRef}}</nowiki>.
+
By default, this template generates a ref anchor which can be addressed using {{tlx|sfn|Sloane "''sequence number''"}} etc.
 +
 
 +
Before April 2018, this template was named <code><nowiki>{{SloanesRef}}</nowiki></code>.
  
 
==Usage==
 
==Usage==
Line 20: Line 24:
  
  
When in doubt, or the template does not show as expected: add {{para|1, 2}} (''required'' when the input contains a "=": sign):
+
When in doubt, or the template does not show as expected: add {{para|1, 2}} (''required'' when the input contains an "=" sign):
 
* <nowiki>{{Cite OEIS|1=A100000|2=Ishango bone}}</nowiki> &rarr;
 
* <nowiki>{{Cite OEIS|1=A100000|2=Ishango bone}}</nowiki> &rarr;
 
: {{Cite OEIS|1=A100000|2=Ishango bone}}
 
: {{Cite OEIS|1=A100000|2=Ishango bone}}
Line 30: Line 34:
  
 
==Other parameters==
 
==Other parameters==
* {{para|formalname}} -- {{para|name}} might be shortened for conveniance. {{para|formalname}} then can hold the longer, forma OEIS  name for future use.
+
* {{para|formalname}} -- {{para|name}} might be shortened for convenience. {{para|formalname}} can then hold the longer, formal OEIS  name for future use.
 
 
 
* {{para|accessdate}}
 
* {{para|accessdate}}
 
: To overwrite "[[Neil Sloane|Sloane, N.J.A.]] (ed.).":
 
: To overwrite "[[Neil Sloane|Sloane, N.J.A.]] (ed.).":
 
* {{para|editor-link}}
 
* {{para|editor-link}}
 
* {{para|editor-first}}
 
* {{para|editor-first}}
* {{para|editor-last}}
+
* {{para|editor-last}} (this also changes the default ref anchor accordingly: {{tlx|sfn|''editor-last'' "''sequence number''"}})
 +
* {{para|ref}} specifies an explicit ref anchor. Do not use <code>cite web</code>'s default value of <code>harv</code>.
 +
* {{para|mode}} specifies the generated citation format. Default is <code>cs1</code>, specify <code>cs2</code> for <code>citation</code>-style.
  
 
===OEIS subpages===
 
===OEIS subpages===
Line 67: Line 72:
 
| style="border:none" | &rarr; {{Cite OEIS|A046970|subpage=listen}}
 
| style="border:none" | &rarr; {{Cite OEIS|A046970|subpage=listen}}
 
|}
 
|}
 +
 +
== Tracking category ==
 +
* {{clc|Pages using OEIS references with unknown parameters}}
  
 
==OEIS reference templates==
 
==OEIS reference templates==
Line 72: Line 80:
  
 
==TemplateData==
 
==TemplateData==
{{TemplateData header}}
+
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{collapse top}}
+
{{TemplateData header|noheader=1}}
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 91: Line 99:
 
"editor-first": {},
 
"editor-first": {},
 
"editor-last": {},
 
"editor-last": {},
"editor-link": {}
+
"editor-link": {},
 +
"access-date": {},
 +
"ref": {},
 +
"mode": {}
 
}
 
}
 
}
 
}
 
</templatedata>
 
</templatedata>
{{collapse bottom}}
+
{{Collapse bottom}}
 +
 
 
{{Template reference list}}
 
{{Template reference list}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
[[Category:Mathematics source templates|OEIS]]
 
[[Category:Mathematics source templates|OEIS]]
 
+
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 01:33, 26 November 2020

This template creates a reference to the On-Line Encyclopedia of Integer Sequences (OEIS). Parameter |1= is the identifying A-number, |2= (optional) is the name of the sequence:

  • {{Cite OEIS|A100000|Ishango bone}} →
Sloane, N. J. A. (ed.). "Sequence A100000 (Ishango bone)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.


By default, this template generates a ref anchor which can be addressed using {{sfn|Sloane "sequence number"}} etc.

Before April 2018, this template was named {{SloanesRef}}.

Usage

The template requires the sequence number and optionally a name.

  • {{Cite OEIS|A100000}}
Sloane, N. J. A. (ed.). "Sequence A100000". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.


  • {{Cite OEIS|A100000|Ishango bone}}
Sloane, N. J. A. (ed.). "Sequence A100000 (Ishango bone)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.


When in doubt, or the template does not show as expected: add |1, 2= (required when the input contains an "=" sign):

  • {{Cite OEIS|1=A100000|2=Ishango bone}} →
Sloane, N. J. A. (ed.). "Sequence A100000 (Ishango bone)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.


... or use the parameter names |sequencenumber=, |name=:
  • {{Cite OEIS|sequencenumber=A100000|name=Ishango bone}} →
Sloane, N. J. A. (ed.). "Sequence A100000 (Ishango bone)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.

Other parameters

  • |formalname= -- |name= might be shortened for convenience. |formalname= can then hold the longer, formal OEIS name for future use.
  • |accessdate=
To overwrite "Sloane, N.J.A. (ed.).":
  • |editor-link=
  • |editor-first=
  • |editor-last= (this also changes the default ref anchor accordingly: {{sfn|editor-last "sequence number"}})
  • |ref= specifies an explicit ref anchor. Do not use cite web's default value of harv.
  • |mode= specifies the generated citation format. Default is cs1, specify cs2 for citation-style.

OEIS subpages

The OEIS site can have several subpages with a sequence page. These can be linked using |subpage=. Options:

|subpage= (default) Sloane, N. J. A. (ed.). "Sequence A046970". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=list Sloane, N. J. A. (ed.). "Sequence A046970: list". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=graph Sloane, N. J. A. (ed.). "Sequence A046970: graph". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=refs Sloane, N. J. A. (ed.). "Sequence A046970: references". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=history Sloane, N. J. A. (ed.). "Sequence A046970: history". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=text Sloane, N. J. A. (ed.). "Sequence A046970: text". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=internal Sloane, N. J. A. (ed.). "Sequence A046970: internal format". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
|subpage=listen Sloane, N. J. A. (ed.). "Sequence A046970: into music (midi audio)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.

Tracking category

OEIS reference templates

Template:OEIS reference templates

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for Cite OEIS

No description.

Template parameters

ParameterDescriptionTypeStatus
Sequencenumbersequencenumber 1

no description

Unknownoptional
Namename 2

no description

Unknownoptional
Accessdateaccessdate

no description

Unknownoptional
Subpagesubpage

no description

Unknownoptional
Editor-firsteditor-first

no description

Unknownoptional
Editor-lasteditor-last

no description

Unknownoptional
Editor-linkeditor-link

no description

Unknownoptional
Access-dateaccess-date

no description

Unknownoptional
Refref

no description

Unknownoptional
Modemode

no description

Unknownoptional

References