Difference between revisions of "Template:HathiTrust Catalog"
Jump to navigation
Jump to search
imported>Jay D. Easy |
imported>Jay D. Easy |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}} {{{id|}}} {{#property:P1844}}<!-- | <includeonly>{{#if:{{{1|}}} {{{id|}}} {{#property:P1844}}<!-- | ||
-->|[https://catalog.hathitrust.org/Record/{{#if:{{{1|{{{id|}}}}}}|{{{1|{{{id}}}}}}|{{first word|1={{#property:P1844}}|sep=,}}}}{{#if:{{{2|{{{title|}}}}}}|<span style=font-style:italic;>{{{2|{{{title}}}}}}</span>|<span style=font-style:italic;>{{PAGENAMEBASE}}</span>}}] at the [[HathiTrust Digital Library]]{{EditAtWikidata|pid=P1844|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P1844|value={{{1|{{{id|}}}}}}|category=HathiTrust Catalog}}<!-- | -->|[https://catalog.hathitrust.org/Record/{{#if:{{{1|{{{id|}}}}}}|{{{1|{{{id}}}}}}|{{first word|1={{#property:P1844}}|sep=,}}}}{{#if:{{{2|{{{title|}}}}}}|<span style=font-style:italic;>{{{2|{{{title}}}}}}</span>|<span style=font-style:italic;>{{PAGENAMEBASE}}</span>}}] at the [[HathiTrust Digital Library]]{{EditAtWikidata|pid=P1844|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P1844|value={{{1|{{{id|}}}}}}|category=HathiTrust Catalog}}<!-- | ||
− | -->|{{color|red|'''[Error: | + | -->|{{color|red|'''[Error: [[Template:HathiTrust Catalog|HathiTrust Catalog]]}} record id not present in Wikidata]'''}}}}{{main other|[[Category:Articles with HathiTrust links]]}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 23:51, 17 August 2019
![]() | Alternative spelling redirect: |
Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value). 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
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:
{{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: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:
{{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: 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.
|
Tracking categories
- Category:Articles with HathiTrust links (0)
- Category:HathiTrust Catalog not in Wikidata (0)
- Category:HathiTrust Catalog same as Wikidata (0)
- Category:HathiTrust Catalog different from Wikidata (0)
See also
The above documentation is transcluded from Template:HathiTrust Catalog/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |