Template:Book: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
| Line 7: | Line 7: | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
| colspan="2" style="text-align: center;" | [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]] | | colspan="2" style="text-align: center;" | [[File:{{{image}}}|200px|alt={{{caption|}}}|{{{caption|}}}]] | ||
|- }} | |||
{{#if: {{{caption|}}} | | |||
| colspan="2" style="text-align: center; font-size: 90%; font-style: italic; padding: 0.5em;" | {{{caption}}} | |||
|- }} | |||
{{#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}}} | |||
|- }} | |- }} | ||
|} | |} | ||
| Line 13: | Line 52: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
This is a | This is a generic infobox for books. Only fields that are provided will appear in the infobox. | ||
=== Parameters === | === Parameters === | ||
* `title` (required): The book's title. | * `title` (required): The book's title. | ||
* `image`: Filename of the book cover image (e.g., `File:Example.jpg`). | * `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 === | === Example Usage === | ||
```wiki | ```wiki | ||
{{InfoboxBook | {{InfoboxBook | ||
| title = | | title = Mistborn: The Final Empire | ||
| image = | | image = Beth Brower.jpg | ||
| caption = Cover of ''Mistborn: The Final Empire'' | |||
| author = Brandon Sanderson | |||
| audio_read_by = Michael Kramer | |||
| series = Mistborn | |||
| publication_date = July 17, 2006 | |||
| publication_place = New York, NY | |||
| publisher = Tor Books | |||
| media_type = Hardcover | |||
| pages = 541 | |||
| genre = Fantasy | |||
| isbn = 978-0-7653-1178-4 | |||
| preceded_by = (None) | |||
| proceeded_by = ''The Well of Ascension'' | |||
}} | }} | ||
Revision as of 23:11, 18 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