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

From blackwiki
Jump to navigation Jump to search
imported>Jay D. Easy
imported>Jay D. Easy
Line 18: Line 18:
 
  |border = 2px
 
  |border = 2px
 
  |tstyle = text-align:left;
 
  |tstyle = text-align:left;
  |title  = Catalog record identifiers
+
  |title  = Catalog identifier string
  |quote  = Copy a work's identifier at the [https://www.hathitrust.org/ HathiTrust Digital Library]:{{ubl|style=text-indent:0.5em;font-size:95%;line-height:2.5em;
+
  |quote  = Copy a work's identifier at the [https://www.hathitrust.org/ '''HathiTrust Digital Library''']:{{ubl|style=text-indent:0.5em;font-size:92%;<!--line-height:2.5em;-->|&nbsp;
  |'''1.''' <code><nowiki>catalog.hathitrust.org/Record/</nowiki>{{hir|004409120}}</code>
+
  |1. <code><nowiki>catalog.hathitrust.org/Record/</nowiki>{{hir|004409120}}</code>
  |'''2.''' <code><nowiki>catalog.hathitrust.org/Record/</nowiki>{{hir|009014066|bc=lightgreen}}</code>}}
+
  |2. <code><nowiki>catalog.hathitrust.org/Record/</nowiki>{{hir|009014066|bc=lightgreen}}</code>|&nbsp;}}
  Identifiers can also be found on a work's [[Wikidata]] page.
+
  Identifiers can also be found on a work's [[Wikidata|'''Wikidata item''']].
 
}}
 
}}
  
'''1.''' If no custom title is set, the template defaults to {{tlx|PAGENAMEBASE}}:
+
; 1. If no custom title is set, the template defaults to {{tlx|PAGENAMEBASE}}:
: <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|004409120}}<nowiki>}}</nowiki></code>
+
: {{vad|Markup:}} {{g|2}} <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|004409120}}<nowiki>}}</nowiki></code>
:: &rarr; {{HathiTrust Catalog|004409120}}
+
: {{vad|Result:}} {{g|2}} {{HathiTrust Catalog|004409120}}
'''2.''' To set a custom title:
+
 
: <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|009014066|bc=lightgreen}}<nowiki>|Life with the Esquimaux}}</nowiki></code>
+
; 2. To set a custom title:
:: &rarr; {{HathiTrust Catalog|009014066|Life with the Esquimaux}}{{-}}
+
: {{vad|Markup:}} {{g|2}} <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|009014066|bc=lightgreen}}<nowiki>|Life with the Esquimaux}}</nowiki></code>
 +
: {{vad|Result:}} {{g|2}} {{HathiTrust Catalog|009014066|Life with the Esquimaux}}{{-}}
  
 
== TemplateData ==
 
== TemplateData ==

Revision as of 00:58, 6 September 2019

Template:Tracks and uses Wikidata This templates generates an external link to a catalog record of a work in the public domain at the HathiTrust Digital Library.

Usage

Unnamed parameters:

{{HathiTrust Catalog|ID|TITLE}}

Named parameters:

{{HathiTrust Catalog|id=ID|title=TITLE}}

Example

Template:Quotebox

1. If no custom title is set, the template defaults to {{PAGENAMEBASE}}
<span style="display:inline-block; width:Script error: No such module "If empty".; text-align:Script error: No such module "If empty".; font-weight:Script error: No such module "If empty".;">Markup: Template:G {{HathiTrust Catalog|004409120}}
<span style="display:inline-block; width:Script error: No such module "If empty".; text-align:Script error: No such module "If empty".; font-weight:Script error: No such module "If empty".;">Result: Template:G Template:PAGENAMEBASE at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck
2. To set a custom title
<span style="display:inline-block; width:Script error: No such module "If empty".; text-align:Script error: No such module "If empty".; font-weight:Script error: No such module "If empty".;">Markup: Template:G {{HathiTrust Catalog|009014066|Life with the Esquimaux}}
<span style="display:inline-block; width:Script error: No such module "If empty".; text-align:Script error: No such module "If empty".; font-weight:Script error: No such module "If empty".;">Result: Template:G Life with the Esquimaux at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck

TemplateData

TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for HathiTrust Catalog

This template generates an external link to a catalog record at the HathiTrust Digital Library.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

Identifier string used in the URL.

Example
009014066
Stringrequired
Title2 title

Title displayed in the link text. Defaults to the article's page name, without disambiguation.

Default
{{PAGENAME}}
Lineoptional

Tracking categories

See also