Difference between revisions of "Template:Identifier"
Jump to navigation
Jump to search
imported>Pppery (Fix) |
imported>Headbomb (noprint too) |
||
| Line 10: | Line 10: | ||
-->{{only in print|{{{display}}}{{{separator}}}{{#tag:nowiki{{{id}}}}}<!-- | -->{{only in print|{{{display}}}{{{separator}}}{{#tag:nowiki{{{id}}}}}<!-- | ||
-->{{#switch:{{{access-parameter|}}} | -->{{#switch:{{{access-parameter|}}} | ||
| − | |{{##ifeq:{{{allow-free|}}}|yes|free=[[File:Lock-green.svg|9px]]}} | + | |{{##ifeq:{{{allow-free|}}}|yes|free{{=}}[[File:Lock-green.svg|9px]]}} |
| − | |{{##ifeq:{{{allow-registration|}}}|yes|registration=[[File:Lock-yellow.svg|9px]]}} | + | |{{##ifeq:{{{allow-registration|}}}|yes|registration{{=}}[[File:Lock-yellow.svg|9px]]}} |
| − | |{{##ifeq:{{{allow-limited|}}}{{{allow-trial|}}}|yes| | + | |{{##ifeq:{{{allow-limited|}}}{{{allow-trial|}}}|yes|trial{{!}}limited{{=}}[[File:Lock-yellow.svg|9px]]}} |
| − | + | |{{##ifeq:{{{allow-subscription|}}}|yes|subscription{{=}}[[File:Lock-red.svg|9px]]}} | |
| − | |{{##ifeq:{{{allow-subscription|}}}|yes|subscription=[[File:Lock-red.svg|9px]]}} | ||
| | | | ||
}} | }} | ||
Revision as of 15:28, 24 September 2016
[[{{{link}}}|{{{display}}}]]{{{separator}}}[{{{base-url-start}}}%7B%7B%7Bid%7D%7D%7D {{{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. |