Difference between revisions of "Template:Arxiv/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Headbomb
(+cat)
Line 10: Line 10:
  
 
This template can be used in the following ways:
 
This template can be used in the following ways:
* <tt><nowiki>{{</nowiki> arxiv | archive=''arch-ive'' | id=''0123456'' }}</tt>
+
* <kbd><nowiki>{{</nowiki> arxiv | archive=''arch-ive'' | id=''0123456'' }}</kbd>
* <tt><nowiki>{{</nowiki> arxiv | ''arch-ive'' | ''0123456'' }}</tt>
+
* <kbd><nowiki>{{</nowiki> arxiv | ''arch-ive'' | ''0123456'' }}</kbd>
* <tt><nowiki>{{</nowiki> arxiv | id=''0123456'' }}</tt>
+
* <kbd><nowiki>{{</nowiki> arxiv | id=''0123456'' }}</kbd>
* <tt><nowiki>{{</nowiki> arxiv | ''0123456'' }}</tt>
+
* <kbd><nowiki>{{</nowiki> arxiv | ''0123456'' }}</kbd>
  
 
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 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).
Line 60: Line 60:
 
[[Category:External link templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
 +
[[Category:Catalog lookup templates|{{PAGENAME}}]]
  
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
 
</includeonly>
 
</includeonly>

Revision as of 10:12, 17 August 2017

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

Code Result
{{arxiv|archive=cs.DL|id=0005003}} arXiv:cs.DL/0005003Template:Only in print
{{arxiv|cs.DL|0005003}} arXiv:cs.DL/0005003Template:Only in print
{{arxiv|id=0704.0001}} arXiv:0704.0001Template:Only in print
{{arxiv|0704.0001}} arXiv:0704.0001Template:Only in print
{{arxiv|1501.00492}} arXiv:1501.00492Template:Only in print (for Jan 2015-> identifiers)

See also