styling
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
{| class="infobox" style="width: 250px; border: 1px solid #aaa; font-size: 90%; float: right; margin: 0 0 1em 1em;"
{| class="infobox" style="width:22em; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9; padding:0.5em; margin:0.5em 0;"
|-
|-
! colspan="2" style="font-size:125%; background-color:#f2f2f2; text-align:center;" | {{{name|}}}
! colspan="2" style="text-align: center; font-weight: bold;" | {{{name|Book Title}}}
|-
|-
| {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|upright=1.2]]}}
| colspan="2" style="text-align: center;" | [[File:{{{image|Placeholder.png}}}|200px|alt={{{alt|Book Cover}}}]]
|-
|-
| {{#if:{{{caption|}}}|<div style="text-align:center;">''{{{caption}}}''</div>}}
| '''Caption'''
| {{{caption|Description of the book cover}}}
|-
|-
| '''Author:''' || {{{author|}}}
| '''Author'''
| {{{author|Author Name}}}
|-
|-
| '''Country:''' || {{{country|}}}
| '''Country'''
| {{{country|Country Name}}}
|-
|-
| '''Language:''' || {{{language|}}}
| '''Language'''
| {{{language|Language Name}}}
|-
|-
| '''Genre:''' || {{{genre|}}}
| '''Genre'''
| {{{genre|Genre(s)}}}
|-
|-
| '''Publication Date:''' || {{{pub_date|}}}
| '''Publication Date'''
| {{{pub_date|Publication Date}}}
|-
|-
| '''Pages:''' || {{{pages|}}}
| '''Pages'''
| {{{pages|Number of Pages}}}
|-
|-
| '''Media Type:''' || {{{media_type|}}}
| '''Media Type'''
| {{{media_type|Media Format}}}
|}
|}
</includeonly>
<noinclude>
This template creates an infobox for books. To use it, copy the following example and customize it:
<pre>
{{Infobox Book
| name        = Book Title
| image      = Example.jpg
| caption    = Example Caption
| author      = Author Name
| country    = Country Name
| language    = Language Name
| genre      = Genre Name
| pub_date    = Publication Date
| pages      = Number of Pages
| media_type  = Media Type
}}
</pre>
</noinclude>