Difference between revisions of "BookBob"
From Sonic Retro
(13 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
{{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|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|}}}{{#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|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|Type|{{{type|}}}}} | {{BobRow|Type|{{{type|}}}}} | ||
+ | {{BobRow|Page count|{{{pages|}}}}} | ||
+ | {{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-13|{{{isbn13|}}}|content=<span itemprop="isbn">{{{isbn13}}}</span>}} | ||
{{BobRow||{{{releases|}}}|content={{releasesHeader}} | {{BobRow||{{{releases|}}}|content={{releasesHeader}} | ||
{{{releases}}} | {{{releases}}} | ||
{{releasesEnd}}}} | {{releasesEnd}}}} | ||
− | + | {{BobRow||{{{next|}}}{{{previous|}}}|content={{#if: {{{previous|}}} | ← ''[[{{{previous}}}]]'' }} {{#if:{{{next|}}}|{{#if:{{{previous|}}}|{{!}}|}}|}} {{#if: {{{next|}}} | ''[[{{{next}}}]]'' → }}|align=center}} | |
− | {{BobRow| | + | }}<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> | ||
− | {{ | + | {{BookBob |
| cover= | | cover= | ||
| title= | | title= | ||
| publisher= | | publisher= | ||
− | |||
| author= | | author= | ||
| illustrator= | | illustrator= | ||
| series= | | series= | ||
− | |||
− | |||
| type= | | type= | ||
− | | | + | | pages= |
| isbn10= | | isbn10= | ||
| isbn13= | | isbn13= | ||
+ | | releases={{releases | ||
+ | |||
+ | }} | ||
+ | | previous= | ||
+ | | next= | ||
}} | }} | ||
</pre> | </pre> |