Actions

Template

Difference between revisions of "BookBob"

From Sonic Retro

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|}}}}}{{#ifeq:{{year|{{{date|}}}}}|9999|[[Category:Books missing date]]|[[Category:{{year|{{{date|}}}}} books]]}}
+
{{BobRow|Publication date|{{{date|}}}}}
 
{{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]] }}}}
Line 20: Line 20:
 
{{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>[[Category:Books]]</includeonly></div><noinclude>
+
}}{{#ifeq:{{year|{{{date|}}}}}|9999|[[Category:Books missing date]]|[[Category:{{year|{{{date}}}}} books]]}}<includeonly>[[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:

Revision as of 07:47, 18 March 2018

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.