வார்ப்புரு:Library resources box/doc
{{Documentation subpage}}
 &lt;!-- Categories and interwikis go at the bottom of this page. --&gt;
 The {{tl|Library resources box}} template provides a sidebar box of external links to resources in the user's preferred library about or by the topic of an article.  The links go out to an external program (&quot;FTL&quot;, currently hosted at the [[Online Books Page]] server at the [[University of Pennsylvania Libraries#Libraries| University of Pennsylvania Libraries]]) that formulates an appropriate search request for a selected library's catalog or other discovery application.  Users can register their preferred library with FTL for a one-click transition from Wikipedia to their library's relevant resources.   Other links in this box allow the user to choose a different library, or (optionally) to see what books they can freely read online.
 
 You can request additional libraries to be added to FTL's knowledge base via [http://onlinebooks.library.upenn.edu/webbin/olbpcontact?type=library this form].
 
 == Usage ==
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Library resources box |by= |onlinebooks= |others= |about= |label=
   |viaf= |lccn= |lcheading= |wikititle= }}
 
 &lt;!-- All parameters are optional; last four are mutually exclusive --&gt;
 &lt;/pre&gt;
 
 ==Parameters==
 * &lt;code&gt;by=&lt;/code&gt; If set to &lt;code&gt;yes&lt;/code&gt;, links are shown for resources by the article's topic, as well as resources about article's topic.
 * &lt;code&gt;onlinebooks=&lt;/code&gt; If set to &lt;code&gt;yes&lt;/code&gt;, links are shown for free online books (as listed on the [[Online Books Page]]).  It is best to check to see if any such books are listed there.  (If not, eligible books [http://onlinebooks.library.upenn.edu/suggest.html may be suggested].) You can set &lt;code&gt;onlinebooksabout&lt;/code&gt; to &lt;code&gt;yes&lt;/code&gt;, instead of this parameter, to link to online books about (but not by) the subject, or set &lt;code&gt;onlinebooksby&lt;/code&gt; to &lt;code&gt;yes&lt;/code&gt;, instead of this parameter, to link to online books by (but not about) the subject.
 * &lt;code&gt;others=&lt;/code&gt; If set to &lt;code&gt;no&lt;/code&gt;, links are not shown to select other libraries.
 * &lt;code&gt;about=&lt;/code&gt; If set to &lt;code&gt;no&lt;/code&gt;, links are not shown for resources about the article's topic.  (If by is not set to yes in this case, the box will be linkless.)
 * &lt;code&gt;label=&lt;/code&gt; If set, the value is used in place of the article title on the label of the box.
 * The remaining parameters can be used to specify more precisely the topic to query in the destination library.  By default, the FTL service will attempt to find a suitable library subject or author heading based on the title of the Wikipedia article, or use the article's title in a keyword query, but you can use one of the following parameters to more precisely direct the library query.  No more than one of the following parameters should be used:
 ** &lt;code&gt;viaf=&lt;/code&gt; The topic is identified by the supplied [[Virtual International Authority File]] identifier, if known.
 ** &lt;code&gt;lccn=&lt;/code&gt; The topic is identified by the supplied [[Library of Congress Control Number]], if known.  Currently only LCCNs for names are supported; we hope to add support for topical subjects, and titles, in the future.
 ** &lt;code&gt;lcheading=&lt;/code&gt; The topic is identified by the supplied authorized name or subject heading from the [http://id.loc.gov/ Library of Congress Authorities].
 ** &lt;code&gt;wikititle=&lt;/code&gt; The topic should be based on the supplied Wikipedia page title, instead of the current Wikipedia page's title.
 
 == Examples ==
 {{Library resources box|onlinebooks=yes|by=yes|viaf=31432428|label=George Washington}}
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Library resources box}}
 &lt;/pre&gt;
 
 The simplest template call generates a sidebar box with links to resources at the user's preferred library, and at other libraries, based the title of the current Wikipedia article.  Links about the topic are shown; links by the topic, and links to online books, are not shown.
 
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Library resources box
  |onlinebooks=yes
  |by=yes
  |viaf=31432428
  |label=George Washington}}
 &lt;/pre&gt;
 
 This generates a sidebar box with links to online books, resources at the user's preferred library, and resources at other libraries, both about and by the assignee of VIAF ID &quot;31432428&quot; (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.
 
 This is the code used to generate the box appearing in the top right corner of this section.  (Because this page is not titled &quot;George Washington&quot;, we also used a label argument to make that name appear in the box label.  If this page were titled &quot;George Washington&quot;, we would not need to use that label argument to make his name appear.)
 
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Library resources box|onlinebooks=yes|label=the Underground Railroad}}
 &lt;/pre&gt;
 
 This generates a sidebar box with links to online books, resources at the user's preferred library, and resources at other libraries, about the [[Underground Railroad]] (if it is placed on a page titled &quot;Underground Railroad&quot;, or the additional parameter &lt;code&gt;wikititle&lt;/code&gt; is set to &lt;code&gt;Underground Railroad&lt;/code&gt;).  The label parameter in this case makes the box label render as &quot;About the Underground Railroad&quot; instead of &quot;About Underground Railroad&quot;.
 
 &lt;pre style=&quot;overflow:auto;&quot;&gt;
 {{Library resources box
   |onlinebooks=yes
   |lcheading=World War, 1914-1918 -- Personal narratives
   |label=World War I (in personal accounts)}}
 &lt;/pre&gt;
 
 This generates a sidebar box with links to online books, resources at the user's preferred library, and resources at other libraries, that are personal accounts of World War I.  The lcheading parameter is used to explicitly specify a Library of Congress subject heading to use for the library links.  (Note that we mark subdivisions in LC subject headings with two hyphens, preferably surrounded by spaces.) We also include a label parameter to label the concept using more everyday language.
 
 == Placement ==
 From my understanding of Wikipedia conventions,
 this box should normally be placed in the External links section, the Further reading section, or the last section of the article.  (There might also be other appropriate selections.)  The box should be inserted at the start of the section before any section text (but after any sidebar boxes that take priority over this one).
 
 If the box cannot cleanly fit in the appropriate section, consider instead using one or more of the inline text templates mentioned in the See Also section below.
 
 == See also ==
 * {{tl|Library resources about}}—generates the same About links that this box does, but as inlined text instead of in a box. 
 * {{tl|Library resources by}}—generates the same By links that this box does, but as inlined text instead of in a box. 
 * {{tl|Library link about}}—generates a single About link as inlined text.  Used by this template.
 * {{tl|Library link by}}—generates a single By link as inlined text.  Used by this template.
 
 &lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:External link templates]]