Difference between revisions of "Template:Cite OEIS/doc"
imported>David Eppstein (addl params) |
imported>Mirokado (updates including new default ref value, mode param, various ce) |
||
| Line 9: | 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 <nowiki><code>{{SloanesRef}}</code></nowiki>. | ||
==Usage== | ==Usage== | ||
| Line 22: | Line 24: | ||
| − | When in doubt, or the template does not show as expected: add {{para|1, 2}} (''required'' when the input contains | + | 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> → | * <nowiki>{{Cite OEIS|1=A100000|2=Ishango bone}}</nowiki> → | ||
: {{Cite OEIS|1=A100000|2=Ishango bone}} | : {{Cite OEIS|1=A100000|2=Ishango bone}} | ||
| Line 32: | Line 34: | ||
==Other parameters== | ==Other parameters== | ||
| − | * {{para|formalname}} -- {{para|name}} might be shortened for | + | * {{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=== | ||
Revision as of 18:54, 25 November 2020
| File:Edit-copy green.svg | This is a documentation subpage for Template:Cite OEIS. It contains usage information, categories and other content that is not part of the original template page. |
| File:OOjs UI icon information-progressive.svg | This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
| This template uses Lua: |
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 <code>{{SloanesRef}}</code>.
Contents
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 usecite web's default value ofharv.|mode=specifies the generated citation format. Default iscs1, specifycs2forcitation-style.
OEIS subpages
The OEIS site can have several subpages with a sequence page. These can be linked using |subpage=. Options:
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.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
References