Difference between revisions of "Template:Doi/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ceyockey
(added Template Data to the template documentation)
Line 26: Line 26:
 
[[Category:DOI templates]]
 
[[Category:DOI templates]]
 
</includeonly>
 
</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"id": {
 +
"label": "DOI Code",
 +
"description": "This is the Digital Object Identifier, not the doi.org url, but part of it.",
 +
"type": "string",
 +
"required": true
 +
}
 +
},
 +
"description": "Stand-alone template for adding a DOI (Digital Object Identifier) code link"
 +
}
 +
</templatedata>

Revision as of 01:38, 10 February 2020

This template produces a simple, standardized link to a digital object identifier (DOI).

Usage

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

which produces:

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

For instructions on how to use Wikipedia to automatically expand a DOI into a full reference complete with article title, author(s), date, journal name, volume, issue, page numbers, etc., please see User:Citation bot/use.

Note: This template does not work properly if there is a space between the vertical bar and the DOI.

See also


Stand-alone template for adding a DOI (Digital Object Identifier) code link

Template parameters

ParameterDescriptionTypeStatus
DOI Codeid

This is the Digital Object Identifier, not the doi.org url, but part of it.

Stringrequired