Difference between revisions of "Template:Hdl"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(hdl-access)
imported>Matthiaspaul
(deliberately going through (identifier) redirect for consistency with CS1 citation templates and to improve reverse lookup functionality)
 
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:{{{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><!--
+
  -->|<templatestyles src="Module:Citation/CS1/styles.css" />[[hdl (identifier)|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<!--

Latest revision as of 18:29, 18 April 2020

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