Template talk:Doi

From Wikipedia, the free encyclopedia

[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)

[edit] Add to template

Hi, this template is locked, so I thought I'd let someone know who has the permissions to add a bit of a "See also" section at the end:

==See also==
*[[Template:Doi-inline]]

Thanks.+mwtoews 22:40, 22 December 2006 (UTC)

The documentation page is not locked. It's at Template:Doi/doc. Feel free to edit that. It's transcluded into what you see on the template:Doi page (add "?action=purge" to the end of the address line in your browser if it's not updated after your edit). --Ligulem 23:47, 22 December 2006 (UTC)
Aha, that's cleaver. Thanks, that was new to me! Done.+mwtoews 07:10, 24 December 2006 (UTC)

[edit] URL encoding

Is there a good reason why you have two separate parameters instead of just using http://dx.doi.org/{{urlencode:{{{1}}}}}? — Omegatron 02:19, 18 February 2007 (UTC)

I think I tried and failed to get anything out of Template:Urlencode. Besides, by now, we risk breaking too many uses of the template without real benefits.Circeus 22:48, 19 February 2007 (UTC)