Actions

Template

Difference between revisions of "BookBob"

From Sonic Retro

Line 1: Line 1:
 
<div itemscope itemtype='http://schema.org/Book'>
 
<div itemscope itemtype='http://schema.org/Book'>
 
<meta itemprop="name" content="{{PAGENAME}}">
 
<meta itemprop="name" content="{{PAGENAME}}">
{|cellpadding="0" cellspacing="0" class="breakout" style="max-width: 300px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
+
{{BobTable|
|style="text-align: center;"|
+
{{BobRow||{{{cover|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{cover}}}|320x280px]]}}
[[Image:{{ #if: {{{cover|}}} | {{{cover}}} | Notavailable.svg }}|200px]]
+
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
|-
+
{{BobRow|Publisher|{{{publisher|}}}|content=<span itemprop="publisher">{{{publisher}}}</span>}}
! '''Fast facts on ''{{ #if: {{{title|}}} | <span itemprop="name">{{{title}}}</span> | <span itemprop="name">{{PAGENAME}}</span> }}'''''
+
{{BobRow|Publication date|{{{date|}}}}}
|-
+
{{BobRow|Author|{{{author|}}}|content=<span itemprop="author">{{{author}}}</span>}}
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;"|
+
{{BobRow|Illustrator|{{{illustrator|}}}|content=<span itemprop="illustrator">{{{illustrator}}}</span>}}
{{ #if: {{{publisher|}}} | '''Publisher:''' <span itemprop="publisher">{{{publisher}}}</span><br> | }}{{
+
{{BobRow|Series|{{{series|}}}}}
#if: {{{date|}}} | '''Publication Date:''' {{{date}}}<br> | }}{{
+
{{BobRow||{{{previous|}}}|content=<small>Previous: ''{{{previous}}}''</small>}}
#if: {{{author|}}} | '''Author:''' <span itemprop="author">{{{author}}}</span><br> | }}{{
+
{{BobRow||{{{next|}}}|content=<small>Next: ''{{{next}}}''</small>}}
#if: {{{illustrator|}}} | '''Illustrator:''' <span itemprop="illustrator">{{{illustrator}}}</span><br> | }}{{
+
{{BobRow|Type|{{{type|}}}}}
#if: {{{series|}}} | '''Series:''' {{{series}}}<br> | }}{{
+
{{BobRow|ISBN|{{{isbn|}}}|content=<span itemprop="isbn">{{{isbn}}}</span>}}
#if: {{{previous|}}} | <small>'''Previous in series:''' ''{{{previous}}}''</small><br> | }}{{
+
{{BobRow|ISBN-10|{{{isbn10|}}}|content=<span itemprop="isbn">{{{isbn10}}}</span>}}
#if: {{{next|}}} | <small>'''Next in series:''' ''{{{next}}}''</small><br> | }}{{
+
{{BobRow|ISBN-13|{{{isbn13|}}}|content=<span itemprop="isbn">{{{isbn13}}}</span>}}
#if: {{{type|}}} | '''Type:''' {{{type}}}<br> | }}{{
+
}}</div><noinclude>
#if: {{{isbn|}}} | '''ISBN:''' <span itemprop="isbn">{{{isbn}}}</span><br> | }}{{
 
#if: {{{isbn10|}}} | '''ISBN-10:''' <span itemprop="isbn">{{{isbn10}}}</span><br> | }}{{
 
#if: {{{isbn13|}}} | '''ISBN-13:''' <span itemprop="isbn">{{{isbn13}}}</span> | }}
 
|}</div><noinclude>
 
 
==Usage==
 
==Usage==
 
This template is to be used articles about books. Place the following at the top of the page:
 
This template is to be used articles about books. Place the following at the top of the page:
Line 42: Line 38:
 
All fields are optional.
 
All fields are optional.
  
[[Category:Breakout box templates|Book]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Revision as of 20:53, 2 September 2015

Notavailable.svg
BookBob

Usage

This template is to be used articles about books. Place the following at the top of the page:

{{Book
| cover=
| title=
| publisher=
| date=
| author=
| illustrator=
| series=
| previous=
| next=
| type=
| isbn=
| isbn10=
| isbn13=
}}

All fields are optional.