跳转到内容

模板:Library link by/doc

维基百科,自由的百科全书

此模板将提供指向图书馆中按照条目资源的外部链接。更多详细资讯可以在相关的{{Library resources box}}模板的文档中找到。

这是一个比较底层的模板;大多数维基百科编辑会希望使用“参见”部分中列出的高级模板之一。

使用方法

[编辑]
{{Library link by |label= |library= |viaf= |lccn= |lcheading= |wikititle= }}

<!-- 所有參數選填 -->

参数

[编辑]
  • label= If set, the value is used as the text of the link. Otherwise, generic text, or text based on the title of the page, is used.
  • library= If set, the destination library is specified by the value of this parameter. If it is not set, the user will go to their preferred library (if they have previously registered their preference), or be prompted to choose a library to go to (if they have not, or if their preference cookie has expired). This parameter is usually not used in the Wikipedia context, except with one of two special values:
    • OLBP sends the user to the Online Books Page (though consider using the {{Online books about}} template instead).
    • 0CHOOSE0 prompts the user to choose a destination library, even if they have already registered a preference.
  • The viaf, lccn, lcheading, and wikititle parameters can be used to specify more precisely the topic to query in the destination library. They are used just as they are in the {{Library resources box}} template; see that template's documentation for more details.

范例

[编辑]
{{Library link by}}

The simplest template call generates a link to resources by the current article's topic at the user's preferred library, based on the title of the article.

{{Library link by|label=What your library has by George Washington|viaf=31432428}}

This generates a link to resources at the user's preferred library by the holder of VIAF ID "31432428" (who happens to be George Washington). Using the VIAF ID makes this link less vulnerable to possible future changes in the Wikipedia article title (or in the Library of Congress authorized heading) for George Washington. The text of the link is "What your library has by George Washington".

{{Library link by|library=0CHOOSE0
 |lccn=n83057208 
 |label=What different libraries have by Alice Duer Miller}}

This generates a link that prompts the user to choose a library to see what resources that have on the American civil war. The lccn label is set to the Library of Congress control number for Alice Duer Miller. The link text is "What different libraries have by Alice Duer Miller". The 0CHOOSE0 value for the library parameter prevents the user from being taken directly to their preferred library.

参见

[编辑]
  • {{Library resources box}} -- generates a sidebar box of various links to library resources by and about this topic, using this and other templates.
  • {{Library resources by}} -- generates various links to library resources by this topic as inlined text, using this template.
  • {{Online books by}} -- generates a link to free online books by this topic, with some explanatory context, using this template.