Actions

Template

Difference between revisions of "BookBob"

From Sonic Retro

(added price and page count fields)
Line 6: Line 6:
 
{{BobRow|Publisher|{{{publisher|}}}|content=<span itemprop="publisher">{{{publisher}}}</span>}}
 
{{BobRow|Publisher|{{{publisher|}}}|content=<span itemprop="publisher">{{{publisher}}}</span>}}
 
{{BobRow|Publication date|{{{date|}}}}}
 
{{BobRow|Publication date|{{{date|}}}}}
 +
{{BobRow|Price|{{{price|}}}}}
 
{{BobRow|Author|{{{author|}}}|content=<span itemprop="author">{{{author}}}</span>}}
 
{{BobRow|Author|{{{author|}}}|content=<span itemprop="author">{{{author}}}</span>}}
 
{{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|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>}}
 +
{{BobRow||{{{next|}}}{{{previous|}}}|content={{#if: {{{previous|}}} | ← [[{{{previous}}}]] }} {{#if:{{{next|}}}|{{#if:{{{previous|}}}|{{!}}|}}|}} {{#if: {{{next|}}} | [[{{{next}}}]] → }}|align=center}}
 
}}<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>
 
}}<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>
 
==Usage==
 
==Usage==
Line 26: Line 27:
 
| publisher=
 
| publisher=
 
| date=
 
| date=
 +
| price=
 
| author=
 
| author=
 
| illustrator=
 
| illustrator=
 
| series=
 
| series=
| previous=
 
| next=
 
 
| type=
 
| type=
 +
| pages=
 
| isbn10=
 
| isbn10=
 
| isbn13=
 
| isbn13=
 +
| previous=
 +
| next=
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 15:49, 25 September 2019

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=
| publisher=
| date=
| price=
| author=
| illustrator=
| series=
| type=
| pages=
| isbn10=
| isbn13=
| previous=
| next=
}}

All fields are optional.