Difference between revisions of "Template:Arxiv"

From blackwiki
Jump to navigation Jump to search
(Ack! Revert bug while I fix it!)
m (40 revisions imported)
 
(33 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[[arXiv]]:[<!--
+
<!--
    -->http://arxiv.org/abs/<!--
+
-->{{hide in print<!--
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
+
-->|[[arXiv (identifier)|arXiv]]:[https://arxiv.org/abs/<!--
      -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
+
     -->{{#if:{{{archive|{{{2|}}}}}}<!--
      -->| {{{id|{{{1}}}}}} }}  <!-- URL ends here
+
    -->|{{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
     -->{{#if: {{{archive|{{{2|}}}}}}<!--
+
    -->|{{{id|{{{1}}}}}}<!--
      -->| {{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
+
     -->}} {{#if:{{{archive|{{{2|}}}}}}<!--
      -->| {{{id|{{{1}}}}}} }}<!--
+
        -->|{{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
-->]<!--  end of external link
+
        -->|{{{id|{{{1}}}}}}<!--
--><noinclude>
+
      -->}}]<!--
{{template doc}}
+
-->}}<!--
 +
-->{{only in print<!--
 +
  -->|arXiv:{{#if:{{{archive|{{{2|}}}}}}
 +
                |{{{archive|{{{1}}}}}}/{{{id|{{{2}}}}}}<!--
 +
            -->|{{{id|{{{1}}}}}}<!--
 +
            -->}}<!--
 +
-->}}{{#if:{{{archive|{{{2|}}}}}}|{{#if:{{Arxiv/archive}}}}}}<noinclude>
 +
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 15:15, 28 October 2020

arXiv:{{{1}}}Template:Only in print

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