Difference between revisions of "Template:LCC"

From blackwiki
Jump to navigation Jump to search
imported>Dispenser
(Conformance with WP:DOC using AWB)
imported>Headbomb
(cleanup for print)
Line 1: Line 1:
[[Library of Congress Classification|LCC]] {{#if:
+
<!--
{{{2|}}}
+
-->{{hide in print
|{{#if:
+
    |1=[[Library of Congress Classification|LCC]]&nbsp;<!--
{{{3|}}}
+
      -->{{#if:{{{2|}}}
|[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}+{{{3}}}&Search_Code=CALL_&CNT=5 {{{1}}}&nbsp;{{{2}}}&nbsp;{{{3}}}]
+
          |{{#if:{{{3|}}}
|[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}&Search_Code=CALL_&CNT=5 {{{1}}}&nbsp;{{{2}}}]}}
+
            |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}+{{{3}}}&Search_Code=CALL_&CNT=5 {{{1}}}&nbsp;{{{2}}}&nbsp;{{{3}}}]
|[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{urlencode:{{{1}}}}}&Search_Code=CALL_&CNT=5 {{{1}}}]
+
            |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{{1}}}+{{{2}}}&Search_Code=CALL_&CNT=5 {{{1}}}&nbsp;{{{2}}}]
}}<noinclude>
+
          }}
 +
          |[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{urlencode:{{{1}}}}}&Search_Code=CALL_&CNT=5 {{{1}}}]
 +
        }}
 +
  }}<!--
 +
-->{{only in print
 +
    |1=LCC&nbsp;<!--
 +
      -->{{#if:{{{2|}}}
 +
          |{{#if:{{{3|}}}
 +
            |{{{1}}}&nbsp;{{{2}}}&nbsp;{{{3}}}
 +
            |{{{1}}}&nbsp;{{{2}}}
 +
          }}
 +
          |{{{1}}}
 +
        }}
 +
  }}<!--
 +
--><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
 
</noinclude>
 
</noinclude>

Revision as of 04:57, 16 February 2011

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

Previously, it was required to replace spaces in the number with pipes:

This is no longer necessary, though the newer template remains backward compatible with the piped format.

See also