Difference between revisions of "Template:LCCN/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pokechu22
(Add TemplateData)
imported>Funandtrvl
(update info)
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:
 
;Additional parameters:
Line 22: Line 21:
  
 
<code><nowiki>{{LCCN|89456|Monarch butterflies}}</nowiki></code>
 
<code><nowiki>{{LCCN|89456|Monarch butterflies}}</nowiki></code>
*{{LCCN|89456|Monarch butterflies}}
+
:{{LCCN|89456|Monarch butterflies}}
  
 
By specifying <code>| long = yes</code>, you can also provide a more detailed output, especially for use in External Links sections:
 
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
 
<code><nowiki>{{LCCN|89456|long=yes}}</nowiki></code> gives
*{{LCCN|sa653567|long=yes}}
+
:{{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:
 
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
 
<code><nowiki>{{LCCN|89456|Monarch butterflies|long=yes}}</nowiki></code> gives
*{{LCCN|sa653567|Monarch butterflies|long=yes}}
+
:{{LCCN|sa653567|Monarch butterflies|long=yes}}
 
 
===See also===
 
*[https://lccn.loc.gov/lccnperm-faq.html LCCN Permalink FAQ], Library of Congress
 
*[[bugzilla:8160]]: ParserFunction for Library of Congress Control Numbers (LCCN)
 
*{{tl|LCC}}
 
*{{tl|LCCN8}}
 
  
<includeonly>{{Sandbox other||
+
== TemplateData ==
[[Category:Catalog lookup templates]]
+
{{TemplateData header}}
[[Category:International Standard Book Number templates]]
 
[[Category:United States government external link templates]]
 
}}</includeonly>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 78: Line 68:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
===See also===
 +
*[https://lccn.loc.gov/lccnperm-faq.html LCCN Permalink FAQ], Library of Congress
 +
*[[bugzilla:8160]]: ParserFunction for Library of Congress Control Numbers (LCCN)
 +
*{{tl|LCC}}
 +
*{{tl|LCCN8}}
 +
 +
<includeonly>{{Sandbox other||
 +
[[Category:Catalog lookup templates]]
 +
[[Category:International Standard Book Number templates]]
 +
[[Category:United States government external link templates]]
 +
}}</includeonly>

Revision as of 03:00, 17 October 2020

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

LCCN Expression error: Unrecognized punctuation character "[". 89-Expression error: Unrecognized punctuation character "[".Template:Only in print

and to link sa65-3567, use:

{{LCCN|sa653567}} gives

LCCN Expression error: Unrecognized punctuation character "[". sa65-Expression error: Unrecognized punctuation character "[".Template:Only in print
Additional parameters

You can use a second parameter to add a title.

{{LCCN|89456|Monarch butterflies}}

LCCN Expression error: Unrecognized punctuation character "[". 89-Expression error: Unrecognized punctuation character "[". – Monarch butterfliesTemplate:Only in print

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

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

Catalog record for LCCN/doc at the United States Library of Congress

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

Catalog record for Monarch butterflies at the United States Library of Congress

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for LCCN

References a Library of Congress Control Number.

Template parameters

ParameterDescriptionTypeStatus
LCCN id1 id

LCCN without hyphens

Example
89456
Stringrequired
Title2 title name

Title of the book

Example
Monarch butterflies
Stringoptional
Long formatlong

yes to use the long format

Example
yes
Booleanoptional

See also