Template:Book: Difference between revisions
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 | <td style="font-weight: bold; padding: 0.5em;">Author</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Audio read by</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Series</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Publication date</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Publication place</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Publisher</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Media type</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Pages</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Genre</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">ISBN</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Preceded by</td> | ||
<td style="padding: 0.5em | <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 | <td style="font-weight: bold; padding: 0.5em;">Proceeded by</td> | ||
<td style="padding: 0.5em | <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