Difference between revisions of "Template:Doi-inline"
Jump to navigation
Jump to search
imported>Headbomb (test) |
imported>Headbomb (as intended originally) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
| − | -->{{hide in print|[http://dx.doi.org/{{{1}}} {{{2|}}}]}}<!-- | + | -->{{hide in print<!-- |
| − | -->{{only in print|{{{2|}}} (doi:{{{1}}})}}<!-- | + | -->|[http://dx.doi.org/{{{1}}} {{{2|}}}]<!-- |
| + | -->}}<!-- | ||
| + | -->{{only in print<!-- | ||
| + | -->|{{{2|}}} (doi:{{{1}}})<!-- | ||
| + | -->}}<!-- | ||
--><noinclude> | --><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:28, 5 March 2010
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 [2]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
| The above documentation is transcluded from Template:Doi-inline/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |