Template:Cite arXiv/doc: Difference between revisions

no edit summary
m (1 revision imported: Wikipedia article on Nicotine templates needed)
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|2600}}
{{High-use|2600}}
{{caution|arXiv contains preliminary reports that have not been peer-reviewed and hence should be used with a high degree of caution. Per [[WP:MEDRS]] and [[WP:SCIRS]], these reports should not be used to support medical or scientific claims.}}
{{Distinguish|Template:Cite archive}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
{{csdoc|lua|lua=yes}}
{{csdoc|lua|lua=yes}}
{{csdoc|cs1|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''.
{{csdoc|lead|preprints at [[arXiv]]}} It links to the abstract at <code><nowiki>http://www.arxiv.org/abs/</nowiki></code>''eprint''.


=== Usage ===
=== Usage ===
Line 11: Line 14:


;Common parameters, horizontal format : <code><nowiki>{{cite arXiv |last= |first= |author-link= |eprint= |title= |class= |date= }}</nowiki></code>
;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.  
;Common parameters, vertical format :
<pre style="margin:0px; border:none;">
{{cite arXiv
| last      =
| first      =
| author-link=
| eprint    =
| title      =
| class      =
| date      =
}}
</pre>
* '''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.
* '''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.
* '''title''': Title of the cited paper.
Line 45: Line 60:
== TemplateData ==
== TemplateData ==
{{TemplateData header}}
{{TemplateData header}}
{{#invoke:cs1 documentation support|template_data_validate|{{ROOTPAGENAME}}}}
<templatedata>
<templatedata>
{
{
Line 97: Line 113:
"aliases": [
"aliases": [
"author-link1",
"author-link1",
"authorlink",
"author1-link"
"authorlink1",
"author1-link",
"author1link."
],
],
"label": "Author's article",
"label": "Author's article",
Line 129: Line 142:
"author-link2": {
"author-link2": {
"aliases": [
"aliases": [
"authorlink2",
"author2-link"
"author2-link",
"author2link"
],
],
"label": "Author 2's article",
"label": "Author 2's article",
Line 191: Line 202:
"translator2-first"
"translator2-first"
],
],
"label": "Translator 2's First name",
"label": "Translator 2's first name",
"description": "Translator 2's First name",
"description": "Translator 2's first name",
"type": "string"
"type": "string"
},
},
Line 213: Line 224:
],
],
"label": "Translator 2's article",
"label": "Translator 2's article",
"description": "Title of WIkipedia article about second translator",
"description": "Title of Wikipedia article about second translator",
"type": "wiki-page-name"
"type": "wiki-page-name"
},
},
"date": {
"date": {
"label": "Date",
"label": "Date",
"description": "Date of the source being cited. Use n.d. for no date, and c. for inexact dated",
"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"
"type": "string"
},
},
Line 243: Line 245:
"language": {
"language": {
"label": "Language(s)",
"label": "Language(s)",
"description": "Language(s) the source is written in. Separate by commas, and do not include 'and'",
"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"
"type": "string"
}
}
},
},
"format": "inline",
"format": "{{_ |_=_}}",
"description": "Formats a citation to a paper with an arXiv id",
"description": "Formats a citation to a paper with an arXiv id",
"paramOrder": [
"paramOrder": [
"arxiv",
"arxiv",
"class",
"class",
"version",
"author",
"author",
"first",
"first",
Line 279: Line 274:
"collaboration",
"collaboration",
"date",
"date",
"orig-year",
"df",
"df",
"trans-title",
"trans-title",