Difference between revisions of "Template:Librivox book/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
(then papers is an ordinary word, as it's not part of the title)
imported>Lethargilistic
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{lua|Module:Librivox book}}
+
{{lua|Module:Librivox book}}<includeonly>
 +
{{high-use|3,000+}}</includeonly>
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
This template is for linking books at [[LibriVox]]. For linking authors see {{tl|Librivox author}}
+
This template is for linking books at [[LibriVox]]. For linking authors see {{tl|Librivox author}}.
  
 
== Usage ==
 
== Usage ==
Line 12: Line 13:
 
Parameter options:
 
Parameter options:
  
*'''title''' = the title of the book. This will be the search term at LibriVox, and the display name at Wikipedia. If no title is given it defaults to the article name (not normally recommended in case the article is renamed in the future).
+
*'''title''' = The title of the book. This will be the search term at LibriVox, and the display name at Wikipedia. If no title is given it defaults to the article name (not normally recommended in case the article is renamed in the future).
*'''stitle''' = the title used when searching LibriVox.org  
+
*'''stitle''' = The title used when searching LibriVox.org.
*'''dtitle''' = the display title on Wikipedia.  
+
*'''dtitle''' = The display title on Wikipedia.  
 
::Example for [[The Federalist Papers]]:
 
::Example for [[The Federalist Papers]]:
 
::::<nowiki>{{Librivox book |stitle=The Federalist Papers |dtitle=''The Federalist'' papers}}</nowiki>
 
::::<nowiki>{{Librivox book |stitle=The Federalist Papers |dtitle=''The Federalist'' papers}}</nowiki>
Line 20: Line 21:
 
::::{{Librivox book |title=The Federalist Papers |dtitle=''The Federalist'' papers}}
 
::::{{Librivox book |title=The Federalist Papers |dtitle=''The Federalist'' papers}}
 
::Note the use of ''italics'' and no author field.
 
::Note the use of ''italics'' and no author field.
*'''author''' = the name of the author. Usually this only needs to be the last name of the author. You may use the full name for future compatibility (recommended) but for now the template extracts the last word in the name only. If no author is given (such as the federalist paper example above) it will be result in a broader search at LibriVox.org
+
*'''author''' = The name of the author. Usually this only needs to be the last name of the author. You may use the full name for future compatibility (recommended) but for now the template extracts the last word in the name only. If no author is given (such as the federalist paper example above) it will be result in a broader search at LibriVox.org.
  
 
==Examples==
 
==Examples==

Revision as of 07:40, 2 August 2018

This template is for linking books at LibriVox. For linking authors see {{Librivox author}}.

Usage

In most cases the template takes two parameters, the title of the book and the author name.

{{Librivox book |title=<book title> |author=<author name>}}

Parameter options:

  • title = The title of the book. This will be the search term at LibriVox, and the display name at Wikipedia. If no title is given it defaults to the article name (not normally recommended in case the article is renamed in the future).
  • stitle = The title used when searching LibriVox.org.
  • dtitle = The display title on Wikipedia.
Example for The Federalist Papers:
{{Librivox book |stitle=The Federalist Papers |dtitle=''The Federalist'' papers}}
Will produce:
File:Speaker Icon.svg The Federalist papers public domain audiobook at LibriVox
Note the use of italics and no author field.
  • author = The name of the author. Usually this only needs to be the last name of the author. You may use the full name for future compatibility (recommended) but for now the template extracts the last word in the name only. If no author is given (such as the federalist paper example above) it will be result in a broader search at LibriVox.org.

Examples

{{Librivox book | title=The Time Machine | author=H. G. Wells}}

Will produce:

File:Speaker Icon.svg The Time Machine public domain audiobook at LibriVox