Difference between revisions of "Template:Hdl"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(implement url-access)
imported>Headbomb
(hdl-access)
Line 1: Line 1:
 
{{#if:{{{1|{{{id|}}}}}}|<!--
 
{{#if:{{{1|{{{id|}}}}}}|<!--
 
-->{{hide in print<!--
 
-->{{hide in print<!--
  -->|<templatestyles src="Module:Citation/CS1/styles.css" />[[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><!--
+
  -->|<templatestyles src="Module:Citation/CS1/styles.css" />[[Handle System|hdl]]:{{#switch:{{{hdl-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<!--

Revision as of 17:38, 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