• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Handle ID/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Handle ID
This is the template sandbox page for Template:Handle ID (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:CS1 identifiers
  • Module:Citation/CS1/Configuration (sandbox)
  • Module:Citation/CS1/Identifiers (sandbox)
  • Module:Citation/CS1/Utilities (sandbox)
The link in this template goes to a redirect page instead of to the article that is the target of the redirect. This redirect link is intentional so that links using the template are distinguishable from links to the article on the Special:WhatLinksHere/Handle System page.
Shortcut
  • {{hdlTemplate:Hdl}}

Makes a link to a Handle System identifier. The identifier is rendered using much of the same code that renders |hdl= in Citation Style 1 and Citation Style 2 templates except that this template can be used to render multiple hdl identifiers.

Usage

edit

This template accepts these parameters:

|idn= – an hdl identifier; the |idn= parameter name is not required but is recommended for clarity when the template has multiple identifiers
|hdl-access= – accepts a single value no; for use when the source identified by the hdl identifier is free-to-read
|link= – accepts a single value no; for use when it is the 'hdl:' prefix in the rendering should not be linked
|plainlink= – accepts a single value yes; suppresses the 'hdl:' prefix in the rendering
|leadout= – defines the conjunction between the last two identifiers in the rendered list; defaults to ,

The basic form is:

{{hdl|id=10.1101/047720}} → hdl:1808/3638

To mark an hdl identifier as free-to-read:

{{hdl|id=10.1101/047720|hdl-access=free}} → hdl:1808/3638

To unlink the prefix:

{{hdl|id=1808/3638|link=no}} → hdl:1808/3638

To suppress the prefix:

{{hdl|id=1808/3638|plainlink=yes}} → 1808/3638

For instructions on how to use Wikipedia to automatically expand an hdl identifier into a full reference complete with article title, author(s), date, journal name, volume, issue, page numbers, etc., please see User:Citation bot/use.

Tracking categories

edit
  • Category:Pages with HDL errors – error category for {{hdl}} templates that show an error message

Because this template uses the same code as cs1|2 templates, error and maintenance visibility is controlled the same way. See Help:CS1 errors § Controlling error message display.

See also

edit
  • {{arxiv}}
  • {{bibcode}}
  • {{doi}}
  • Wikipedia:DOI
  • Wikipedia:ISBN
  • Wikipedia:PMID
  • Wikipedia:ISSN
The above documentation is transcluded from Template:Handle ID/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Handle_ID/sandbox&oldid=1225470063"
Last edited on 24 May 2024, at 16:56

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 24 May 2024, at 16:56 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop