Template:LCCN/doc

From blackwiki
< Template:LCCN
Revision as of 22:52, 9 February 2011 by imported>He7d3r (→‎See also: *bugzilla:8160: ParserFunction for Library of Congress Control Numbers (LCCN))
Jump to navigation Jump to search

Usage

This template is used for referring to books by their Library of Congress Control Numbers. Split the number into 3 parameters:

  1. the numbers before the dash
  2. if the number after the dash is not 6 digits long, enough zeroes to make it so
  3. the numbers after the dash

E.g.: to link 89-456 it'll be

  1. 89
  2. 000
  3. 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

  1. 71
  2.  
  3. 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

  1. 71
  2.  
  3. 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

  1. 2001
  2.  
  3. 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