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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎External links: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(Blanked the page)
Line 1: Line 1:
{{Documentation subpage}}
 
{{High-use|2600}}
 
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
 
{{csdoc|lua|lua=yes}}
 
{{csdoc|cs1|lua=yes}}
 
{{csdoc|lead|preprints at the [[arXiv]]}} It links to the abstract at <code><nowiki>http://www.arxiv.org/abs/</nowiki></code>''eprint''.
 
  
=== Usage ===
 
 
To use the template, you need only specify the '''arxiv''' or '''eprint''' parameter. Once you save the page, [[User:Citation bot|Citation bot]] will detect the citation and complete it automatically.
 
 
;Common parameters, horizontal format : <code><nowiki>{{cite arXiv |last= |first= |author-link= |eprint= |title= |class= |date= }}</nowiki></code>
 
* '''arxiv''' or '''eprint''' '''(Mandatory)''': arXiv/Eprint identifier, without any "arXiv:" prefix.  Prior to April 2007, the identifiers included a classification, an optional two-letter subdivision, and a 7-digit YYMMNNN year, month, and sequence number of submission in that category.  E.g. gr-qc/0610068 or math.GT/0309136.  After April 2007, the format was changed to a simple YYMM.NNNN. Starting in [https://arxiv.org/help/arxiv_identifier January 2015], the identifier was changed to be 5 digits: YYMM.NNNNN.
 
* '''class''': arXiv classification, e.g. hep-th.  Optional.  To be used only with new-style (2007 and later) eprint identifiers that do not include the classification.
 
* '''title''': Title of the cited paper.
 
 
The template uses the style of {{tl|cite journal}}.  Once a paper is accepted in a peer-reviewed journal, it is recommended to use one of those templates, as the peer-reviewed status of the article is important, while preserving the arXiv link in order to guarantee open access to the previous version of the article. To preserve the arXiv link, add e.g. {{para|arxiv|gr-qc/0610068}} or {{para|arxiv|math.GT/0309136}} or {{para|arxiv|YYMM.NNNN}} (following the above examples) to the {{tl|citation}} or {{tl|cite journal}} templates.
 
 
== Examples ==
 
 
{{markup2
 
|m=<nowiki>{{cite arXiv |last=Sparling |first=George A. J. |date=2006 |title=Spacetime is spinorial; new dimensions are timelike |eprint=gr-qc/0610068}}</nowiki>
 
|r={{cite arXiv |last=Sparling |first=George A. J. |date=2006 |title=Spacetime is spinorial; new dimensions are timelike |eprint=gr-qc/0610068}}
 
}}
 
{{markup2
 
|m=<nowiki>{{cite arXiv |last=Leinster |first=Tom |date=2007 |title=The Euler characteristic of a category as the sum of a divergent series |eprint=0707.0835 |class=math.CT}}</nowiki>
 
|r={{cite arXiv |last=Leinster |first=Tom |date=2007 |title=The Euler characteristic of a category as the sum of a divergent series |eprint=0707.0835 |class=math.CT}}
 
}}
 
 
== Parameters ==
 
===Deprecated===
 
{{csdoc|deprecated}}
 
 
===Description===
 
====Authors====
 
{{csdoc|author|limited_param_list=yes}}<!-- see limited list of parameters at [[Module:Citation/CS1/Whitelist]] -->
 
 
====Date====
 
{{csdoc|date|limited_param_list=yes}}<!-- see limited list of parameters at [[Module:Citation/CS1/Whitelist]] -->
 
 
====Title====
 
{{csdoc|title|title_format=quotes|link=no|limited_param_list=yes}}<!-- see limited list of parameters at [[Module:Citation/CS1/Whitelist]] -->
 
{{csdoc|language}}
 
 
== TemplateData ==
 
{{TemplateData header}}
 
<templatedata>
 
{
 
"params": {
 
"arxiv": {
 
"aliases": [
 
"eprint"
 
],
 
"label": "arXiv ",
 
"description": "arXiv identifier without the \"arXiv:\" prefix; can include version number",
 
"type": "string",
 
"required": true,
 
"example": "1612.00008v1"
 
},
 
"title": {
 
"label": "Title",
 
"description": "Title of the paper cited",
 
"type": "string",
 
"suggested": true
 
},
 
"first": {
 
"aliases": [
 
"first1",
 
"given",
 
"given1"
 
],
 
"label": "First name",
 
"description": "First name of first author",
 
"type": "string",
 
"suggested": true
 
},
 
"last": {
 
"aliases": [
 
"last1",
 
"surname",
 
"surname1"
 
],
 
"label": "Last name",
 
"description": "Last name of first author",
 
"type": "string",
 
"suggested": true
 
},
 
"author": {
 
"aliases": [
 
"author1"
 
],
 
"label": "Author",
 
"description": "Complete name of the first author",
 
"type": "string"
 
},
 
"author-link": {
 
"aliases": [
 
"author-link1",
 
"authorlink",
 
"authorlink1",
 
"author1-link",
 
"author1link."
 
],
 
"label": "Author's article",
 
"description": "Title of the Wikipedia article about the first author",
 
"type": "wiki-page-name"
 
},
 
"first2": {
 
"aliases": [
 
"given2"
 
],
 
"label": "Author 2's first name",
 
"description": "First name of second author",
 
"type": "string"
 
},
 
"last2": {
 
"aliases": [
 
"surname2"
 
],
 
"label": "Author 2's last name",
 
"description": "Last name of second author",
 
"type": "string"
 
},
 
"author2": {
 
"label": "Author 2",
 
"description": "Full name of second author",
 
"type": "string"
 
},
 
"author-link2": {
 
"aliases": [
 
"authorlink2",
 
"author2-link",
 
"author2link"
 
],
 
"label": "Author 2's article",
 
"description": "Title of Wikipedia article about the second author",
 
"type": "wiki-page-name"
 
},
 
"coauthors": {
 
"label": "Co-authors",
 
"description": "Names of co-authors",
 
"type": "string",
 
"deprecated": "Use author, author2, etc."
 
},
 
"authors": {
 
"label": "Authors",
 
"description": "Full list of all authors",
 
"type": "string"
 
},
 
"collaboration": {
 
"label": "collaboration",
 
"description": "Name of a group of authors, in addition to the ones listed in the Author parameters",
 
"type": "string"
 
},
 
"class": {
 
"label": "arXiv class",
 
"description": "arXiv classification, for post-2007 ids ",
 
"type": "string"
 
},
 
"translator-last": {
 
"aliases": [
 
"translator1-last",
 
"translator-last1"
 
],
 
"label": "Translator's last name",
 
"description": "Translator's last name",
 
"type": "string"
 
},
 
"translator-first": {
 
"aliases": [
 
"translator1-first",
 
"translator-first1"
 
],
 
"label": "Translator's first name",
 
"description": "Translator's first name",
 
"type": "string"
 
},
 
"translator": {
 
"aliases": [
 
"translator1"
 
],
 
"label": "Translator",
 
"description": "Full name of first translator",
 
"type": "string"
 
},
 
"translator-link": {
 
"aliases": [
 
"translator-link1",
 
"translator1-link"
 
],
 
"label": "Translator's article",
 
"description": "Title of Wikipedia article of the (first) translator",
 
"type": "wiki-page-name"
 
},
 
"translator-first2": {
 
"aliases": [
 
"translator2-first"
 
],
 
"label": "Translator 2's First name",
 
"description": "Translator 2's First name",
 
"type": "string"
 
},
 
"translator-last2": {
 
"aliases": [
 
"translator2-last"
 
],
 
"label": "Translator 2's last name",
 
"description": "Translator 2's last name",
 
"type": "string"
 
},
 
"translator2": {
 
"label": "Translator 2",
 
"description": "Full name of second translator",
 
"type": "string"
 
},
 
"translator-link2": {
 
"aliases": [
 
"translator2-link"
 
],
 
"label": "Translator 2's article",
 
"description": "Title of WIkipedia article about second translator",
 
"type": "wiki-page-name"
 
},
 
"date": {
 
"label": "Date",
 
"description": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated",
 
"type": "string"
 
},
 
"orig-year": {
 
"aliases": [
 
"origyear"
 
],
 
"label": "Original publication year",
 
"description": "Original publication year, which displays after the main date. Be specific",
 
"example": "First published 1859",
 
"type": "string"
 
},
 
"df": {
 
"label": "Date format for publication dates",
 
"description": "Either ymd (Year-Month-Day), dmy (Day-Month-Year), or mdy (Month-Day-Year)  add -all at end to also affect access and archive dates",
 
"example": "dmy",
 
"type": "string"
 
},
 
"script-title": {
 
"label": "Foreign-script title",
 
"description": "Title of work in original non-latin script. May be prefixed with language code and a colon",
 
"example": "ja:東京タワー",
 
"type": "string"
 
},
 
"trans-title": {
 
"label": "Translated title",
 
"description": "English translation of title",
 
"type": "string"
 
},
 
"language": {
 
"label": "Language(s)",
 
"description": "Language(s) the source is written in. Separate by commas, and do not include 'and'",
 
"type": "string"
 
},
 
"version": {
 
"label": "Version",
 
"description": "arXiv version",
 
"deprecated": "Append to arXiv parameter",
 
"type": "string"
 
}
 
},
 
"format": "inline",
 
"description": "Formats a citation to a paper with an arXiv id",
 
"paramOrder": [
 
"arxiv",
 
"class",
 
"version",
 
"author",
 
"first",
 
"last",
 
"first2",
 
"last2",
 
"author2",
 
"author-link",
 
"author-link2",
 
"authors",
 
"coauthors",
 
"title",
 
"translator",
 
"translator-last",
 
"translator-first",
 
"translator-link",
 
"translator-first2",
 
"translator-last2",
 
"translator2",
 
"translator-link2",
 
"collaboration",
 
"date",
 
"orig-year",
 
"df",
 
"script-title",
 
"trans-title",
 
"language"
 
]
 
}
 
</templatedata>
 
== External links ==
 
* [https://arxiv.org/help/arxiv_identifier Understanding the arXiv identifier]
 
 
{{Citation Style 1}}
 
<includeonly>{{Sandbox other||
 
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
 
 
[[Category:Citation Style 1 templates|A]]
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
 
 
}}</includeonly>
 

Revision as of 17:43, 27 April 2020