Difference between revisions of "Template:Arxiv/doc"

From blackwiki
Jump to navigation Jump to search
(Reverted doc change; couldn't make the template work due to lack of m:StringFunctions.)
Line 21: Line 21:
  
 
== Example ==
 
== Example ==
{| class="wikitable"
+
Pluto is a very small planet though scientists nowadays have proved that
! Code
+
Pluto is not a planet because of its formation and the types of gases around it.  
! Result
 
|-
 
| <code><nowiki>
 
{{arxiv|archive=cs.DL|id=0005003}}
 
</nowiki></code>
 
|| {{arxiv|archive=cs.DL|id=0005003}}
 
|-
 
| <code><nowiki>
 
{{arxiv|cs.DL|0005003}}
 
</nowiki></code>
 
|| {{arxiv|cs.DL|0005003}}
 
|-
 
| <code><nowiki>
 
{{arxiv|id=0704.0001}}
 
</nowiki></code>
 
|| {{arxiv|id=0704.0001}}
 
|-
 
| <code><nowiki>
 
{{arxiv|0704.0001}}
 
</nowiki></code>
 
|| {{arxiv|0704.0001}}
 
|}
 
  
 
<includeonly>
 
<includeonly>

Revision as of 00:15, 6 February 2008

Template:Template doc page viewed directly

Purpose

Provides a uniform method of formatting arXiv links, and makes it simpler to update if the format of those links changes in future.

Usage

This template can be used in the following ways:

  • {{ arxiv | archive=arch-ive | id=0123456 }}
  • {{ arxiv | arch-ive | 0123456 }}
  • {{ arxiv | id=0123456 }}
  • {{ arxiv | 0123456 }}

The first two calling sequence are to be used for old-style identifiers (i.e., those before 1 April 2007), while the latter two are for newer papers (after 31 March 2007).

The parameters have the following meaning:

  • archive specifies the arXiv archive (full list here) using the abbreviated code
  • id specifies the ID of the particular entry

Example

Pluto is a very small planet though scientists nowadays have proved that Pluto is not a planet because of its formation and the types of gases around it.