Difference between revisions of "Template:LCCN/doc"

From blackwiki
Jump to navigation Jump to search
imported>AManWithNoPlan
(remove legacy support)
imported>Renamed user mou89p43twvqcvm8ut9w3
(update documentation)
Line 9: Line 9:
  
 
<code><nowiki>{{LCCN|89456}}</nowiki></code> gives
 
<code><nowiki>{{LCCN|89456}}</nowiki></code> gives
{{LCCN|89456}}
+
*{{LCCN|89456}}
  
 
and to link sa65-3567, use:<br/>
 
and to link sa65-3567, use:<br/>
  
 
<code><nowiki>{{LCCN|sa653567}}</nowiki></code> gives
 
<code><nowiki>{{LCCN|sa653567}}</nowiki></code> gives
{{LCCN|sa653567}}
+
*{{LCCN|sa653567}}
 +
 
 +
 
 +
;Additional parameters:
 +
 
 +
You can use a second parameter to add a title.
 +
 
 +
<code><nowiki>{{LCCN|89456|Monarch butterflies}}</nowiki>
 +
 
 +
By specifying <code>| long = yes</code>, you can also provide a more detailed output, especially for use in External Links sections:
 +
 
 +
<code><nowiki>{{LCCN|89456|long=yes}}</nowiki></code> gives
 +
*{{LCCN|sa653567|long=yes}}
 +
 
 +
You can also use the second parameter to specify the book title if the page where the name of the article you're working on is not identical to the work you're citing. This is often true in the case of parenthetical disambiguation:
 +
 
 +
<code><nowiki>{{LCCN|89456|Monarch butterflies|long=yes}}</nowiki></code> gives
 +
*{{LCCN|sa653567|Monarch butterflies|long=yes}}
  
 
===See also===
 
===See also===

Revision as of 10:47, 25 March 2016

Usage

This template is used for referring to books by their Library of Congress Control Numbers. Enter the LCCN without any dashes or vertical bars between the numbers.

Examples

For example, to link 89-456, use:

{{LCCN|89456}} gives

and to link sa65-3567, use:

{{LCCN|sa653567}} gives


Additional parameters

You can use a second parameter to add a title.

{{LCCN|89456|Monarch butterflies}}

By specifying | long = yes, you can also provide a more detailed output, especially for use in External Links sections:

{{LCCN|89456|long=yes}} gives

You can also use the second parameter to specify the book title if the page where the name of the article you're working on is not identical to the work you're citing. This is often true in the case of parenthetical disambiguation:

{{LCCN|89456|Monarch butterflies|long=yes}} gives

See also