Template talk:Doi

From Wikipedia, the free encyclopedia

This template is intended to allow simple standardized links to digital object identifiers (DOIs).

[edit] Examples

{{doi|10.1016/j.coi.2004.08.001}} produces:

DOI:10.1016/j.coi.2004.08.001

[edit] Problem DOI

This DOI doesn't work in the template. I tried several character encodings. It's in Sea_level_rise#References. (SEWilco 03:01, 22 May 2005 (UTC))

10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2

This solution seems to work:

DOI:10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2

The above is generated by:

{{doi|<nowiki>10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2</nowiki>}}

It may be a problem if the doi contains the string </nowiki>... Paolo Liberatore (Talk) 20:45, 29 November 2005 (UTC)

A DOI that is made specifically so that it doesn't work on wikipedia. That would be a sight! Ansell 03:32, 8 April 2006 (UTC)
Numerous DOIs using the <,>,[ and ] characters will notwork on these templates.I am not sure how to force them to display properly. Numericla entities do not appear to work. See also User:Circeus/Maple for two other examples. Circeus 14:48, 25 July 2006 (UTC)
My problematic DOIs are 10.2179/0008-7475(2004)069<0230:SN>2.0.CO;2 and 10.1656/1092-6194(2005)012[0023:SASEOA]2.0.CO;2 Circeus 14:55, 25 July 2006 (UTC)

It appears to be a MediaWiki bug, in that the character entity (which would be the correct way to do it) is terminating the link:

DOI:<0487:SOCASI>2.0.CO;2 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2

Using a URL escape works; however, since the same template parameter is also used for the display text, it does not display correctly:

DOI:10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2

--cesarb 15:35, 25 July 2006 (UTC)

Guess that's going to be our solution for now. I'll list the escapes when I have some time. Circeus 17:26, 25 July 2006 (UTC)
See also [1], [2]. --Ligulem 23:17, 25 July 2006 (UTC)
Has this Mediawiki bug been reported?
For problem URLs, you could add another variable and have one variable for the displayed value and one for the percent-encoded value. — Omegatron 17:30, 11 August 2006 (UTC)