模板:LCCN/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

参数及使用方法[编辑]

该模板用以通过美国国会图书馆书目控制号(LCCN)生成美国国会图书馆图书页链接。其中LCCN不需连字符(-)或竖线(|)。

范例[编辑]

使用如下代码链接到 89-456:

{{LCCN|89456}} 显示

使用如下代码链接到 sa65-3567:

{{LCCN|sa653567}} 显示

其他参数[编辑]

可以添加第二个参数指定标题。

{{LCCN|89456|Monarch butterflies}}

LCCN 89-456 – Monarch butterflies

通过指定| long = yes,可以提供更详细的输出,特别适合放置在“外部链接”处:

{{LCCN|89456|long=yes}} 显示

LCCN/doc在美国国会图书馆的目录记录

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[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

LCCN模板数据

<templatedata> { "params": { "1": { "aliases": [ "id" ], "label": "LCCN id", "description": "LCCN 不加连字符(-)", "example": "89456", "type": "string", "required": true }, "2": { "aliases": [ "title", "name" ], "label": "Title", "description": "书名", "example": "Monarch butterflies", "type": "string" }, "long": { "label": "Long format", "description": "yes 表示长格式", "example": "yes", "type": "boolean" } }, "description": "References a Library of Congress Control Number." } </templatedata>


参见[编辑]