模板:LCCN/sandbox
这是Template:LCCN(差异)的沙盒。 参见本模板的测试样例。 |
参数及使用方法
编辑该模板用以通过美国国会图书馆书目控制号(LCCN)生成美国国会图书馆图书页链接。其中LCCN不需连字符(-)或竖线(|)。
范例
编辑使用如下代码链接到 89-456:
{{LCCN|89456}}
显示
使用如下代码链接到 sa65-3567:
{{LCCN|sa653567}}
显示
其他参数
编辑可以添加第二个参数指定标题。
{{LCCN|89456|Monarch butterflies}}
通过指定| long = yes
,可以提供更详细的输出,特别适合放置在“外部链接”处:
{{LCCN|89456|long=yes}}
显示
- LCCN/sandbox在美国国会图书馆的目录记录
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}}
显示
- Monarch butterflies在美国国会图书馆的目录记录
TemplateData
编辑References a Library of Congress Control Number.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
LCCN id | 1 id | LCCN 不加连字符(-)
| 字符串 | 必需 |
Title | 2 title name | 书名
| 字符串 | 可选 |
Long format | long | yes 表示长格式
| 布尔 | 可选 |
参见
编辑- LCCN Permalink FAQ, Library of Congress
- bugzilla:8160: ParserFunction for Library of Congress Control Numbers (LCCN)
- {{LCC}}
- {{LCCN8}} – for adding LCCNs from Chronicling America
上述文档嵌入自Template:LCCN/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (编辑 | 差异)和测试样例 (编辑)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |