Template:LCC
Revision as of 19:02, 12 August 2016 by imported>Frietjes (url changed, attempting to fix)
{{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}}
| 40x40px | 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. |
| The above documentation is transcluded from Template:LCC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |