Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Tag: Reverted
Line 5: Line 5:
       <td colspan="2" style="text-align: center; background-color: #f2f2f2; font-size: 120%; padding: 0.2em; font-weight: bold;">{{{title|No title provided}}}</td>
       <td colspan="2" style="text-align: center; background-color: #f2f2f2; font-size: 120%; padding: 0.2em; font-weight: bold;">{{{title|No title provided}}}</td>
     </tr>
     </tr>
    {{#if: {{{image|}}}|
    <tr>
      <td colspan="2" style="text-align: center; padding: 0.2em;">
        <img src="{{{image}}}" alt="Cover of {{{title}}}" style="max-width: 100%; height: auto;"/>
      </td>
    </tr>
    }}
    {{#if: {{{caption|}}}|
    <tr>
      <td colspan="2" style="text-align: center; font-style: italic; padding: 0.2em;">
        {{{caption}}}
      </td>
    </tr>
    }}
     {{#if: {{{author|}}}|
     {{#if: {{{author|}}}|
     <tr>
     <tr>
Line 80: Line 94:
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
== Usage ==
== Usage ==

Revision as of 22:11, 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