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|}}}[[Category:Old book field]]}} | + | {{BobRow|Publication date|{{{date|}}}{{#if:{{{date|}}}|[[Category:Old book field]]}}}} |
− | {{BobRow|Price|{{{price|}}}[[Category:Old book field]]}} | + | {{BobRow|Price|{{{price|}}}{{#if:{{{price|}}}|[[Category:Old book field]]}}}} |
− | {{BobRow|Country|{{{country|}}}[[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]] }}}} |