Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 30: Line 30:
     {{#if: {{{author|}}} |
     {{#if: {{{author|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Author</td>
       <td style="font-weight: bold; padding: 0.5em;">Author</td>
       <td style="padding: 0.5em; text-align: left;">{{{author}}}</td>
       <td style="padding: 0.5em;">{{{author}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 38: Line 38:
     {{#if: {{{audio_read_by|}}} |
     {{#if: {{{audio_read_by|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Audio read by</td>
       <td style="font-weight: bold; padding: 0.5em;">Audio read by</td>
       <td style="padding: 0.5em; text-align: left;">{{{audio_read_by}}}</td>
       <td style="padding: 0.5em;">{{{audio_read_by}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 46: Line 46:
     {{#if: {{{series|}}} |
     {{#if: {{{series|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Series</td>
       <td style="font-weight: bold; padding: 0.5em;">Series</td>
       <td style="padding: 0.5em; text-align: left;">{{{series}}}</td>
       <td style="padding: 0.5em;">{{{series}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 54: Line 54:
     {{#if: {{{publication_date|}}} |
     {{#if: {{{publication_date|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Publication date</td>
       <td style="font-weight: bold; padding: 0.5em;">Publication date</td>
       <td style="padding: 0.5em; text-align: left;">{{{publication_date}}}</td>
       <td style="padding: 0.5em;">{{{publication_date}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 62: Line 62:
     {{#if: {{{publication_place|}}} |
     {{#if: {{{publication_place|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Publication place</td>
       <td style="font-weight: bold; padding: 0.5em;">Publication place</td>
       <td style="padding: 0.5em; text-align: left;">{{{publication_place}}}</td>
       <td style="padding: 0.5em;">{{{publication_place}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 70: Line 70:
     {{#if: {{{publisher|}}} |
     {{#if: {{{publisher|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Publisher</td>
       <td style="font-weight: bold; padding: 0.5em;">Publisher</td>
       <td style="padding: 0.5em; text-align: left;">{{{publisher}}}</td>
       <td style="padding: 0.5em;">{{{publisher}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 78: Line 78:
     {{#if: {{{media_type|}}} |
     {{#if: {{{media_type|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Media type</td>
       <td style="font-weight: bold; padding: 0.5em;">Media type</td>
       <td style="padding: 0.5em; text-align: left;">{{{media_type}}}</td>
       <td style="padding: 0.5em;">{{{media_type}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 86: Line 86:
     {{#if: {{{pages|}}} |
     {{#if: {{{pages|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Pages</td>
       <td style="font-weight: bold; padding: 0.5em;">Pages</td>
       <td style="padding: 0.5em; text-align: left;">{{{pages}}}</td>
       <td style="padding: 0.5em;">{{{pages}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 94: Line 94:
     {{#if: {{{genre|}}} |
     {{#if: {{{genre|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Genre</td>
       <td style="font-weight: bold; padding: 0.5em;">Genre</td>
       <td style="padding: 0.5em; text-align: left;">{{{genre}}}</td>
       <td style="padding: 0.5em;">{{{genre}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 102: Line 102:
     {{#if: {{{isbn|}}} |
     {{#if: {{{isbn|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">ISBN</td>
       <td style="font-weight: bold; padding: 0.5em;">ISBN</td>
       <td style="padding: 0.5em; text-align: left;">{{{isbn}}}</td>
       <td style="padding: 0.5em;">{{{isbn}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 110: Line 110:
     {{#if: {{{preceded_by|}}} |
     {{#if: {{{preceded_by|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Preceded by</td>
       <td style="font-weight: bold; padding: 0.5em;">Preceded by</td>
       <td style="padding: 0.5em; text-align: left;">{{{preceded_by}}}</td>
       <td style="padding: 0.5em;">{{{preceded_by}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 118: Line 118:
     {{#if: {{{proceeded_by|}}} |
     {{#if: {{{proceeded_by|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.5em; text-align: left;">Proceeded by</td>
       <td style="font-weight: bold; padding: 0.5em;">Proceeded by</td>
       <td style="padding: 0.5em; text-align: left;">{{{proceeded_by}}}</td>
       <td style="padding: 0.5em;">{{{proceeded_by}}}</td>
     </tr>
     </tr>
     }}
     }}

Revision as of 21:07, 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.
  • `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).
  • `proceeded_by`: Next book in the series (if applicable).

Example Usage

```wiki Template:InfoboxBook