Difference between revisions of "Template:Hdl/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(implement url-access)
imported>Ahecht
(use templatestyles)
Line 1: Line 1:
{{#if:{{{1|{{{id|}}}}}}|<!--
+
{{#if:{{{1|{{{id|}}}}}}|<templatestyles src="Module:Citation/CS1/styles.css" /><!--
 
-->{{hide in print<!--
 
-->{{hide in print<!--
  -->|[[Handle System|hdl]]:{{plain link|1=//hdl.handle.net/{{urlencode:{{{1|{{{id|{{#property:P1184|[[Category:Hdl template with no id set]]}}}}}}}}}}|2={{#tag:nowiki|{{{1|{{{id|{{#property:P1184|}}}}}}}}}}}}<!--
+
  -->|[[Handle System|hdl]]:{{#switch:{{{url-access}}}|free=<span class="cs1-lock-free" title="Freely accessible">|registration=<span class="cs1-lock-registration" title="Free registration required">|limited=<span class="cs1-lock-limited" title="Free access subject to limited trial, subscription normally required">|subscription=<span class="cs1-lock-subscription" title="Paid subscription required">|#default=<span>}}[//hdl.handle.net/{{urlencode:{{{1|{{{id|{{#property:P1184|[[Category:Hdl template with no id set]]}}}}}}}}}} {{#tag:nowiki|{{{1|{{{id|{{#property:P1184|}}}}}}}}}}]</span><!--
 
-->}}<!--
 
-->}}<!--
 
-->{{only in print<!--
 
-->{{only in print<!--
 
  -->|hdl:{{{1|{{{id|{{#property:P1184|}}}}}}}}<!--
 
  -->|hdl:{{{1|{{{id|{{#property:P1184|}}}}}}}}<!--
 
-->}}<!--
 
-->}}<!--
--><span style="padding-left: 0.15em;">{{#switch:{{{url-access}}}|free=[[File:Lock-green.svg|9px|link=|alt=Freely accessible|Freely accessible]]|registration=[[File:Lock-blue-alt-2.svg|9px|link=|alt=Free registration required|Free registration required]]|limited=[[File:Lock-blue-alt-2.svg|9px|link=|alt=Free access subject to limited trial, subscription normally required|Free access subject to limited trial, subscription normally required]]|subscription=[[File:Lock-red-alt.svg|9px|link=|alt=Paid subscription required|Paid subscription required]]|#default=[[File:Icon External Link.svg|12px|alt=|link=]]}}</span><!--
 
 
-->}}<noinclude>
 
-->}}<noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 14:53, 3 October 2018

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

Template:Uses Wikidata Script error: No such module "Uses TemplateStyles". This template is intended to allow simple standardized links to Handle System identifiers (HDLs).

If you do wish to use this template, the basic usage is:

{{hdl|1808/3638}}

which produces:

hdl:1808/3638Template:Only in print

The template supports all symbols found in HDLs.

If no ID is supplied, the template will fetch the ID from the page's item at Wikidata.

The template supports the |hdl-access= parameter, as documented at Script error: No such module "Section link"..

See also