Template talk:Library of Congress Classification code
Usage
This template is used for referring to books by their Library of Congress Classification codes. For the external links to be formatted correctly, the LCC code must be presented without any spaces. For example:
Some LCC codes contain an obligatory space followed by a year designation. In that case, the year must be passed as a second parameter to the template. For example:
- {{LCC|Z253.U69|1993}} results in LCC Z253.U69 1993
- Thankfully, using two pipes ('|') seems to work when you need to pass two spaces, like so: LCC G635.C66 H86 1997 Great work, Thanks! -- Avi 18:43, 31 May 2006 (UTC)
LCCN
Someone, please make a template:LCCN for LC Control Number search[1]. I spend an hour and failed. It would be easy for an expredienced template maker. Thanks! --Irpen 19:42, 18 March 2006 (UTC)
urlencode
Why does it require you to separate spaces with pipes? Why not just use urlencode?
- {{LCC|Z253.U69|1993}} results in LCC Z253.U69 1993
- {{LCC|{{urlencode:Z253.U69 1993}}}} results in LCC Z253.U69+1993
Same exact URL, so you can just use:
[http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?Search_Arg={{urlencode:{{{1}}}}}&Search_Code=CALL_&CNT=5 {{{1}}}]
and get the same output. Is this the only reason it uses the pipes? — Omegatron 20:36, 3 December 2006 (UTC)