Difference between revisions of "Template:HathiTrust/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
(+ see also to hathitrust catalog)
imported>Jay D. Easy
(standardization)
Line 1: Line 1:
{{Documentation subpage}}__NOTOC__
+
{{documentation subpage}}__NOTOC__
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
Creates an external link to a [[public domain]] work held by the [[HathiTrust|HathiTrust Digital Library]].
  
== Usage ==
+
=== Usage ===
 
{{Uses Wikidata|P1844}}
 
{{Uses Wikidata|P1844}}
 
Unnamed parameters:
 
Unnamed parameters:
:<code><nowiki>{{</nowiki>HathiTrust| ''ID'' | ''TITLE'' <nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>HathiTrust| id | title <nowiki>}}</nowiki></code>
  
 
Named parameters:
 
Named parameters:
:<code><nowiki>{{</nowiki>HathiTrust| id=''ID'' | title=''TITLE'' <nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>HathiTrust| id = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code>
:<code><nowiki>{{</nowiki>HathiTrust| fullid=''ID'' | title=''TITLE'' <nowiki>}}</nowiki></code>
+
: <code><nowiki>{{</nowiki>HathiTrust| fullid = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code>
  
== Examples ==
+
=== Examples ===
 
Unnamed parameters:
 
Unnamed parameters:
:<code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki></code>
+
: <code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki></code>
:{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}
+
: &rarr; {{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}
  
 
Named parameters:
 
Named parameters:
:<code><nowiki>{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}</nowiki></code>
+
: <code><nowiki>{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}</nowiki></code>
:{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}
+
: &rarr; {{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}
  
 
With <code>fullid</code> parameter:
 
With <code>fullid</code> parameter:
:<code><nowiki>{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}</nowiki></code>
+
: <code><nowiki>{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}</nowiki></code>
:{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}
+
: &rarr; {{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}
  
=== Notes ===
+
=== Parameters ===
* '''id''' is the last numbers of the URL, e.g. <nowiki>https://hdl.handle.net/2027/njp.##############</nowiki>, ############## denoting the ID number
+
* '''id''' – identifier in the target URL, e.g. <code><nowiki>hdl.handle.net/2027/njp.</nowiki>{{hir|bc=lightgreen|#########}}</code>
* '''fullid''' is when the URL does not begin with <tt>njp</tt>, e.g. <nowiki>https://hdl.handle.net/2027/umn.31951p01104328a</nowiki>, in which case use the entire value <tt>umn.31951p01104328a</tt>
+
* '''fullid''' when the URL does not contain <code>njp</code>, e.g. <code><nowiki>hdl.handle.net/2027/</nowiki>{{hir|bc=lightgreen|umn.31951p01104328a}}</code>
* '''title''' is an override field, it will default to the page title
+
* '''title''' an override field, it will default to the page name
  
== See also ==
+
=== See also ===
 
* {{tl|HathiTrust Catalog}}
 
* {{tl|HathiTrust Catalog}}
  

Revision as of 01:23, 9 April 2019

Creates an external link to a public domain work held by the HathiTrust Digital Library.

Usage

Template:Uses Wikidata Unnamed parameters:

{{HathiTrust| id | title }}

Named parameters:

{{HathiTrust| id = ### | title = title of work }}
{{HathiTrust| fullid = ### | title = title of work }}

Examples

Unnamed parameters:

{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}
Aus vorletzten und letzten Gründen at the HathiTrust Digital Library

Named parameters:

{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}
Aus vorletzten und letzten Gründen at the HathiTrust Digital Library

With fullid parameter:

{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}
The Art of Swimming at the HathiTrust Digital Library

Parameters

  • id – identifier in the target URL, e.g. hdl.handle.net/2027/njp.#########
  • fullid – when the URL does not contain njp, e.g. hdl.handle.net/2027/umn.31951p01104328a
  • title – an override field, it will default to the page name

See also