Difference between revisions of "Template:HathiTrust/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrillLyle
(creating)
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{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 ==
 
<code><nowiki>{{HathiTrust|ID|link label}}</nowiki><code>
 
<br/><br/>
 
An example:<br/><br/>
 
<code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki><code><br/><br/>
 
displays<br/><br/>
 
{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}
 
  
 +
=== Usage ===
 +
Unnamed parameters:
 +
: <code><nowiki>{{</nowiki>HathiTrust| id | title <nowiki>}}</nowiki></code>
  
===Notes===
+
Named parameters:
* '''ID:''' is the last numbers of the URL, eg. <nowiki>http://hdl.handle.net/2027/njp.##############</nowiki>, ############## denoting the ID number
+
: <code><nowiki>{{</nowiki>HathiTrust| id = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code>
* '''link label:''' is an override field, it will default to the page title
+
: <code><nowiki>{{</nowiki>HathiTrust| fullid = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
=== Examples ===
 +
Unnamed parameters:
 +
: <code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki></code>
 +
: &rarr; {{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}
 +
 
 +
Named parameters:
 +
: <code><nowiki>{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}</nowiki></code>
 +
: &rarr; {{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}
 +
 
 +
With <code>fullid</code> parameter:
 +
: <code><nowiki>{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}</nowiki></code>
 +
: &rarr; {{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}
 +
 
 +
=== Parameters ===
 +
* '''id''' – identifier in the target URL, e.g. <code><nowiki>hdl.handle.net/2027/njp.</nowiki>{{hir|bc=lightgreen|#########}}</code>
 +
* '''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''' – an override field, it will default to the page name
 +
 
 +
=== See also ===
 +
* {{tl|HathiTrust Catalog}}
 +
 
 +
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:GLAM external link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:40, 25 April 2020

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

Usage

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