Template:LCCN/doc
| This is a documentation subpage for Template:LCCN. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template is used for referring to books by their Library of Congress Control Numbers. Split the number into 3 parameters:
- the numbers before the dash
- if the number after the dash is not 6 digits long, enough zeroes to make it so
- the numbers after the dash
E.g.: to link 89-456 it'll be
- 89
- 000
- 456
{{LCCN|89|000|456}} gives LCCN Expression error: Unrecognized punctuation character "[". 89-Expression error: Unrecognized punctuation character "[". – 000Template:Only in print
To link a number that already has 6 digits after the dash, leave the 2nd parameter empty. E.g.: for 71-143545
- 71
- 143545
{{LCCN|71||143545}} gives LCCN Expression error: Unrecognized punctuation character "[". 71-Expression error: Unrecognized punctuation character "[".Template:Only in print
If the LCCN has 8 digits and no dash, treat it as if there is a dash after the second number. E.g. for 71143545
- 71
- 143545
{{LCCN|71||143545}} gives LCCN Expression error: Unrecognized punctuation character "[". 71-Expression error: Unrecognized punctuation character "[".Template:Only in print
If the LCCN has 10 digits and no dash, put the first four numbers (the year it was assigned) in the first parameter, leave the second parameter blank, and put the last six numbers in the third parameter. E.g.: for 2001022631
- 2001
- 022631
{{LCCN|2001||022631}} gives LCCN Expression error: Unrecognized punctuation character "[". 20-Expression error: Unrecognized punctuation character "[".Template:Only in print
If the LCCN contains two letters, add them before the normal 1st parameter: {{LCCN|sa65|00|3567}} gives LCCN Expression error: Unrecognized punctuation character "[". sa65-Expression error: Unrecognized punctuation character "[". – 00Template:Only in print
See also
- LCCN Permalink FAQ, Library of Congress
- bugzilla:8160: ParserFunction for Library of Congress Control Numbers (LCCN)