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>}}...)
 
(doi number made visible)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude>
+
[http://dx.doi.org/{{{1}}} {{{2|doi:{{{1}}} }}}] <noinclude>
  
 
==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>

Latest revision as of 10:45, 29 May 2009

doi:{{{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 .