Difference between revisions of "Template:Identifier"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(access)
imported>Headbomb
(test)
Line 1: Line 1:
{{hide in print|1=[[{{{link}}}|{{{display}}}]]{{{separator}}}[{{{base-url-start}}}{{urlencode:{{{id}}}}}{{{base-url-end|}}} {{#tag:nowiki|{{{id}}}}}]{{#switch|{{{access-type|}}}
+
{{hide in print|1=[[{{{link}}}|{{{display}}}]]{{{separator}}}[{{{base-url-start}}}{{urlencode:{{{id}}}}}{{{base-url-end|}}} {{#tag:nowiki|{{{id}}}}}]<!--
              |{{#if|{{{allow-free|}}}|yes|free=[[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}}
+
-->{{#switch|{{{access-type|}}}
              |{{#if|{{{allow-registration|}}}|yes|registration=[[File:Lock-yellow.svg|9px|link=|A (free) registration is required to access this source]]}}
+
    |{{#if|{{{allow-free|}}}|yes|free=[[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}}
              |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|limited=[[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]]}}
+
    |{{#if|{{{allow-registration|}}}|yes|registration=[[File:Lock-yellow.svg|9px|link=|A (free) registration is required to access this source]]}}
              |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|trial=[[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]]}}
+
    |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|limited=[[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]]}}
              |{{#if|{{{allow-subscription|}}}|yes|subscription=[[File:Lock-red.svg|9px|link=|A (paid) subscription is required to access this source]]}}
+
    |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|trial=[[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]]}}
              }}<!--
+
    |{{#if|{{{allow-subscription|}}}|yes|subscription=[[File:Lock-red.svg|9px|link=|A (paid) subscription is required to access this source]]}}
-->{{only in print|{{{display}}}{{{separator}}}{{#tag:nowiki{{{id}}}}}{{#switch|{{{access-type|}}}
+
  }}
              |{{#if|{{{allow-free|}}}|yes|free=[[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}}
+
}}<!--
              |{{#if|{{{allow-registration|}}}|yes|registration=[[File:Lock-yellow.svg|9px|link=|A (free) registration is required to access this source]]}}
+
-->{{only in print|{{{display}}}{{{separator}}}{{#tag:nowiki{{{id}}}}}<!--
              |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|limited=[[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]]}}
+
-->{{#switch|{{{access-type|}}}
              |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|trial=[[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]]}}
+
    |{{#if|{{{allow-free|}}}|yes|free=[[File:Lock-green.svg|9px|link=|A free version of this source can be accessed here]]}}
              |{{#if|{{{allow-subscription|}}}|yes|subscription=[[File:Lock-red.svg|9px|link=|A (paid) subscription is required to access this source]]}}
+
    |{{#if|{{{allow-registration|}}}|yes|registration=[[File:Lock-yellow.svg|9px|link=|A (free) registration is required to access this source]]}}
              }}}}<!--
+
    |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|limited=[[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]]}}
 +
    |{{#if|{{{allow-limited|}}}{{{allow-trial|}}}|yes|trial=[[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]]}}
 +
    |{{#if|{{{allow-subscription|}}}|yes|subscription=[[File:Lock-red.svg|9px|link=|A (paid) subscription is required to access this source]]}}
 +
  }}
 +
}}<!--
 
--><noinclude>
 
--><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 14:20, 24 September 2016

[[{{{link}}}|{{{display}}}]]{{{separator}}}[{{{base-url-start}}}%7B%7B%7Bid%7D%7D%7D {{{id}}}]{{#switch|

   |{{#if||yes|free=A free version of this source can be accessed here}}
   |{{#if||yes|registration=A (free) registration is required to access this source}}
   |{{#if||yes|limited=A free access is provided on a limited trial basis, but a subscription is normally required to access this source}}
   |{{#if||yes|trial=A free access is provided on a limited trial basis, but a subscription is normally required to access this source}}
   |{{#if||yes|subscription=A (paid) subscription is required to access this source}}
  }}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

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

See also