Difference between revisions of "Template:Cite arXiv"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(Undid revision 253700156 by Headbomb (talk) oops)
imported>Headbomb
(update code so output is more uniform. Title, eprint and author are not required (error message displays))
Line 1: Line 1:
{{#if:{{{authorlink|}}}
+
{{#if:{{{authorlink|}}}{{{author|}}}
   |[[{{{authorlink}}}|{{{author}}}]]
+
|{{#if:{{{authorlink|}}}
   |{{{author}}}
+
   |[[{{{authorlink}}}|{{{author|}}}]]
 +
   |{{{author|}}}
 +
  }}
 +
|<BIG><span style="color:red">&#32;'''MISSING AUTHOR.'''</span></BIG>
 
}}{{#if:{{{year|}}}
 
}}{{#if:{{{year|}}}
  |&#32;({{{year}}})
+
  |&#32;({{{year|}}}).
}}. "[http://www.arxiv.org/abs/{{{eprint}}}{{{version|}}} {{{title}}}]" arxiv:{{{eprint}}}{{{version|}}}{{#if:{{{class|}}}
+
  |{{#if:{{{authorlink|}}}{{{author|}}}
  |&#32;&#91;{{{class}}}&#93;
+
    |.
 +
    |
 +
    }}
 +
}}{{#if:{{{title|}}}
 +
  |"{{{title|}}}".
 +
  |<BIG><span style="color:red">&#32;'''MISSING TITLE.'''</span></BIG>
 +
}}{{#if:{{{eprint|}}}{{{version|}}}{{{class|}}}
 +
  |&#32;''[[arxiv|ar&Chi;iv]]'': [http://www.arxiv.org/abs/{{{eprint|}}}{{{version|}}} {{{eprint|}}}{{{version|}}}]
 +
  |<BIG><span style="color:red">&#32;'''MISSING LINK.'''</span></BIG>
 +
}}{{#if:{{{class|}}}
 +
    |&#32;<nowiki>[</nowiki>{{{class}}}<nowiki>]</nowiki>
 
}}{{#if:{{{accessdate|}}}
 
}}{{#if:{{{accessdate|}}}
  |. Retrieved on [[{{{accessdate}}}]]
+
    |Retrieved on {{{accessdate|}}}.
}}.<noinclude>
+
    |
 +
}}<noinclude>
  
 
'''cite arXiv''' is for formatting references to preprints at the [[arXiv]].  It is fairly basic and could probably use attention.  It links to the abstract at <tt><nowiki>http://www.arxiv.org/abs/</nowiki><tt>''eprint''.
 
'''cite arXiv''' is for formatting references to preprints at the [[arXiv]].  It is fairly basic and could probably use attention.  It links to the abstract at <tt><nowiki>http://www.arxiv.org/abs/</nowiki><tt>''eprint''.

Revision as of 01:18, 24 November 2008

MISSING AUTHOR. MISSING TITLE. MISSING LINK.

cite arXiv is for formatting references to preprints at the arXiv. It is fairly basic and could probably use attention. It links to the abstract at http://www.arxiv.org/abs/eprint.

Common parameters, horizontal format

{{cite arXiv |author= |authorlink= |eprint= |title= |class= |year= |version= |accessdate= }}

  • author: Author. Mandatory.
  • authorlink: Name of author's wikipedia page. Will be used to make author name a link, if present. Optional.
  • eprint: Eprint identifier, without any "arXiv:" prefix. Mandatory. Prior to April 2007, the identifiers included a classification, an optional two-letter subdivision, and a 7-digit YYMMNNN uear, 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.
  • class: arXiv classification, e.g. hep-th. Optional. To be used only with new-style eprint identifiers, that do not include the classification.
  • title: Title. Mandatory.
  • year: Year of publication. Optional.
  • version: arXiv version, including leading "v", e.g. "v1". Optional.
  • accessdate: Date of web access. Optional, but required by many citation standards.

Examples

  • {{cite arXiv |author=George A.J. Sparling |eprint=gr-qc/0610068 |title=Spacetime is spinorial; new dimensions are timelike |year=2006 |version=v1 }}
→ George A.J. Sparling (2006)."Spacetime is spinorial; new dimensions are timelike". arΧiv: gr-qc/0610068v1
  • {{cite arXiv |author=Tom Leinster |eprint=0707.0835 |class=math.CT |title=The Euler characteristic of a category as the sum of a divergent series |year=2007 }}
→ Tom Leinster (2007)."The Euler characteristic of a category as the sum of a divergent series". arΧiv: 0707.0835 [math.CT]

References