Difference between revisions of "Template:Doi"

From Opasnet
Jump to: navigation, search
(New page: [http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude> ==Usage== <nowiki>{{</nowiki>doi-inline|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}...)
 
(copied from wikipedia and slightly edited)
Line 3: Line 3:
 
==Usage==
 
==Usage==
  
  <nowiki>{{</nowiki>doi-inline|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki>doi|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}</nowiki>
  
 
will link ''text'' to the object identified by ''doi''.  
 
will link ''text'' to the object identified by ''doi''.  
Line 11: Line 11:
 
==Example==
 
==Example==
 
<pre>
 
<pre>
The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}.
+
The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}.
 
The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
 
The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
 
</pre>
 
</pre>
Line 17: Line 17:
 
gives
 
gives
  
:The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}.
+
:The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}.
  
:The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
+
:The Red Book of Varieties and Schemes {{doi|10.1007/b62130}}.
  
==See also==
 
*[[Template:Doi]]
 
  
[[Category:External link templates|Doi]]
 
 
</noinclude>
 
</noinclude>

Revision as of 08:41, 20 March 2008

[1]

Usage

{{doi|doi|text}}

will link text to the object identified by doi. If no text is given, it will produce [n], as if you had linked it directly using [http://dx.doi.org/doi].

Example

The {{doi|10.1007/b62130|Red Book of Varieties and Schemes}}.
The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.

gives

The Red Book of Varieties and Schemes .
The Red Book of Varieties and Schemes doi:10.1007/b62130 .