Actions

Template

Difference between revisions of "BookBob"

From Sonic Retro

 
(7 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
{{BobRow||{{{cover|}}}{{{bookimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{cover|}}}{{{bookimage|}}}|320x280px]]}}
 
{{BobRow||{{{cover|}}}{{{bookimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{cover|}}}{{{bookimage|}}}|320x280px]]}}
 
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
 
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
 +
{{BobRow|Author|{{{author|}}}|content=<span itemprop="author">{{{author}}}</span>}}
 +
{{BobRow|Illustrator|{{{illustrator|}}}|content=<span itemprop="illustrator">{{{illustrator}}}</span>}}
 +
{{BobRow|Translator(s)|{{{translator|}}}|content=<span itemprop="translator">{{{translator}}}</span>}}
 
{{BobRow|Publisher|{{{publisher|}}}|content=<span itemprop="publisher">{{{publisher}}}</span>}}
 
{{BobRow|Publisher|{{{publisher|}}}|content=<span itemprop="publisher">{{{publisher}}}</span>}}
{{BobRow|Publication date|{{{date|}}}}}
+
{{BobRow|Licensor|{{{licensor|}}}|content=<span itemprop="licensor">{{{licensor}}}</span>}}
{{BobRow|Author|{{{author|}}}|content=<span itemprop="author">{{{author}}}</span>}}
+
{{BobRow|Label|{{{label|}}}|content=<span itemprop="label">{{{label}}}</span>}}
 +
{{BobRow|Publication date|{{{date|}}}{{#if:{{{date|}}}|[[Category:Old book field]]}}}}
 +
{{BobRow|Price|{{{price|}}}{{#if:{{{price|}}}|[[Category:Old book field]]}}}}
 +
{{BobRow|Country|{{{country|}}}{{#if:{{{country|}}}|[[Category:Old book field]]}}}}
 
{{BobRow||{{{book_genre|}}}|content='''Genre:''' {{{book_genre}}} {{#if: {{#pos:{{{book_genre}}}|Art book}} | [[Category:Art books]] }}{{#if: {{#pos:{{{book_genre}}}|Guide book}} | [[Category:Guide books]] }}{{#if: {{#pos:{{{book_genre}}}|Comic}} | [[Category:Comics]] }}{{#if: {{#pos:{{{book_genre}}}|Game book}} | [[Category:Game books]] }}{{#if: {{#pos:{{{book_genre}}}|Novel}} | [[Category:Novels]] }}{{#if: {{#pos:{{{book_genre}}}|Misc books}} | [[Category:Miscellaneous books]] }}}}
 
{{BobRow||{{{book_genre|}}}|content='''Genre:''' {{{book_genre}}} {{#if: {{#pos:{{{book_genre}}}|Art book}} | [[Category:Art books]] }}{{#if: {{#pos:{{{book_genre}}}|Guide book}} | [[Category:Guide books]] }}{{#if: {{#pos:{{{book_genre}}}|Comic}} | [[Category:Comics]] }}{{#if: {{#pos:{{{book_genre}}}|Game book}} | [[Category:Game books]] }}{{#if: {{#pos:{{{book_genre}}}|Novel}} | [[Category:Novels]] }}{{#if: {{#pos:{{{book_genre}}}|Misc books}} | [[Category:Miscellaneous books]] }}}}
{{BobRow|Illustrator|{{{illustrator|}}}|content=<span itemprop="illustrator">{{{illustrator}}}</span>}}
 
 
{{BobRow|Series|{{{series|}}}}}
 
{{BobRow|Series|{{{series|}}}}}
{{BobRow||{{{previous|}}}|content=<small>Previous: ''{{{previous}}}''</small>}}
 
{{BobRow||{{{next|}}}|content=<small>Next: ''{{{next}}}''</small>}}
 
 
{{BobRow|Type|{{{type|}}}}}
 
{{BobRow|Type|{{{type|}}}}}
 +
{{BobRow|Page count|{{{pages|}}}}}
 
{{BobRow|ISBN|{{{isbn|}}}|content=<span itemprop="isbn">{{{isbn}}}</span>[[Category:Old ISBN field]]}}
 
{{BobRow|ISBN|{{{isbn|}}}|content=<span itemprop="isbn">{{{isbn}}}</span>[[Category:Old ISBN field]]}}
 
{{BobRow|ISBN-10|{{{isbn10|}}}|content=<span itemprop="isbn">{{{isbn10}}}</span>}}
 
{{BobRow|ISBN-10|{{{isbn10|}}}|content=<span itemprop="isbn">{{{isbn10}}}</span>}}
 
{{BobRow|ISBN-13|{{{isbn13|}}}|content=<span itemprop="isbn">{{{isbn13}}}</span>}}
 
{{BobRow|ISBN-13|{{{isbn13|}}}|content=<span itemprop="isbn">{{{isbn13}}}</span>}}
}}<includeonly>{{#if:{{{book_genre|}}}||[[Category:Books missing genre]]}}{{#if:{{{date}}}||[[Category:Books missing date]]}}{{#ifeq:{{year|{{{date}}}}}|9999|[[Category:Books missing date]]|[[Category:{{year|{{{date}}}}} books]]}}[[Category:Books]]</includeonly></div><noinclude>
+
{{BobRow||{{{releases|}}}|content={{releasesHeader}}
 +
{{{releases}}}
 +
{{releasesEnd}}}}
 +
{{BobRow||{{{next|}}}{{{previous|}}}|content={{#if: {{{previous|}}} | ← ''[[{{{previous}}}]]'' }} {{#if:{{{next|}}}|{{#if:{{{previous|}}}|{{!}}|}}|}} {{#if: {{{next|}}} | ''[[{{{next}}}]]'' → }}|align=center}}
 +
}}<includeonly>{{#if:{{{book_genre|}}}||[[Category:Books missing genre]]}}{{#ifeq:{{year|{{{date}}}}}|9999|[[Category:Books missing date]]|[[Category:{{year|{{{date}}}}} books]]}}[[Category:Books]]</includeonly></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:
  
 
<pre>
 
<pre>
{{Book
+
{{BookBob
 
| cover=
 
| cover=
 
| title=
 
| title=
| publisher=
 
| date=
 
 
| author=
 
| author=
 
| illustrator=
 
| illustrator=
 +
| translator=
 +
| publisher=
 +
| label=
 
| series=
 
| series=
| previous=
 
| next=
 
 
| type=
 
| type=
| isbn=
+
| pages=
 
| isbn10=
 
| isbn10=
 
| isbn13=
 
| isbn13=
 +
| releases={{releases
 +
 +
}}
 +
| previous=
 +
| next=
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 13:36, 5 February 2023

Notavailable.svg
BookBob

Usage

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

{{BookBob
| cover=
| title=
| author=
| illustrator=
| translator=
| publisher=
| label=
| series=
| type=
| pages=
| isbn10=
| isbn13=
| releases={{releases

}}
| previous=
| next=
}}

All fields are optional.