Difference between revisions of "Template:Arxiv"

From blackwiki
Jump to navigation Jump to search
(Ack! Revert bug while I fix it!)
blackwiki>David Eppstein
(use interwiki instead of external link)
Line 1: Line 1:
[[arXiv]]:[<!--
+
[[arXiv]]:[[<!--
     -->http://arxiv.org/abs/<!--
+
     -->arXiv:<!--
 
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
 
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
 
       -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
 
       -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
       -->| {{{id|{{{1}}}}}} }} <!-- URL ends here
+
       -->| {{{id|{{{1}}}}}} }} |<!-- end iw link, start pipe trick
 
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
 
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
 
       -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
 
       -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
 
       -->| {{{id|{{{1}}}}}} }}<!--
 
       -->| {{{id|{{{1}}}}}} }}<!--
-->]<!--  end of external link  
+
-->]]<!--  end of external link  
 
--><noinclude>
 
--><noinclude>
 
{{template doc}}
 
{{template doc}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 07:16, 7 October 2007

arXiv:[[arXiv:{{{1}}} |{{{1}}}]]

Template documentation[view] [edit] [history] [purge]

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:

The parameters have the following meaning:

  • |1= or |id= or specifies the ID of the particular entry

Examples

Markup Renders as
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]

Citation Style 1 and Citation Style 2 templates include a |arxiv= parameter with the same function.

Deprecated usage

These calling sequences were used for before 1 April 2007 when the new identifiers that removed the archive class from the identifiers themselves.

The older entries can still be linked to by removing the delimiting "." and subject class or category specifier from the identifier and delimiting the remaining archive specifier and the rest of the identifier (the dated entry number) with a slash ("/").

The parameters have the following meaning:

  • |1= or |archive= specifies the arXiv archive (full list here) using the abbreviated code
  • |2= or |id= specifies the ID of the particular entry

Markup Renders as
[[:Template:MultiReplace]]
[[:Template:MultiReplace]]

See also