Template talk:Arxiv

From Wikipedia, the free encyclopedia

Contents


[edit] Change in identifier scheme

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)

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)
Thanks! New syntax looks good to me. —David Eppstein 16:56, 31 March 2007 (UTC)

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)

[edit] Template should link to http://arxiv.org/abs/id and not http://www.arxiv.org/abs/id

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)

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)
The transformation is done via the interwiki map. I've requested it be changed. -- Jitse Niesen (talk) 18:03, 21 March 2008 (UTC)