Template:Library of Congress Classification code
Appearance
{{hide in print
|1=LCC {{#if: |{{#if: |{{{1}}} {{{2}}} {{{3}}} |[{{{1}}} {{{2}}} }} |{{{1}}} }} }}Template:Only in print
Usage
This template is used for referring to books by their Library of Congress Classification codes. It produces a link to the Library of Congress website.
For example:
{{LCC|Z253.U69}}
results in "{{hide in print
|1=LCC {{#if: |{{#if: |Z253.U69 {{{2}}} {{{3}}} |[Z253.U69 {{{2}}} }} |Z253.U69 }} }}Template:Only in print"
{{LCC|Z253.U69 1993}}
results in "{{hide in print
|1=LCC {{#if: |{{#if: |1993+{{{2}}}+{{{3}}}&argType1=all&searchCode1=GKEY&searchType=2&combine2=and&searchArg2=&argType2=all&searchCode2=GKEY&combine3=and&searchArg3=&argType3=all&searchCode3=GKEY&location=all&place=all&type=all&language=all&recCount=25 Z253.U69 1993 {{{2}}} {{{3}}} |[1993+{{{2}}}&argType1=all&searchCode1=GKEY&searchType=2&combine2=and&searchArg2=&argType2=all&searchCode2=GKEY&combine3=and&searchArg3=&argType3=all&searchCode3=GKEY&location=all&place=all&type=all&language=all&recCount=25 Z253.U69 1993 {{{2}}} }} |Z253.U69 1993 }} }}Template:Only in print"
{{LCC|G635.C66 H86 1997}}
results in {{hide in print
|1=LCC {{#if: |{{#if: |H86 1997+{{{2}}}+{{{3}}}&argType1=all&searchCode1=GKEY&searchType=2&combine2=and&searchArg2=&argType2=all&searchCode2=GKEY&combine3=and&searchArg3=&argType3=all&searchCode3=GKEY&location=all&place=all&type=all&language=all&recCount=25 G635.C66 H86 1997 {{{2}}} {{{3}}} |[H86 1997+{{{2}}}&argType1=all&searchCode1=GKEY&searchType=2&combine2=and&searchArg2=&argType2=all&searchCode2=GKEY&combine3=and&searchArg3=&argType3=all&searchCode3=GKEY&location=all&place=all&type=all&language=all&recCount=25 G635.C66 H86 1997 {{{2}}} }} |G635.C66 H86 1997 }} }}Template:Only in print
Previously, it was required to replace spaces in the number with pipes:
{{LCC|G635.C66|H86|1997}}
results in {{hide in print
|1=LCC {{#if:H86 |{{#if:1997 |G635.C66 H86 1997 |[G635.C66 H86 }} |G635.C66 }} }}Template:Only in print
This is no longer necessary, though the newer template remains backward compatible with the piped format.
See also
- {{LCCN}}
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |