Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(rv until code is fixed)
(rewrote code, see talk)
Line 1: Line 1:
{| class="infobox" style="width:20em; text-align:left"
+
{| class="infobox" style="width:20em; font-size:90%; text-align:left;"
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
+
! colspan="2" style="text-align:center; font-size:140%;" | '''''{{{name}}}'''''
-->{{#if: {{{image|}}} |<tr><td colspan=2 style="text-align: center">{{{image}}}
+
|-
{{#if: {{{image_caption|}}} | <br> {{{image_caption}}} }}</td></tr>}}
+
{{#if:{{{image|}}}|
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
+
{{!}} colspan="2" style="text-align:center;" {{!}} {{{image}}}{{#if:{{{image_caption|}}}|<br/>{{{image_caption}}}}}
-->{{#if:{{{title_orig|}}}|<tr><th>Original title</th><td>{{{title_orig}}}</td></tr>}}<!--
+
{{!}}-
-->{{#if:{{{translator|}}}|<tr><th>Translator</th><td>{{{translator|}}}</td></tr>}}<!--
+
}}
-->{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td>{{{illustrator|}}}</td></tr>}}<!--
+
| colspan="2" | <hr/>
-->{{#if:{{{cover_artist|}}}|<tr><th>Cover&nbsp;artist</th><td>{{{cover_artist|}}}</td></tr>}}<!--
+
|-
-->{{#if:{{{country|}}}|<tr><th>[[Country]]</th><td>{{{country|}}}</td></tr>}}<!--
+
! Author
-->{{#if:{{{language|}}}|<tr><th>[[Language]]</th><td>{{{language|}}}</td></tr>}}<!--
+
| {{{author}}}
-->{{#if:{{{series|}}}|<tr><th>Series</th><td>{{{series}}}</td></tr>}}<!--
+
|-
-->{{#if:{{{subject|}}}|<tr><th>{{nowrap|Subject(s)}}</th><td>{{{subject|}}}</td></tr>}}<!--
+
{{#if:{{{title_orig|}}}|
-->{{#if:{{{genre|}}}|<tr><th>{{nowrap|Genre(s)}}</th><td>{{{genre|}}}</td></tr>}}
+
! Original title
<tr><th>[[Publisher]]</th><td>{{{publisher}}}</td></tr>
+
{{!}} {{{title_orig}}}
<tr><th>Publication date</th><td>{{{pub_date|{{{release_date|}}}}}}</td></tr><!--
+
{{!}}-
-->{{#if:{{{english_release_date|}}}{{{english_pub_date|}}}|<tr><th>Published in English</th><td>{{{english_pub_date|{{{english_release_date}}}}}}</td></tr>}}<!--
+
}}
-->{{#if:{{{media_type|}}}|<tr><th>Media&nbsp;type</th><td>{{{media_type|}}}</td></tr>}}<!--
+
{{#if:{{{translator|}}}|
-->{{#if:{{{pages|}}}|<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
+
! Translator
-->{{#if:{{{size_weight|}}}|<tr><th>Size&nbsp;and&nbsp;weight</th><td>{{{size_weight|}}}</td></tr>}}<!--
+
{{!}} {{{translator|}}}
-->{{#if:{{{isbn|}}}|<tr><th>[[International Standard Book Number|ISBN]]</th><td>{{{isbn|}}}</td></tr>}}<!--
+
{{!}}-
-->{{#if:{{{oclc|}}}|<tr><th>[[OCLC]]</th><td>[http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]</td></tr>}}<!--
+
}}
-->{{#if:{{{preceded_by|}}}|<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
+
{{#if:{{{illustrator|}}}|
-->{{#if:{{{followed_by|}}}|<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
+
! Illustrator
 +
{{!}} {{{illustrator|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{cover_artist|}}}|
 +
! Cover&nbsp;artist
 +
{{!}} {{{cover_artist|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{country|}}}|
 +
! [[Country]]
 +
{{!}} {{{country|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{language|}}}|
 +
! [[Language]]
 +
{{!}} {{{language|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{series|}}}|
 +
! Series
 +
{{!}} {{{series}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{subject|}}}|
 +
! {{nowrap|Subject(s)}}
 +
{{!}} {{{subject|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{genre|}}}|
 +
! {{nowrap|Genre(s)}}
 +
{{!}} {{{genre|}}}
 +
{{!}}-
 +
}}
 +
! [[Publisher]]
 +
| {{{publisher}}}
 +
|-
 +
! Publication date
 +
| {{{pub_date|{{{release_date|}}}}}}
 +
|-
 +
{{#if:{{{english_release_date|}}}{{{english_pub_date|}}}|
 +
! Published in English
 +
{{!}} {{{english_pub_date|{{{english_release_date}}}}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{media_type|}}}|
 +
! Media&nbsp;type
 +
{{!}} {{{media_type|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{pages|}}}|
 +
! Pages
 +
{{!}} {{{pages|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{size_weight|}}}|
 +
! Size&nbsp;and&nbsp;weight
 +
{{!}} {{{size_weight|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{isbn|}}}|
 +
! [[International Standard Book Number|ISBN]]
 +
{{!}} {{{isbn|}}}
 +
{{!}}-
 +
}}
 +
{{#if:{{{oclc|}}}|
 +
! [[OCLC]]
 +
{{!}} [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
 +
{{!}}-
 +
}}
 +
{{#if:{{{preceded_by|}}}|
 +
! Preceded&nbsp;by
 +
{{!}} ''{{{preceded_by|}}}''
 +
{{!}}-
 +
}}
 +
{{#if:{{{followed_by|}}}|
 +
! Followed&nbsp;by
 +
{{!}} ''{{{followed_by|}}}''
 +
{{!}}-
 +
}}
 
|}<noinclude>
 
|}<noinclude>
 +
{{pp-template|small=yes}}
 
{{/doc}}</noinclude>
 
{{/doc}}</noinclude>

Revision as of 01:04, 19 August 2007

{{{name}}}

Author {{{author}}}
Publisher {{{publisher}}}
Publication date
Template:/doc