Difference between revisions of "Template:HathiTrust Catalog/doc"
Jump to navigation
Jump to search
imported>Jay D. Easy |
imported>Jay D. Easy |
||
| Line 32: | Line 32: | ||
:: → {{HathiTrust Catalog|009014066|Life with the Esquimaux}}{{-}} | :: → {{HathiTrust Catalog|009014066|Life with the Esquimaux}}{{-}} | ||
| − | == | + | == TemplateData == |
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | + | "description": "This template generates an external link to a catalog record at the HathiTrust Digital Library.", | |
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": "ID", | "label": "ID", | ||
| + | "aliases": [ "id" ], | ||
"description": "Identifier string used in the URL.", | "description": "Identifier string used in the URL.", | ||
| + | "example": "009014066", | ||
"type": "string", | "type": "string", | ||
| − | "required": true | + | "required": true |
| − | |||
}, | }, | ||
"2": { | "2": { | ||
"label": "Title", | "label": "Title", | ||
| − | "description": "Title displayed in the link text. Defaults to the article's {{ | + | "aliases": [ "title" ], |
| + | "description": "Title displayed in the link text. Defaults to the article's page name, without disambiguation.", | ||
| + | "default": "{{PAGENAME}}", | ||
"type": "line", | "type": "line", | ||
| − | "required": false | + | "required": false |
| − | |||
} | } | ||
} | } | ||
Revision as of 23:39, 5 September 2019
| This is a documentation subpage for Template:HathiTrust Catalog. It contains usage information, categories and other content that is not part of the original template page. |
| Alternative spelling redirect: |
| This template uses Lua: |
Template:Tracks and uses Wikidata This templates creates 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}}:
{{HathiTrust Catalog|004409120}}- → Template:PAGENAMEBASE at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck
2. To set a custom title:
{{HathiTrust Catalog|009014066|Life with the Esquimaux}}- → Life with the Esquimaux at the HathiTrust Digital LibraryScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
This is the TemplateData documentation for this template 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | 1 id | Identifier string used in the URL.
| String | required |
| Title | 2 title | Title displayed in the link text. Defaults to the article's page name, without disambiguation.
| Line | optional |
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