Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(made publisher and release date_optional, refomatted template sourcecode a bit)
(where was the discussion of the change to Publisher and Release date)
Line 1: Line 1:
 
<table class="infobox" style="width: 20em; font-size: 90%; text-align: left;">
 
<table class="infobox" style="width: 20em; font-size: 90%; text-align: left;">
 
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
 
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
-->{{#if: {{{image|}}} | <tr><td colspan="2" style="text-align: center;">{{{image}}}</td></tr>}}<!--
+
-->{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;">{{{image|}}}</td></tr>}}<!--
-->{{#if: {{{image|}}} | {{#if:{{{image_caption|}}}
+
-->{{#if:{{{image|}}}|{{#if:{{{image_caption|}}}
    | <tr><td colspan="2" style="text-align: center;">{{{image_caption}}}</td></tr> }} }}
+
|<tr><td colspan="2" style="text-align: center;">{{{image_caption|}}}</td></tr>}}}}
 
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
 
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
-->{{#if: {{{title_orig|}}} | <tr><th>Original title (if not in English)</th><td>{{{title_orig}}}</td></tr>}}<!--
+
-->{{#if:{{{title_orig|}}}|<tr><th>Original title (if not in English)</th><td>{{{title_orig|}}}</td></tr>}}<!--
-->{{#if: {{{translator|}}} | <tr><th>Translator</th> <td>{{{translator}}}</td> </tr>}}<!--
+
-->{{#if:{{{translator|}}}|<tr><th>Translator</th><td>{{{translator|}}}</td></tr>}}<!--
-->{{#if: {{{illustrator|}}} | <tr><th>Illustrator</th> <td>{{{illustrator}}}</td> </tr>}}<!--
+
-->{{#if:{{{illustrator|}}}|<tr><th>Illustrator</th><td>{{{illustrator|}}}</td></tr>}}<!--
-->{{#if: {{{cover_artist|}}}| <tr><th>Cover Artist</th><td>{{{cover_artist}}}</td></tr>}}<!--
+
-->{{#if:{{{cover_artist|}}}|<tr><th>Cover Artist</th><td>{{{cover_artist|}}}</td></tr>}}<!--
-->{{#if: {{{country|}}}     | <tr><th>Country</th>     <td>{{{country}}}</td>     </tr>}}<!--
+
-->{{#if:{{{country|}}}|<tr><th>Country</th><td>{{{country|}}}</td></tr>}}<!--
-->{{#if: {{{language|}}}   | <tr><th>Language</th>   <td>{{{language}}}</td>   </tr>}}<!--
+
-->{{#if:{{{language|}}}|<tr><th>Language</th><td>{{{language|}}}</td></tr>}}<!--
-->{{#if: {{{series|}}}     | <tr><th>Series</th>     <td>{{{series}}}</td>     </tr>}}<!--
+
-->{{#if:{{{series|}}}|<tr><th>Series</th><td>{{{series}}}</td></tr>}}<!--
-->{{#if: {{{subject|}}}     | <tr><th>Subject(s)</th> <td>{{{subject}}}</td>     </tr>}}<!--
+
-->{{#if:{{{subject|}}}|<tr><th>Subject(s)</th><td>{{{subject|}}}</td></tr>}}<!--
-->{{#if: {{{genre|}}}       | <tr><th>Genre(s)</th>   <td>{{{genre}}}</td>       </tr>}}<!--
+
-->{{#if:{{{genre|}}}|<tr><th>Genre(s)</th><td>{{{genre|}}}</td></tr>}}
-->{{#if: {{{publisher|}}}  | <tr><th>Publisher</th>   <td>{{{publisher}}}</td>   </tr>}}<!--
+
<tr><th>Publisher</th><td>{{{publisher}}}</td></tr>
-->{{#if: {{{release_date|}}}| <tr><th>Released</th>   <td>{{{release_date}}}</td></tr>}}<!--
+
<tr><th>Released</th><td>{{{release_date}}}</td></tr><!--
-->{{#if: {{{english_release_date|}}} | <tr><th>Released in English</th><td>{{{english_release_date}}}</td></tr>}}<!--
+
-->{{#if:{{{english_release_date|}}}|<tr><th>Released in English</th><td>{{{english_release_date}}}</td></tr>}}<!--
-->{{#if: {{{media_type|}}} | <tr><th>Media Type</th> <td>{{{media_type}}}</td> </tr>}}<!--
+
-->{{#if:{{{media_type|}}}|<tr><th>Media Type</th><td>{{{media_type|}}}</td></tr>}}<!--
-->{{#if: {{{pages|}}}       | <tr><th>Pages</th>       <td>{{{pages}}}</td>       </tr>}}<!--
+
-->{{#if:{{{pages|}}}|<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
-->{{#if: {{{size_weight|}}} | <tr><th>Size and Weight</th><td>{{{size_weight}}}</td></tr>}}<!--
+
-->{{#if:{{{size_weight|}}}|<tr><th>Size and Weight</th><td>{{{size_weight|}}}</td></tr>}}<!--
-->{{#if: {{{isbn|}}}       | <tr><th>ISBN</th>       <td>{{{isbn}}}</td>       </tr>}}<!--
+
-->{{#if:{{{isbn|}}}|<tr><th>ISBN</th><td>{{{isbn|}}}</td></tr>}}<!--
-->{{#if: {{{preceded_by|}}} | <tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by}}}''</td></tr>}}<!--
+
-->{{#if:{{{preceded_by|}}}|<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
-->{{#if: {{{followed_by|}}} | <tr><th>Followed&nbsp;by</th><td>''{{{followed_by}}}''</td></tr>}}
+
-->{{#if:{{{followed_by|}}}|<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
 
</table><noinclude>
 
</table><noinclude>
  

Revision as of 10:12, 6 November 2006

{{{name}}}
Author{{{author}}}
Publisher{{{publisher}}}
Released{{{release_date}}}

Usage

{{Infobox Book 
| name          = 
| title_orig    = 
| translator    = 
| image         = 
| image_caption = 
| author        = 
| illustrator   = 
| cover_artist  = 
| country       = 
| language      = 
| series        = 
| subject       = 
| genre         = 
| publisher     = 
| release_date  = 
| english_release_date =
| media_type    = 
| pages         = 
| isbn          = 
| preceded_by   = 
| followed_by   = 
}}

Template:Esoteric

Please do not make major changes to the infobox without proposing and discussing it on the talk page first.bs:Šablon:Infokutija knjiga fr:Modèle:Fiche livre pt:Info livro