Difference between revisions of "Template:LCC"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
(cleanup for print)
imported>Frietjes
(url changed, attempting to fix)
Line 4: Line 4:
 
       -->{{#if:{{{2|}}}
 
       -->{{#if:{{{2|}}}
 
           |{{#if:{{{3|}}}
 
           |{{#if:{{{3|}}}
             |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}+{{{3}}}&Search_Code=CALL_&CNT=5 {{{1}}} {{{2}}} {{{3}}}]
+
             |[https://catalog.loc.gov/vwebv/search?searchArg1={{{1}}}+{{{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 {{{1}}} {{{2}}} {{{3}}}]
             |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}&Search_Code=CALL_&CNT=5 {{{1}}} {{{2}}}]
+
             |[[https://catalog.loc.gov/vwebv/search?searchArg1={{{1}}}+{{{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 {{{1}}} {{{2}}}]
 
           }}
 
           }}
           |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{urlencode:{{{1}}}}}&Search_Code=CALL_&CNT=5 {{{1}}}]
+
           |[https://catalog.loc.gov/vwebv/search?searchArg1={{urlencode:{{{1}}}}}&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 {{{1}}}]
 
         }}
 
         }}
 
   }}<!--
 
   }}<!--

Revision as of 19:02, 12 August 2016

{{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