Template:LCC

From blackwiki
Revision as of 19:02, 12 August 2016 by imported>Frietjes (url changed, attempting to fix)
Jump to navigation Jump to search

{{hide in print

   |1=LCC {{#if:
         |{{#if:
           |{{{1}}} {{{2}}} {{{3}}}
           |[{{{1}}} {{{2}}}
          }}
         |{{{1}}}
        }}
  }}Template:Only in print
50px Template documentation[view] [edit] [history] [purge]

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