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; border-radius: 5px; padding: 0.5em; float: right; margin: 0 0 1em 1em;">
<div style="width: 300px; background: #ffffff; border: 1px solid #aaa; padding: 0.5em; float: right; margin: 0 0 1em 1em;">
   <table style="width: 100%; border-spacing: 0; margin: 0; background-color: #ffffff;">
   <table style="width: 100%; border-spacing: 0; margin: 0; background-color: #ffffff;">
     <!-- Title -->
     <!-- Title -->
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; background-color: #e6e6e6; font-size: 125%; font-weight: bold; padding: 0.2em 0;">{{{title|No title provided}}}</td>
       <td colspan="2" style="text-align: center; background-color: #f2f2f2; font-size: 120%; font-weight: bold; padding: 0;">{{{title|No title provided}}}</td>
     </tr>
     </tr>
     <!-- Image -->
     <!-- Image -->
Line 10: Line 10:
     <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: #ffffff;">
         <div style="display: block; margin: auto; padding: 0; background-color: #ffffff;">
         <div style="display: block; margin: auto; padding: 0.5em 0; background-color: #ffffff;">
           [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]
           [[File:{{{image}}}|200px|center|alt={{{caption|}}}|{{{caption|}}}]]
         </div>
         </div>
Line 25: Line 25:
     {{#if: {{{author|}}} |
     {{#if: {{{author|}}} |
     <tr>
     <tr>
       <td style="font-weight: bold; padding: 0.2em 0.3em;">Author</td>
       <td style="font-weight: bold; padding: 0.1em;">Author</td>
       <td style="padding: 0.2em 0.3em;">{{{author}}}</td>
       <td style="padding: 0.1em;">{{{author}}}</td>
     </tr>
     </tr>
     }}
     }}
    {{#if: {{{audio_read_by|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Audio read by</td>
      <td style="padding: 0.2em 0.3em;">{{{audio_read_by}}}</td>
    </tr>
    }}
    <!-- Add additional rows here as needed -->
   </table>
   </table>
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==

Revision as of 23:48, 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