Difference between revisions of "Template:Cite OEIS/sandbox"
imported>DePiep m (DePiep moved page Template:Cite OEIS/Cite to Template:Cite OEIS/sandbox: should be following parent) |
imported>Mirokado (track live template) |
||
| Line 11: | Line 11: | ||
|#default={{{sequencenumber|{{#if:1|{{{1|}}}}}}}} | |#default={{{sequencenumber|{{#if:1|{{{1|}}}}}}}} | ||
}} | }} | ||
| − | |title = {{#if:{{{sequencenumber|}}}{{{1|}}}|Sequence | + | |title = {{#if:{{{sequencenumber|}}}{{{1|}}}|Sequence<!-- |
--> {{{sequencenumber|{{#if:1|{{{1|}}}}}}}}{{#if:{{{name|{{{2|}}}}}}| ({{{name|{{#if:1|{{{2|}}}}}}}})}}<!-- | --> {{{sequencenumber|{{#if:1|{{{1|}}}}}}}}{{#if:{{{name|{{{2|}}}}}}| ({{{name|{{#if:1|{{{2|}}}}}}}})}}<!-- | ||
-->{{#switch:{{{subpage|}}}|=|list=: list|graph=: graph|refs=: references|listen=: into music (midi audio)|history=: history|text=: text|internal|internal_format|internal format=: internal format|#default=}}|OEIS (home page)}} | -->{{#switch:{{{subpage|}}}|=|list=: list|graph=: graph|refs=: references|listen=: into music (midi audio)|history=: history|text=: text|internal|internal_format|internal format=: internal format|#default=}}|OEIS (home page)}} | ||
|website = The [[On-Line Encyclopedia of Integer Sequences]] | |website = The [[On-Line Encyclopedia of Integer Sequences]] | ||
|publisher = OEIS Foundation | |publisher = OEIS Foundation | ||
| − | |editor-first= {{{editor-first|N.J.A.}}} | + | |editor-first= {{{editor-first|N. J. A.}}} |
| − | |editor-last = {{{editor-last|Sloane}}} | + | |editor-last = {{{editor-last |Sloane}}} |
|editor-link = {{{editor-link |Neil Sloane}}} | |editor-link = {{{editor-link |Neil Sloane}}} | ||
| − | |accessdate = {{{accessdate|}}} | + | |accessdate = {{{accessdate|}}}{{{access-date|}}} |
| − | + | |ref={{{ref|}}} | |
| + | |mode={{{mode|}}} | ||
}}<!-- | }}<!-- | ||
-->{{#switch:{{{subpage|}}}|=|list|graph|refs|listen|history|text|internal|internal_format|internal format=<!-- all ok | -->{{#switch:{{{subpage|}}}|=|list|graph|refs|listen|history|text|internal|internal_format|internal format=<!-- all ok | ||
| − | -->|#default={{#invoke:Preview warning|main|1=[[Template: | + | -->|#default={{#invoke:Preview warning|main|1=[[Template:Cite OEIS]]: unknown subpage "{{{subpage|}}}". Use: (none), list, graph, refs, listen, history, text, iternal.}}{{main other||[[:Category:Pages using OEIS references with unknown parameters|*]]}}}}<!-- |
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using OEIS references with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite OEIS]] with unknown parameter "_VALUE_"|ignoreblank=y<!-- | -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using OEIS references with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite OEIS]] with unknown parameter "_VALUE_"|ignoreblank=y<!-- | ||
| − | -->|1 |2 |sequencenumber |name |subpage |accessdate |editor-link |editor-first |editor-last }}<!-- | + | -->|1 |2 |sequencenumber |name |subpage |accessdate |access-date |editor-link |editor-first |editor-last |formalname | mode }}<!-- |
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Revision as of 20:07, 20 November 2020
Sloane, N. J. A. (ed.). "OEIS (home page)". The On-Line Encyclopedia of Integer Sequences. OEIS Foundation.
| This is the template sandbox page for Template:Cite OEIS (diff). See also the companion subpage for test cases. |
| 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 {{SloanesRef}}.
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
| The above documentation is transcluded from Template:Cite OEIS/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |