Difference between revisions of "Template:Doi-inline"

From blackwiki
Jump to navigation Jump to search
imported>Bender235
m (New DOI scheme)
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[http://dx.doi.org/{{{1}}} {{{2|}}}] <noinclude>
+
<includeonly><!--
 
+
-->{{hide in print<!--
==Usage==
+
-->|[https://doi.org/{{urlencode:{{{1}}}}} {{{2|}}}]<!--
 
+
-->}}<!--
<nowiki>{{</nowiki>doi-inline|'''''<font color="#880000">doi</font>'''''|'''''<font color="#880000">text</font>'''''<nowiki>}}</nowiki>
+
-->{{only in print<!--
 
+
-->|{{{2|}}} (doi:{{{1}}})<!--
will link ''text'' to the object identified by ''doi''.
+
-->}}<!--
If no text is given, it will produce [''n''], as if you
+
--></includeonly><noinclude>
had linked it directly using <nowiki>[http://dx.doi.org/</nowiki>''doi''].
+
{{documentation}}
 
 
==Example==
 
<pre>
 
The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}.
 
The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
 
</pre>
 
 
 
gives
 
 
 
:The {{doi-inline|10.1007/b62130|Red Book of Varieties and Schemes}}.
 
 
 
:The Red Book of Varieties and Schemes {{doi-inline|10.1007/b62130}}.
 
 
 
==See also==
 
*[[Template:Doi]]
 
*[[Wikipedia:DOI]]
 
*[[Wikipedia:PMID]]
 
*[[Wikipedia:ISBN]]
 
*[[Wikipedia:ISSN]]
 
*[[Template:bibcode]]
 
 
 
[[Category:External link templates|Doi]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:30, 21 March 2018

Template documentation[view] [edit] [history] [purge]

Usage

{{doi-inline|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-inline|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 SchemesTemplate:Only in print.
The Red Book of Varieties and Schemes [1]Template:Only in print.

In PDF and Books these will be:

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

See also

ja:Template:doi-inline