Difference between revisions of "Template:Doi/doc"
Jump to navigation
Jump to search
imported>Mwtoews m (back outside of includeonly) |
(clean-up a bit) |
||
| Line 1: | Line 1: | ||
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> | <includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> | ||
| + | __NOTOC__ | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs). | This template is intended to allow simple standardized links to [[digital object identifier]]s (DOIs). | ||
==Examples== | ==Examples== | ||
| − | <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> produces: | + | ===Usage 1=== |
| + | The basic usage is: | ||
| + | <nowiki>{{doi|10.1016/j.coi.2004.08.001}}</nowiki> | ||
| + | which produces: | ||
| + | :{{doi|10.1016/j.coi.2004.08.001}} | ||
| − | + | ===Usage 2=== | |
| − | + | If the DOI contains characters such as < and >, that causes the display to break, one may the <var>id</var> and <var>label</var> variables. The <var>id</var> variable represent a [[Percent-encoding|URL encoded]] version of the DOI, with the <var>label</var> is the normal DOI: | |
| − | If the DOI contains characters such as | ||
<nowiki>{{doi | <nowiki>{{doi | ||
| Line 16: | Line 20: | ||
produces: | produces: | ||
| − | {{doi | + | :{{doi |
| id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2 | | id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2 | ||
| label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2 | | label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2 | ||
Revision as of 07:59, 24 December 2006
Template:Template doc page viewed directly
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:
Usage 2
If the DOI contains characters such as < and >, that causes the display to break, one may the id and label variables. The id variable represent a URL encoded version of the DOI, with the label is the normal DOI:
{{doi
| id = 10.1175/1520-0442(2002)015%3C0487:SOCASI%3E2.0.CO;2
| label = 10.1175/1520-0442(2002)015<0487:SOCASI>2.0.CO;2
}}
produces:
- Error: Bad DOI specified!Template:Only in print
The escape code for < is %3C. For >, it is %3E
See also