Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="width: 300px; background: #ffffff; border: 1px solid #aaa; padding: 0.5em;">
<div style="width: 300px; background: #ffffff; border: 1px solid #aaa; padding: 1em; margin: 0 auto;">
   <table style="width: 100%; background: #ffffff; border-spacing: 0; margin: 0;">
   <table style="width: 100%; background: #ffffff; border-spacing: 0; margin: 0;">
     <!-- Title Section -->
     <!-- Title Section -->
Line 8: Line 8:
       </td>
       </td>
     </tr>
     </tr>
   
 
     <!-- Image Section -->
     <!-- Image Section -->
     {{#if: {{{image|}}} |
     {{#if: {{{image|}}} |
     <tr>
     <tr>
       <td colspan="2" style="text-align: center;">
       <td colspan="2" style="text-align: center; padding: 0.5em;">
         [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]]
         [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]]
       </td>
       </td>
Line 56: Line 56:
       <td style="font-weight: bold; padding: 0.5em;">Publication date</td>
       <td style="font-weight: bold; padding: 0.5em;">Publication date</td>
       <td style="padding: 0.5em;">{{{publication_date}}}</td>
       <td style="padding: 0.5em;">{{{publication_date}}}</td>
    </tr>
    }}
    <!-- Publication Place Section -->
    {{#if: {{{publication_place|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.5em;">Publication place</td>
      <td style="padding: 0.5em;">{{{publication_place}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 138: Line 130:
* `series`: Series the book belongs to.
* `series`: Series the book belongs to.
* `publication_date`: Date the book was published.
* `publication_date`: Date the book was published.
* `publication_place`: Place where the book was published.
* `publisher`: The book's publisher.
* `publisher`: The book's publisher.
* `media_type`: The format (e.g., Hardcover, Paperback, eBook, Audiobook).
* `media_type`: The format (e.g., Hardcover, Paperback, eBook, Audiobook).
Line 157: Line 148:
| series = Mistborn
| series = Mistborn
| publication_date = July 17, 2006
| publication_date = July 17, 2006
| publication_place = New York, NY
| publisher = Tor Books
| publisher = Tor Books
| media_type = Hardcover
| media_type = Hardcover

Revision as of 21:43, 20 November 2024


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.
  • `publication_date`: Date 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).
  • `proceeded_by`: Next book in the series (if applicable).

Example Usage

```wiki Template:InfoboxBook