Difference between revisions of "Template:HathiTrust Catalog/doc"
Jump to navigation
Jump to search
imported>Jay D. Easy |
imported>Jay D. Easy |
||
| Line 7: | Line 7: | ||
== Usage == | == Usage == | ||
| − | + | ; Unnamed parameters | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''|''TITLE''<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|''ID''|''TITLE''<nowiki>}}</nowiki></code> | ||
| − | + | ; Named parameters | |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|title=''TITLE''<nowiki>}}</nowiki></code>{{-}} | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|id=''ID''|title=''TITLE''<nowiki>}}</nowiki></code>{{-}} | ||
=== Example === | === Example === | ||
| − | {{ | + | {{Quotebox |
|align = right | |align = right | ||
|width = 35% | |width = 35% | ||
| Line 25: | Line 25: | ||
}} | }} | ||
| − | + | 1. If no custom title is set, the template defaults to {{tlx|PAGENAMEBASE}} | |
: {{vad|Markup:}} {{g|2}} <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|004409120}}<nowiki>}}</nowiki></code> | : {{vad|Markup:}} {{g|2}} <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|004409120}}<nowiki>}}</nowiki></code> | ||
: {{vad|Result:}} {{g|2}} {{HathiTrust Catalog|004409120}} | : {{vad|Result:}} {{g|2}} {{HathiTrust Catalog|004409120}} | ||
| − | + | 2. To set a custom title | |
: {{vad|Markup:}} {{g|2}} <code><nowiki>{{HathiTrust Catalog|</nowiki>{{hir|009014066|bc=lightgreen}}<nowiki>|Life with the Esquimaux}}</nowiki></code> | : {{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}}{{-}} | : {{vad|Result:}} {{g|2}} {{HathiTrust Catalog|009014066|Life with the Esquimaux}}{{-}} | ||
== TemplateData == | == TemplateData == | ||
| − | {{ | + | {{Collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} |
{{TemplateData header|noheader=1}} | {{TemplateData header|noheader=1}} | ||
<templatedata> | <templatedata> | ||
| Line 59: | Line 59: | ||
} | } | ||
</templatedata> | </templatedata> | ||
| − | {{ | + | {{Collapse bottom}} |
=== Tracking categories === | === Tracking categories === | ||
| Line 72: | Line 72: | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | [[Category:Catalog lookup templates]] | + | [[Category:Catalog lookup templates|HathiTrust Catalog]] |
| − | [[Category:Free content external link templates]] | + | [[Category:Free content external link templates|HathiTrust Catalog]] |
}}</includeonly> | }}</includeonly> | ||
Revision as of 01:46, 6 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 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: 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.
| |||||||||||||||
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