Difference between revisions of "Template:HathiTrust Catalog/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
imported>Jay D. Easy
(standardization)
Line 1: Line 1:
{{documentation subpage}}
+
{{documentation subpage}}__NOTOC__
Adds an external link to a work's catalog at the [[HathiTrust|HathiTrust Digital Library]].
+
Creates an external link to a [[public domain]] work's catalog held by the [[HathiTrust|HathiTrust Digital Library]].
  
 
=== Usage ===
 
=== Usage ===
The title automatically reverts to <kbd><nowiki>{{</nowiki>{{red|PAGENAME}}<nowiki>}}</nowiki></kbd>
+
Unnamed parameters:
: {{tlc|HathiTrust Catalog|id{{=}}004409120}}
+
: <code><nowiki>{{</nowiki>Hathitrust Catalog| id | title <nowiki>}}</nowiki></code>
: &rarr; {{HathiTrust Catalog|004409120}}
+
 
 +
Named parameters:
 +
: <code><nowiki>{{</nowiki>HathiTrust Catalog| id = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code>
  
Using the <code>id</code> and <code>title</code> parameters is not required.
+
=== Examples ===
 +
Unnamed parameters:
 
: {{tlc|HathiTrust Catalog|004409120|The Jewish Encyclopedia}}
 
: {{tlc|HathiTrust Catalog|004409120|The Jewish Encyclopedia}}
 
: &rarr; {{HathiTrust Catalog|004409120|The Jewish Encyclopedia}}
 
: &rarr; {{HathiTrust Catalog|004409120|The Jewish Encyclopedia}}
  
Omitting the <code>id</code> parameter produces an error.
+
Named parameters:
: {{tlc|HathiTrust Catalog|id{{=}}|title{{=}}The Jewish Encyclopedia}}
+
: {{tlc|HathiTrust Catalog|id{{=}}004409120|title{{=}}The Jewish Encyclopedia}}
 +
: &rarr; {{HathiTrust Catalog|id=004409120|title=The Jewish Encyclopedia}}
 +
 
 +
Without <code>title</code> parameter:
 +
: {{tlc|HathiTrust Catalog|004409120}}
 +
: &rarr; {{HathiTrust Catalog|004409120}}
 +
 
 +
Without <code>id</code> parameter:
 +
: {{tlc|HathiTrust Catalog||The Jewish Encyclopedia}}
 
: &rarr; {{HathiTrust Catalog||The Jewish Encyclopedia}}
 
: &rarr; {{HathiTrust Catalog||The Jewish Encyclopedia}}
 +
 +
=== Parameters ===
 +
* '''id''' – identifier in the target URL, e.g. <code><nowiki>catalog.hathitrust.org/Record/</nowiki>{{hir|bc=lightgreen|#########}}</code>
 +
* '''title''' – an override field, it will default to the page name
  
 
=== See also ===
 
=== See also ===

Revision as of 01:23, 9 April 2019

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

Usage

Unnamed parameters:

{{Hathitrust Catalog| id | title }}

Named parameters:

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

Examples

Unnamed parameters:

{{HathiTrust Catalog|004409120|The Jewish Encyclopedia}}
The Jewish Encyclopedia at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck

Named parameters:

{{HathiTrust Catalog|id=004409120|title=The Jewish Encyclopedia}}
The Jewish Encyclopedia at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck

Without title parameter:

{{HathiTrust Catalog|004409120}}
Template:PAGENAMEBASE at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck

Without id parameter:

{{HathiTrust Catalog||The Jewish Encyclopedia}}
The Jewish Encyclopedia at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck

Parameters

  • id – identifier in the target URL, e.g. catalog.hathitrust.org/Record/#########
  • title – an override field, it will default to the page name

See also