Difference between revisions of "Template:Doi/doc"

From blackwiki
Jump to navigation Jump to search
imported>Knuckles
(+interwiki -> sv)
imported>Smith609
m (They don't break any more)
Line 9: Line 9:
 
which produces:
 
which produces:
 
:{{doi|10.1016/j.coi.2004.08.001}}
 
:{{doi|10.1016/j.coi.2004.08.001}}
 
===DOIs with square brackets===
 
DOIs containing the square bracket characters [] ''will break'', so one has to use the <var>id</var> and <var>label</var> variables. The <var>id</var> variable represents a [[Percent-encoding|URL encoded]] version of the DOI, where the <var>label</var> variable is the normal DOI. The <var>label</var> variable contains the string that is actually displayed on the page, where the closing bracket character must be replaced with a [[character entity]]:
 
 
<nowiki>{{</nowiki>doi
 
  | id = 10.1890/1051-0761(1998)008'''%5B'''0947:FROINI'''%5D'''2.0.CO;2
 
  | label = 10.1890/1051-0761(1998)008[0947:FROINI'''&amp;#x5d;'''2.0.CO;2
 
}}
 
producing
 
 
:{{doi
 
  | id = 10.1890/1051-0761(1998)008%5B0947:FROINI%5D2.0.CO;2
 
  | label = 10.1890/1051-0761(1998)008[0947:FROINI&#x5d;2.0.CO;2
 
}}
 
  
 
==See also==
 
==See also==

Revision as of 23:47, 10 January 2009

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

Examples

Usage 1

The basic usage is:

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

which produces:

doi:10.1016/j.coi.2004.08.001Template:Only in print

See also