Template talk:Arxiv

Latest comment: 7 years ago by 50.53.1.33 in topic Interwiki links

Change in identifier scheme

edit

The arXiv is changing in a few weeks to a new scheme in which papers are identified by an id but not by the archive part: e.g. instead of arXiv:cs.CG/9901009 they would be something like arXiv:0701.0024 [1]. Any thoughts on how this template should handle the change? Should something like {{arxiv|id=0701.0024}} without an archive tag be made to work, or would it be safer to replace the id with a different field name so that we can recognize oldstyle arxiv ids that are missing their archive fields? —David Eppstein 22:39, 4 December 2006 (UTC)Reply

I just noticed that this, so I changed the template. I also change it so that you don't need to use the field names (I can never remember what they are). I don't think it's necessary to replace the id with a different field name so that we can recognize oldstyle arxiv ids that are missing their archive fields; in fact, I think that would be rather confusing. If you don't like the new syntax, you know where to find me ;) -- Jitse Niesen (talk) 11:16, 31 March 2007 (UTC)Reply
Thanks! New syntax looks good to me. —David Eppstein 16:56, 31 March 2007 (UTC)Reply

I thought that it would be nice to include the category scheme and produce something like "arXiv:0704.0001 [hep-th]", which is the suggested citation style, but I can't figure out how to decide automatically which URL to use without m:StringFunctions. If Wikipedia ever gains them, you can try the following:

 [[arXiv]]:{{#if:{{{archive|{{{2|}}}}}}
   |{{#if:{{#pos:{{{id|{{{2}}}}}}|.}}
     |[http://arxiv.org/abs/{{{id|{{{2|}}}}}} {{{id|{{{2|{{{2}}} }}}}}}] [{{{archive|{{{1}}}}}}]
     |[http://arxiv.org/abs/{{{archive|{{{1|}}}}}}/{{{id|{{{2|}}}}}} {{{archive|{{{1|{{{1}}}}}}}}}/{{{id|{{{2|{{{2}}} }}}}}}]
   }}
   |[http://arxiv.org/abs/{{{id|{{{1|}}}}}} {{{id|{{{1|{{{1}}} }}}}}}]
 }}

That would let {{arXiv|hep-th|0704.0001}} (which currently produces "arXiv:hep-th/0704.0001") work. There is some trickery in there (the use of "{" in the source) to work around mediazilla:5678.

Also, should a version suffix be part of the id, or a separate template field? I could make it work, in a rather fragile way, using {{#expr}}, if the id were guaranteed purely numeric (since new-style ones have non-zero fractional parts). 71.41.210.146 08:44, 7 July 2007 (UTC)Reply

edit

The title pretty much says it: there should not be a www prefix on the URL for links generated via the arxiv template (see, for example, the examples on http://arxiv.org/help/faq/references. I don't know how/whether the template can be edited however. Zimeon (talk) 16:38, 21 March 2008 (UTC)Reply

The template just generates wikicode like [[arXiv:cs/0302030]]. I think the transformation of that sort of internal link into an external url is hidden somewhere deep within the bowels of mediawiki and has nothing to do with this template. Which is to say, you need to bring this up somewhere else, probably somewhere on wikimedia.org, but I'm not sure where exactly. —David Eppstein (talk) 16:58, 21 March 2008 (UTC)Reply
The transformation is done via the interwiki map. I've requested it be changed. -- Jitse Niesen (talk) 18:03, 21 March 2008 (UTC)Reply

Greek letter chi (Unicode 03A7) is factually incorrect to use in arXiv article identifiers

edit

The Unicode character 03A7 (i.e., Greek letter chi, Χ), is factually incorrect for use in arXiv article identifiers, since these article identifiers don't use U+03A7 but instead use Unicode character 0058 (i.e., the majuscule Latin letter X). For example, arΧiv:gr-qc/9612066 is factually incorrect as an arXiv article identifier, as it uses U+03A7; whereas arXiv:gr-qc/9612066, which uses U+0058, is the actual identifier that arXiv uses for this article. This is likewise the case with all of arXiv's other article identifiers, including the arXiv identifiers added to arXiv's compiled PDF files.

I realize someone was trying to be clever by using U+03A7 to represent the Greek letter chi in these identifiers, but nevertheless, it's factually incorrect. Because the use of U+03A7 is factually incorrect for arXiv's article identifiers, I am going to change the template code to use the factually-correct U+0058.--Jamie Michelle (talk) 14:27, 19 March 2010 (UTC)Reply

ArXiv IDs are going to 5 digits in Jan 2015

edit

See arxiv for details. We may need to change the template. -- phoebe / (talk to me) 22:46, 6 January 2015 (UTC)Reply

Note, seems to format fine with the new 5 digit numbers. -- phoebe / (talk to me) 22:54, 6 January 2015 (UTC)Reply

RFCs on citations templates and the flagging free-to-read sources

edit

See

Headbomb {talk / contribs / physics / books} 17:02, 29 October 2016 (UTC)Reply

HTTP→HTTPS

edit

Could we make this template produce https://arxiv.org/ rather than http://arxiv.org/ please? --bender235 (talk) 18:26, 1 March 2017 (UTC)Reply

This template doesn't produce either one of those. It produces something formatted as an interwiki link, [[arxiv:ID]]. So to change the targets of these links, you need to go through the Wikimedia developers. —David Eppstein (talk) 18:36, 1 March 2017 (UTC)Reply
Alright. --bender235 (talk) 20:05, 1 March 2017 (UTC)Reply
If you do put this onto phabricator.wikimedia.org please leave a link here — I expect this to be non-controversial but I would definitely support it, and would leave a message of support on such a request. —David Eppstein (talk) 21:12, 1 March 2017 (UTC)Reply
You go ahead and do it. I realized there is a parameter |arxiv= in all our citation templates, so we actually don't need this template here to be fixed. --bender235 (talk) 02:40, 2 March 2017 (UTC)Reply
There's still a bunch of articles that use this (presumably in manually formatted citations since I think the ones in the citation templates have mostly been converted to the parameter by bots). —David Eppstein (talk) 03:02, 2 March 2017 (UTC)Reply
edit

Why are we using interwiki links for the identifier and not external links? I propose we move back to external links. Originally this used external and then it was changed in Special:Diff/162820735, changed back to external in Special:Diff/347583986 and finally returned to interwiki in Special:Diff/388796909. Internal and external links are recorded in tables, tracked and can be queried. Interwiki links are recorded in no tables and thus are not tracked and cannot be queried. Using external links is in line with the template's category Category:External link templates and arXiv is certainly not a wiki (so why would we use an interwiki link). {{cite xxx}} CS1 and CS2 citation links use external links (even for arXiv identifiers). Let us align with such. In fact, I would rather use interwiki links for the arXiv label so the internal wiki link table (as can be seen in Special:WhatLinksHere/ArXiv) is not cluttered for that article (so unless an article directly mentions the arXiv article, it does not make sense that every article that happens to use such a reference be recorded in the link table). If one wants to know which articles are using a specific identifier it makes more sense to employ specific tracking means such as tracking categories. 50.53.1.33 (talk) 15:50, 17 August 2017 (UTC)Reply