模板: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>


參見[編輯]