Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 9: Line 9:
     {{#if: {{{image|}}} |
     {{#if: {{{image|}}} |
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; padding: 0; margin: 0;">
       <td colspan="2" style="text-align: center; padding: 0; background-color: #ffffff;">
        <div style="padding: 0; background-color: #ffffff; text-align: center;">
        [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]]
          [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]]
        </div>
       </td>
       </td>
     </tr>
     </tr>
Line 19: Line 17:
     {{#if: {{{caption|}}} |
     {{#if: {{{caption|}}} |
     <tr>
     <tr>
       <td colspan="2" style="text-align: center; font-size: 90%; font-style: italic; margin: 0; padding: 0.2em 0;">{{{caption}}}</td>
       <td colspan="2" style="text-align: center; font-size: 90%; font-style: italic; color: #666666; background-color: #ffffff; padding: 0.2em 0;">{{{caption}}}</td>
     </tr>
     </tr>
     }}
     }}
Line 35: Line 33:
     </tr>
     </tr>
     }}
     }}
    {{#if: {{{series|}}} |
     <!-- Add additional rows here as needed -->
     <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Series</td>
      <td style="padding: 0.2em 0.3em;">{{{series}}}</td>
    </tr>
    }}
    {{#if: {{{publication_date|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Publication date</td>
      <td style="padding: 0.2em 0.3em;">{{{publication_date}}}</td>
    </tr>
    }}
    {{#if: {{{publication_place|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Publication place</td>
      <td style="padding: 0.2em 0.3em;">{{{publication_place}}}</td>
    </tr>
    }}
    {{#if: {{{publisher|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Publisher</td>
      <td style="padding: 0.2em 0.3em;">{{{publisher}}}</td>
    </tr>
    }}
    {{#if: {{{media_type|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Media type</td>
      <td style="padding: 0.2em 0.3em;">{{{media_type}}}</td>
    </tr>
    }}
    {{#if: {{{pages|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Pages</td>
      <td style="padding: 0.2em 0.3em;">{{{pages}}}</td>
    </tr>
    }}
    {{#if: {{{genre|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Genre</td>
      <td style="padding: 0.2em 0.3em;">{{{genre}}}</td>
    </tr>
    }}
    {{#if: {{{isbn|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">ISBN</td>
      <td style="padding: 0.2em 0.3em;">{{{isbn}}}</td>
    </tr>
    }}
    {{#if: {{{preceded_by|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Preceded by</td>
      <td style="padding: 0.2em 0.3em;">{{{preceded_by}}}</td>
    </tr>
    }}
    {{#if: {{{proceeded_by|}}} |
    <tr>
      <td style="font-weight: bold; padding: 0.2em 0.3em;">Proceeded by</td>
      <td style="padding: 0.2em 0.3em;">{{{proceeded_by}}}</td>
    </tr>
    }}
   </table>
   </table>
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==

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