User:TJRC/Sandbox/Template4/doc
This is a documentation subpage for User:TJRC/Sandbox/Template4. It may contain usage information, categories and other content that is not part of the original user template page. |
This template is used to generate external links to catalog records at the United States Library of Congress] by Library of Congress Control Number (LCCN). See the Library of Congress LCCN FAQ for information on LCCNs and their permalinks.
Usage
[edit]The required parameter is the LCCN. If this is the only parameter specified, the article title is used as the anchor text:
{{LoC catalog record|LCCN}}
To have the anchor text be something other than the article name, specify the second parameter, as well:
* {{LoC catalog record|LCCN|Title}}
This can be used when the Wikipedia page name is not the name of the work whose catalog record is desired. This will most often be the case where the article name includes a parenthetical disambiguation. See the examples, below.
Examples
[edit]- Without specifying the title, causing the article name to be used
In the article Dr. Seuss's Sleep Book:
- {{LoC catalog record|62017157}}
will produce:
- Catalog record for Dr. Seuss's Sleep Book at the United States Library of Congress
62017157 is currently recovering from a vacation in real life and may not immediately reply to queries, messages or complaints.
- Specifying the title, rather than using the article name
In the article Picnic at Hanging Rock (novel):
- {{LoC catalog record|68108151|Picnic at Hanging Rock}}
will produce:
- Catalog record for Picnic at Hanging Rock at the United States Library of Congress
68108151 is currently recovering from a vacation in real life and may not immediately reply to queries, messages or complaints.
Note that the examples include the "*" for a bulleted list since this is most likely to be used in an "External links" section.
Detailed instructions
[edit]- Go to http://catalog.loc.gov/ and use either the Basic Search or Guided Search to search for the book or other work of interest.
- Select the desired work from the list returned. This will present you with a "Brief Record" for the work.
- The field LCCN Permalink will link to a permalink page whose URL has the format http://lccn.loc.gov/x, where x is the required LCCN.
- Use this LCCN as in one of the examples above.