Jump to content

Template:Infobox Book: Difference between revisions

From Impact Evaluation Foundation
styling
n
Line 1: Line 1:
<includeonly>
{| class="infobox" style="width: 250px; background-color: #F9F9F9; border: 1px solid #aaa; font-size: 90%;"
{| 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="background-color: #CCCCCC; 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>

Revision as of 09:26, 26 December 2024

Book Title
Book Cover
Caption Description of the book cover
Author Author Name
Country Country Name
Language Language Name
Genre Genre(s)
Publication Date Publication Date
Pages Number of Pages
Media Type Media Format