Jump to content

Template:BookReview and Template:BookReview/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
m Added cat.
 
Created page with "This template formats bibliographic and reviewer information for a book under review. It is designed for use in review pages or entries and floats a metadata box on the right-hand side. === Usage === Place the following code on your review page and fill in the appropriate fields: <pre> {{BookReviewBox | title = The Metaphysical Club | author = Louis Menand | location= New York | pub = Farrar, Straus and Giroux | date = 2001 | pages = 546 pp. | type..."
 
Line 1: Line 1:
<div style="float: right; width: 18em; margin: 0 0 1em 1em; padding: 1em; border: 1px solid #ccc; background-color: #f9f9f9;">
This template formats bibliographic and reviewer information for a book under review. It is designed for use in review pages or entries and floats a metadata box on the right-hand side.
<big>''{{{title}}}''</big><br /><small>by: {{{author}}}</small><br /><small>{{{location}}}: {{{pub}}}, {{{date}}}</small><br /><small>{{{pages}}} pp. {{{type}}}, ${{{price}}}</small><br />{{#if:{{{note|}}}|<small>'''Note''': {{{note}}}</small>|}}<hr /><small>'''Reviewed by''': [[{{{first}}} {{{last}}}]]</small><br />{{#if:{{{link|}}}|<small>Purchase: [{{{link}}} {{{link}}}]</small>|}}{{#if:{{{url|}}}|<br /><small>Review URL: [{{{url}}} {{{url}}}]</small>|}}</div><includeonly>[[Category:Written by {{{first}}} {{{last}}}]] [[Category:Book Reviews (MR)]]</includeonly><noinclude>{{documentation}}</noinclude>
 
=== Usage ===
Place the following code on your review page and fill in the appropriate fields:
 
<pre>
{{BookReviewBox
| title   = The Metaphysical Club
| author  = Louis Menand
| location= New York
| pub    = Farrar, Straus and Giroux
| date    = 2001
| pages  = 546 pp.
| type    = Hardback
| price  = 27.00
| note    = Winner of the Pulitzer Prize
| first  = Jane
| last    = Doe
| link    = https://example.com/purchase
| url    = https://example.com/full-review
}}
</pre>
 
=== Parameters ===
; <code>title</code> : ''(required)'' The title of the book, which will be italicized.
; <code>author</code> : ''(required)'' Full name of the author of the book being reviewed.
; <code>location</code> : ''(required)'' City of publication.
; <code>pub</code> : ''(required)'' Publisher's name.
; <code>date</code> : ''(required)'' Year of publication.
; <code>pages</code> : ''(required)'' Total number of pages, e.g., "320 pp."
; <code>type</code> : ''(required)'' Book format (e.g., Paperback, Hardback, Cloth).
; <code>price</code> : ''(required)'' Book price, entered as a number (e.g., "24.95").
; <code>note</code> : ''(optional)'' Any additional note (e.g., awards, notable facts).
; <code>first</code> : ''(required)'' First name of the reviewer.
; <code>last</code> : ''(required)'' Last name of the reviewer.
; <code>link</code> : ''(optional)'' URL for purchasing the book. Displayed as "Link for purchase."
; <code>url</code> : ''(optional)'' URL to the full review. Displayed as "Full review."
 
=== Category Added ===
This template automatically categorizes the review page in the following ways:
* <code><nowiki>[[Category:Written by FIRST LAST]]</nowiki></code>
 
These help organize reviews for browsing and indexing by author, publisher, year, and reviewer.
 
=== Notes ===
* If no optional fields are filled in, they will not appear.
* The reviewer name is automatically linked to a page titled "First Last."