Template:Infobox book: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
Created page with "<includeonly> {{#ifeq:{{NAMESPACE}}|Template|{{Documentation}}}} <div class="infobox" style="width: 25em; font-size: 90%; background-color: #f9f9f9; border: 1px solid #aaaaaa; border-collapse: collapse; margin-bottom: 0.5em;"> <div style="background-color: #ccccff; text-align: center; font-size: 125%; font-weight: bold;">{{{title|{{PAGENAME}}}}}</div> {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1|alt={{{alt|}}}|{{{caption|}}}]]}} {{#if:{{{caption|}}}|<div sty..." |
No edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="infobox" style="width: 22em; font-size: 88%; border: 1px solid #aaa; margin: 0 0 1em 1em; background-color: #f9f9f9;"> | ||
<div class="infobox-header" style="font-size: 110%; font-weight: bold; text-align: center; padding: 2px; background-color: #e9e9e9;">{{{title|{{PAGENAME}}}}}</div> | |||
<div class="infobox" style="width: | {{#if:{{{image|}}}|<div class="infobox-image"><center>[[File:{{{image}}}|220px|alt={{{alt|}}}|{{{caption|}}}]]</center></div>}} | ||
<div style=" | {{#if:{{{caption|}}}|<div class="infobox-caption" style="text-align: center; padding-top: 1px;">{{{caption}}}</div>}} | ||
{{#if:{{{image|}}}|[[File:{{{image}}}| | <table class="infobox-table" style="width: 100%; border-spacing: 1px;"> | ||
{{#if:{{{caption|}}}|<div style=" | {{#if:{{{author|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Author</td><td class="infobox-data">{{{author}}}</td></tr>}} | ||
{{#if:{{{country|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Country</td><td class="infobox-data">{{{country}}}</td></tr>}} | |||
{{#if:{{{author|}}}| | {{#if:{{{language|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Language</td><td class="infobox-data">{{{language}}}</td></tr>}} | ||
{{#if:{{{country|}}}| | {{#if:{{{genre|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Genre</td><td class="infobox-data">{{{genre}}}</td></tr>}} | ||
{{#if:{{{language|}}}| | {{#if:{{{publisher|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Publisher</td><td class="infobox-data">{{{publisher}}}</td></tr>}} | ||
{{#if:{{{genre|}}}| | {{#if:{{{published|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Published</td><td class="infobox-data">{{{published}}}</td></tr>}} | ||
{{#if:{{{publisher|}}}| | {{#if:{{{media_type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Media type</td><td class="infobox-data">{{{media_type}}}</td></tr>}} | ||
{{#if:{{{published|}}}| | {{#if:{{{pages|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Pages</td><td class="infobox-data">{{{pages}}}</td></tr>}} | ||
{{#if:{{{media_type|}}}| | {{#if:{{{isbn|}}}|<tr><td class="infobox-label" style="font-weight: bold;">ISBN</td><td class="infobox-data">{{{isbn}}}</td></tr>}} | ||
{{#if:{{{pages|}}}| | {{#if:{{{oclc|}}}|<tr><td class="infobox-label" style="font-weight: bold;">OCLC</td><td class="infobox-data">{{{oclc}}}</td></tr>}} | ||
{{#if:{{{isbn|}}}| | </table> | ||
{{#if:{{{oclc|}}}| | </div>[[Category:Literature]]</includeonly><noinclude> | ||
</div> | |||
</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
[[Category:Infobox templates]] | |||
</noinclude> | |||
[[Category:Infobox templates]]</noinclude> | |||
Latest revision as of 01:15, 22 March 2024
[edit] []
Template documentation
Documentation
Shadows of a New Dawn
Cover of the first edition
| Author | Esteban Moreno |
| Country | Nouvelle Alexandrie |
| Language | English |
| Genre | Political Thriller, Science Fiction |
| Publisher | Punta Santiago Press |
| Published | 1729 |
| Media type | Hardcover, E-book |
| Pages | 432 |
| ISBN | 978-3-16-148410-0 |
| OCLC | 320497589 |
Usage
This template is used to create an infobox for book articles. It provides a standardized way to present key details about a book. To use this template, copy and paste the following code into the top of the article, filling out the relevant fields.
{{Infobox book
| title =
| image = <!-- example: Example.jpg -->
| caption =
| author =
| country =
| language =
| genre =
| publisher =
| published = <!-- example: {{Start date|1729|AN}} -->
| media_type =
| pages =
| isbn =
| oclc =
}}
Parameters
- title
- The title of the book. If not specified, the page name will be used.
- image
- (optional) Filename of the book cover image.
- caption
- (optional) Caption for the book cover image.
- author
- The author(s) of the book.
- country
- The country of the book's origin.
- language
- The language in which the book was written.
- genre
- The genre of the book.
- publisher
- The publisher of the book.
- published
- The date when the book was first published.
- media_type
- The format of the book (e.g., Paperback, Hardcover, E-book).
- pages
- The number of pages in the book.
- isbn
- The International Standard Book Number.
- oclc
- The Online Computer Library Center number.
Fill out each parameter to provide a comprehensive infobox for the book article. Omit any parameters that do not apply to the specific book being described.
| The above documentation is transcluded from Template:Infobox book/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |