Difference between revisions of "Template:Identifier"
Jump to navigation
Jump to search
imported>Jonesey95 (change so that id= is not needed explicitly. All of these templates assume the first unnamed identifier is the ID in question.) |
imported>Headbomb (fix) |
||
| Line 2: | Line 2: | ||
-->{{#switch:{{{access-parameter|}}} | -->{{#switch:{{{access-parameter|}}} | ||
|free={{#ifeq:{{{allow-free|}}}|yes| [[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}} | |free={{#ifeq:{{{allow-free|}}}|yes| [[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}} | ||
| − | |registration={{ | + | |registration={{#ifeq:{{{allow-registration|}}}|yes| [[File:Lock-yellow.svg|9px|link=|A (free) registration is required to access this source]]}} |
| − | |limited={{ | + | |limited={{#ifeq:{{{allow-limited|}}}|yes| [[File:Lock-yellow.svg|9px|link=|A free access is provided on a limited trial basis, but a subscription is normally required to access this source]]}} |
| − | |subscription={{ | + | |subscription={{#ifeq:{{{allow-subscription|}}}|yes| [[File:Lock-red.svg|9px|link=|A (paid) subscription is required to access this source]]}} |
| | | | ||
}} | }} | ||
Revision as of 14:34, 18 February 2017
[[{{{link}}}|{{{display}}}]]{{{separator}}}[{{{base-url-start}}}%3Cstrong+class%3D%22error%22%3E%3Cspan+class%3D%22scribunto-error%22+id%3D%22mw-scribunto-error-0%22%3EScript+error%3A+No+such+module+%26quot%3BIf+empty%26quot%3B.%3C%2Fspan%3E%3C%2Fstrong%3E {{{id}}}]Template:Only in print
Usage
This a meta template for identifiers.
- arxiv
to do
- bibcode
{{Identifier
|link=bibcode (identifier)
|display=Bibcode
|separator=:
|id={{{1}}}
|base-url-start=http://adsabs.harvard.edu/abs/
|access-parameter={{{bibcode-access}}}
|allow-free=yes
|allow-registration=no
|allow-limited=no
|allow-subscription=no
}}
Gives
- Bibcode: 1998ApJ...508L..81K Template:Only in print
- Bibcode: 1998ApJ...508L..81K Template:Only in print
- Bibcode: 1998ApJ...508L..81K Template:Only in print
- Bibcode: 1998ApJ...508L..81K Template:Only in print
- doi
{{Identifier
|link=doi (identifier)
|display=doi
|separator=:
|id={{{1}}}
|base-url-start=https://doi.org/
|access-type={{{doi-access}}}
|allow-free=yes
|allow-registration=yes
|allow-limited=yes
|allow-subscription=no
}}
Gives
- doi:10.1234/0123456Template:Only in print
- doi:10.1234/0123456Template:Only in print
- doi:10.1234/0123456Template:Only in print
- doi:10.1234/0123456Template:Only in print
See also
| The above documentation is transcluded from Template:Identifier/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. |