Template:Book: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="float: right; clear: right; width: 300px; margin: 0 0 1em 1em; background-color: #f9f9f9; border: 1px solid #aaa; padding: 0.5em;">
<div style="width: 100%; background: #ffffff; border: 1px solid #aaa; padding: 0.5em;">
{| style="width: 100%; background: #ffffff; border-spacing: 0; margin: 0;"
  <table style="width: 100%; background: #ffffff; border-spacing: 0; margin: 0;">
|-
    <tr>
! colspan="2" style="text-align: center; background-color: #f2f2f2; font-size: 120%; padding: 0.5em; font-weight: bold;" | {{{title|Title Unknown}}}
      <td colspan="2" style="text-align: center; background-color: #f2f2f2; font-size: 120%; padding: 0.5em; font-weight: bold;">{{{title|No title provided}}}</td>
|-
    </tr>
{{#if: {{{image|}}}
    {{#if: {{{author|}}}|
| colspan="2" style="text-align: center;" | [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]]
    <tr>
|}}
      <td style="font-weight: bold; padding: 0.5em;">Author</td>
|-
      <td style="padding: 0.5em;">{{{author}}}</td>
{{#if: {{{caption|}}}
    </tr>
| colspan="2" style="text-align: center; font-size: 90%; font-style: italic; padding: 0.5em;" | {{{caption}}}
    }}
|}}
  </table>
|-
{{#if: {{{author|}}}
| '''Author''' || {{{author}}}
|}}
|-
{{#if: {{{audio_read_by|}}}
| '''Audio read by''' || {{{audio_read_by}}}
|}}
|-
{{#if: {{{series|}}}
| '''Series''' || {{{series}}}
|}}
|-
{{#if: {{{publication_date|}}}
| '''Publication date''' || {{{publication_date}}}
|}}
|-
{{#if: {{{publication_place|}}}
| '''Publication place''' || {{{publication_place}}}
|}}
|-
{{#if: {{{publisher|}}}
| '''Publisher''' || {{{publisher}}}
|}}
|-
{{#if: {{{media_type|}}}
| '''Media type''' || {{{media_type}}}
|}}
|-
{{#if: {{{pages|}}}
| '''Pages''' || {{{pages}}}
|}}
|-
{{#if: {{{genre|}}}
| '''Genre''' || {{{genre}}}
|}}
|-
{{#if: {{{isbn|}}}
| '''ISBN''' || {{{isbn}}}
|}}
|-
{{#if: {{{preceded_by|}}}
| '''Preceded by''' || {{{preceded_by}}}
|}}
|-
{{#if: {{{proceeded_by|}}}
| '''Proceeded by''' || {{{proceeded_by}}}
|}}
|}
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>

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