Difference between revisions of "Template:HathiTrust/doc"
Jump to navigation
Jump to search
imported>Jay D. Easy (+cat) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{documentation subpage}}__NOTOC__ |
| − | + | Creates an external link to a [[public domain]] work held by the [[HathiTrust|HathiTrust Digital Library]]. | |
| − | == Usage == | + | === Usage === |
Unnamed parameters: | Unnamed parameters: | ||
| − | :<code><nowiki>{{</nowiki>HathiTrust| | + | : <code><nowiki>{{</nowiki>HathiTrust| id | title <nowiki>}}</nowiki></code> |
Named parameters: | Named parameters: | ||
| − | :<code><nowiki>{{</nowiki>HathiTrust| id='' | + | : <code><nowiki>{{</nowiki>HathiTrust| id = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code> |
| − | :<code><nowiki>{{</nowiki>HathiTrust| fullid='' | + | : <code><nowiki>{{</nowiki>HathiTrust| fullid = ''###'' | title = ''title of work'' <nowiki>}}</nowiki></code> |
| − | ==Examples== | + | === Examples === |
Unnamed parameters: | Unnamed parameters: | ||
| − | :<code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki></code> | + | : <code><nowiki>{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}}</nowiki></code> |
| − | :{{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}} | + | : → {{HathiTrust|32101068365723|Aus vorletzten und letzten Gründen}} |
Named parameters: | Named parameters: | ||
| − | :<code><nowiki>{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}</nowiki></code> | + | : <code><nowiki>{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}}</nowiki></code> |
| − | :{{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}} | + | : → {{HathiTrust|id=32101068365723|title=Aus vorletzten und letzten Gründen}} |
With <code>fullid</code> parameter: | With <code>fullid</code> parameter: | ||
| − | :<code><nowiki>{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}</nowiki></code> | + | : <code><nowiki>{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}}</nowiki></code> |
| − | :{{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}} | + | : → {{HathiTrust|fullid=umn.31951p01104328a|title=The Art of Swimming}} |
| − | === | + | === Parameters === |
| − | * '''id''' | + | * '''id''' – identifier in the target URL, e.g. <code><nowiki>hdl.handle.net/2027/njp.</nowiki>{{hir|bc=lightgreen|#########}}</code> |
| − | * '''fullid''' | + | * '''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''' | + | * '''title''' – an override field, it will default to the page name |
| − | <includeonly>{{ | + | === 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]] | [[Category:GLAM external link templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 16:40, 25 April 2020
| File:Edit-copy green.svg | This is a documentation subpage for Template:HathiTrust. It contains usage information, categories and other content that is not part of the original template page. |
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