模板:LCCN

維基百科,自由的百科全書
文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

參數及使用方法[編輯]

該模板用以通過美國國會圖書館書目控制號(LCCN)生成美國國會圖書館圖書頁連結。其中LCCN不需連字符(-)或豎線(|)。

範例[編輯]

使用如下代碼連結到 89-456:

{{LCCN|89456}} 顯示

LCCN 89-456

使用如下代碼連結到 sa65-3567:

{{LCCN|sa653567}} 顯示

LCCN sa65-3567

其他參數[編輯]

可以添加第二個參數指定標題。

{{LCCN|89456|Monarch butterflies}}

LCCN 89-456 – Monarch butterflies

通過指定| long = yes,可以提供更詳細的輸出,特別適合放置在「外部連結」處:

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

LCCN在美國國會圖書館的目錄記錄

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模板資料

References a Library of Congress Control Number.

模板參數[編輯模板資料]

參數描述類型狀態
LCCN id1 id

LCCN 不加連字符(-)

範例
89456
字串必填
Title2 title name

書名

範例
Monarch butterflies
字串非必填
Long formatlong

yes 表示長格式

範例
yes
布林值非必填


參見[編輯]