Difference between revisions of "Template:Arxiv/doc"
(Reverted doc change; couldn't make the template work due to lack of m:StringFunctions.) |
m (41 revisions imported) |
||
(38 intermediate revisions by 30 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude>{{Documentation subpage}}</noinclude> | |
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
+ | {{info|1=This template is intended for [[Wikipedia:External links|external links]]. It is not designed for use as a [[Wikipedia:Citation templates|citation template]] for reliable sources. Please consider using {{tlx|Cite arXiv}} for citations.}} | ||
== Purpose == | == 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: | ||
+ | * {{kbd|{{Make code|<<arXiv!''0123456''>>}}}} | ||
+ | * {{kbd|{{Make code|<<arXiv!id{{=}}''0123456''>>}}}} | ||
+ | |||
+ | The parameters have the following meaning: | ||
+ | * {{para|1}} or {{para|id}} or specifies the ID of the particular entry | ||
− | == | + | === Examples === |
+ | {{Automarkup | ||
+ | |{{Make code|<<arXiv!cs/0005003>>}} | ||
+ | |{{Make code|<<arXiv!id{{=}}cs/0005003>>}} | ||
+ | |{{Make code|<<arXiv!0704.0001>>}} | ||
+ | |{{Make code|<<arXiv!id{{=}}0704.0001>>}} | ||
+ | |{{Make code|<<arXiv!1501.00492>>}} | ||
+ | |{{Make code|<<arXiv!id{{=}}1501.00492>>}} | ||
+ | }} | ||
+ | |||
+ | {{cs1}} and {{cs2}} templates include a {{para|arxiv}} parameter with the same function. | ||
+ | |||
+ | == Deprecated usage == | ||
+ | * {{kbd|{{Make code|<<arXiv!''arch-ive''!''0123456''>>}}}} | ||
+ | * {{kbd|{{Make code|<<arXiv!archive{{=}}''arch-ive''!id{{=}}''0123456''>>}}}} | ||
− | + | These calling sequences were used for before 1 April 2007 when the new identifiers that removed the archive class from the identifiers themselves. | |
− | |||
− | |||
− | |||
− | |||
− | The | + | 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: | The parameters have the following meaning: | ||
− | * | + | * {{para|1}} or {{para|archive}} specifies the [[arXiv]] archive (full list [https://arxiv.org/help/archive_list here]) using the abbreviated code |
− | * | + | * {{para|2}} or {{para|id}} specifies the ID of the particular entry |
− | + | {{Automarkup | |
− | { | + | |{{Make code|<<arXiv!cs.DL!0005003>>}} |
− | + | |{{Make code|<<arXiv!archive{{=}}cs.DL!id{{=}}0005003>>}} | |
− | + | }} | |
− | | | ||
− | |||
− | {{ | ||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | < | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <includeonly> | + | == See also == |
+ | *{{tl|biorxiv}} | ||
+ | *{{tl|Cite arXiv}} | ||
+ | *{{tl|Catalog lookup link}} | ||
+ | |||
+ | <includeonly>{{sandbox other|1=<!-- keep sandbox out of categories -->|2= | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category:External link templates|{{PAGENAME}}]] | [[Category:External link templates|{{PAGENAME}}]] | ||
− | + | [[Category:Mathematics source templates|{{PAGENAME}}]] | |
− | + | [[Category:Catalog lookup templates|{{PAGENAME}}]] | |
− | + | }}</includeonly> | |
− | </includeonly> |
Latest revision as of 15:15, 28 October 2020
![]() | This is a documentation subpage for Template:Arxiv. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template is intended for external links. It is not designed for use as a citation template for reliable sources. Please consider using {{Cite arXiv}} for citations. |
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
- {{biorxiv}}
- {{Cite arXiv}}
- {{Catalog lookup link}}