Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div style="width: 300px; background: #ffffff; border: 1px solid #aaa; padding: 0.5em; float: right; margin: -1.5em 0 1.5em 1em; vertical-align: top; display: inline-block; clear: right; position: relative; top: 1.5em;">
<includeonly><div style="width: 300px; background: #f8f9fa; border: 1px solid #aaa; padding: 0.5em; float: right; margin: -1.5em 0 1.5em 1em; vertical-align: top; display: inline-block; clear: right; position: relative; top: 1.5em;">
   <table style="width: 100%; border-spacing: 0; margin: 0; background-color: #ffffff;">
   <table style="width: 100%; border-spacing: 0; margin: 0; background-color: #f8f9fa;">
     <!-- Title -->
     <!-- Title -->
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; background-color: #ffffff; font-size: 120%; font-weight: bold; padding: 0;">{{{title|No title provided}}}</td>
       <td colspan="2" style="text-align: center; background-color: #f8f9fa; font-size: 120%; font-weight: bold; padding: 0;">{{{title|No title provided}}}</td>
     </tr>
     </tr>
     <!-- Image -->
     <!-- Image -->
     {{#if: {{{image|}}} |
     {{#if: {{{image|}}} |
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; padding: 0; background-color: #ffffff;">
       <td colspan="2" style="text-align: center; padding: 0; background-color: #f8f9fa;">
         <div style="display: block; margin: auto; padding: 0.5em 0; background-color: #ffffff;">
         <div style="display: block; margin: auto; padding: 0.5em 0; background-color: #f8f9fa;">
           [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]
           [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]
         </div>
         </div>
Line 18: Line 18:
     {{#if: {{{caption|}}} |
     {{#if: {{{caption|}}} |
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; font-size: 80%; font-style: italic; color: #000000; background-color: #ffffff; padding: 0.1em 0;">{{{caption}}}</td>
       <td colspan="2" style="text-align: center; font-size: 80%; font-style: italic; color: #000000; background-color: #f8f9fa; padding: 0.1em 0;">{{{caption}}}</td>
     </tr>
     </tr>
     }}
     }}

Revision as of 23:08, 26 February 2025


Example InfoBox
Caption Here
Caption Here
Caption Here
Author Author's Name
Audio Read by Reader's Name
Series Series Name
Period Covered Time Period
Publication Date Date Here
Publication Place Location here
Publisher Publisher here
Media Type Format Here
Pages Page Numbers
Genre Genre Here
ISBN ISBN Here
Preceded by Title Here
Followed by Title Here


Usage

This is a generic infobox for books. Only fields that are provided will appear in the infobox.

Parameters

  • `title` (required): The book's title.
  • `image`: Filename of the book cover image (e.g., `File:Example.jpg`).
  • `caption`: Caption for the image.
  • `author`: Author of the book.
  • `audio_read_by`: The narrator of the audiobook (if applicable).
  • `series`: Series the book belongs to.
  • 'period covered': Period of time covered in book.
  • `publication_date`: Date the book was published.
  • `publication_place`: Place where the book was published.
  • `publisher`: The book's publisher.
  • `media_type`: The format (e.g., Hardcover, Paperback, eBook, Audiobook).
  • `pages`: Number of pages in the book.
  • `genre`: The book's genre.
  • `isbn`: The ISBN of the book.
  • `preceded_by`: Previous book in the series (if applicable).
  • `followed_by`: Next book in the series (if applicable).