Template:Infobox book: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
Edgard (talk | contribs)
Edgard (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{NAMESPACE}}|Template|{{Documentation}}}}
<div class="infobox" style="width: 22em; font-size: 88%; border: 1px solid #aaa; margin: 0 0 1em 1em; background-color: #f9f9f9;">
<div class="infobox" style="width: 25em; font-size: 90%; background-color: #f9f9f9; border: 1px solid #aaaaaa; border-collapse: collapse; margin-bottom: 0.5em;">
    <div class="infobox-header" style="font-size: 110%; font-weight: bold; text-align: center; padding: 2px; background-color: #e9e9e9;">{{{title|{{PAGENAME}}}}}</div>
<div style="background-color: #ccccff; text-align: center; font-size: 125%; font-weight: bold;">{{{title|{{PAGENAME}}}}}</div>
    {{#if:{{{image|}}}|<div class="infobox-image"><center>[[File:{{{image}}}|220px|alt={{{alt|}}}|{{{caption|}}}]]</center></div>}}
{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1|alt={{{alt|}}}|{{{caption|}}}]]}}
    {{#if:{{{caption|}}}|<div class="infobox-caption" style="text-align: center; padding-top: 2px;">{{{caption}}}</div>}}
{{#if:{{{caption|}}}|<div style="padding: 0.2em; text-align: center;">{{{caption}}}</div>}}
    <table class="infobox-table" style="width: 100%; border-spacing: 2px;">
{{{content}}}
        {{#if:{{{author|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Author</td><td class="infobox-data">{{{author}}}</td></tr>}}
{{#if:{{{author|}}}|{{!}}-{{!}} '''Author''' {{!}}{{!}} {{{author}}}<br>}}
        {{#if:{{{country|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Country</td><td class="infobox-data">{{{country}}}</td></tr>}}
{{#if:{{{country|}}}|{{!}}-{{!}} '''Country''' {{!}}{{!}} {{{country}}}<br>}}
        {{#if:{{{language|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Language</td><td class="infobox-data">{{{language}}}</td></tr>}}
{{#if:{{{language|}}}|{{!}}-{{!}} '''Language''' {{!}}{{!}} {{{language}}}<br>}}
        {{#if:{{{genre|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Genre</td><td class="infobox-data">{{{genre}}}</td></tr>}}
{{#if:{{{genre|}}}|{{!}}-{{!}} '''Genre''' {{!}}{{!}} {{{genre}}}<br>}}
        {{#if:{{{publisher|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Publisher</td><td class="infobox-data">{{{publisher}}}</td></tr>}}
{{#if:{{{publisher|}}}|{{!}}-{{!}} '''Publisher''' {{!}}{{!}} {{{publisher}}}<br>}}
        {{#if:{{{published|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Published</td><td class="infobox-data">{{{published}}}</td></tr>}}
{{#if:{{{published|}}}|{{!}}-{{!}} '''Published''' {{!}}{{!}} {{{published}}}<br>}}
        {{#if:{{{media_type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Media type</td><td class="infobox-data">{{{media_type}}}</td></tr>}}
{{#if:{{{media_type|}}}|{{!}}-{{!}} '''Media type''' {{!}}{{!}} {{{media_type}}}<br>}}
        {{#if:{{{pages|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Pages</td><td class="infobox-data">{{{pages}}}</td></tr>}}
{{#if:{{{pages|}}}|{{!}}-{{!}} '''Pages''' {{!}}{{!}} {{{pages}}}<br>}}
        {{#if:{{{isbn|}}}|<tr><td class="infobox-label" style="font-weight: bold;">ISBN</td><td class="infobox-data">{{{isbn}}}</td></tr>}}
{{#if:{{{isbn|}}}|{{!}}-{{!}} '''ISBN''' {{!}}{{!}} {{{isbn}}}<br>}}
        {{#if:{{{oclc|}}}|<tr><td class="infobox-label" style="font-weight: bold;">OCLC</td><td class="infobox-data">{{{oclc}}}</td></tr>}}
{{#if:{{{oclc|}}}|{{!}}-{{!}} '''OCLC''' {{!}}{{!}} {{{oclc}}}<br>}}
    </table>
</div>
</div>
</includeonly><noinclude>
</includeonly>
<noinclude>
{{Documentation}}
{{Documentation}}
 
[[Category:Infobox templates]]
 
</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 03:36, 20 February 2024


[edit] [purge] Template documentation

Documentation

Shadows of a New Dawn
Cover of the first edition
AuthorEsteban Moreno
CountryNouvelle Alexandrie
LanguageEnglish
GenrePolitical Thriller, Science Fiction
PublisherPunta Santiago Press
Published1729 (1729-AN)
Media typeHardcover, E-book
Pages432
ISBN978-3-16-148410-0
OCLC320497589


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.