Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(several of the optional fields are unnecessary (referring to specific printed volume, rather than the -title-), added caption parameter)
Line 1: Line 1:
<table class="infobox" style="width: 20em; font-size: 90%; text-align: left;">
+
{| class="infobox" style="width: 20em; font-size: 90%; text-align: left;"
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
+
|+ style="font-size: larger;" | '''''{{{name}}}<br>{{{title_orig|}}}'''''
-->{{qif|test={{{image|}}}|then=<tr><td colspan="2" style="text-align: center;">{{{image|}}}</td></tr>}}
+
|-
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
+
| colspan="2" style="text-align: center;" | {{{image|}}}<br>{{{caption|}}}
-->{{qif|test={{{title_orig|}}}|then=<tr><th>Original title (if not in English)</th><td>{{{title_orig|}}}</td></tr>}}<!--
+
|-  
-->{{qif|test={{{translator|}}}|then=<tr><th>Translator</th><td>{{{translator|}}}</td></tr>}}<!--
+
! Author
-->{{qif|test={{{cover_artist|}}}|then=<tr><th>Cover Artist</th><td>{{{cover_artist|}}}</td></tr>}}<!--
+
| {{{author}}}
-->{{qif|test={{{country|}}}|then=<tr><th>Country</th><td>{{{country|}}}</td></tr>}}<!--
+
|-
-->{{qif|test={{{language|}}}|then=<tr><th>Language</th><td>{{{language|}}}</td></tr>}}<!--
+
! ISBN
-->{{qif|test={{{series|}}}|then=<tr><th>Series</th><td>{{{series}}}</td></tr>}}<!--
+
| {{{isbn|}}}
-->{{qif|test={{{subject|}}}|then=<tr><th>Subject(s)</th><td>{{{subject|}}}</td></tr>}}<!--
+
|-
-->{{qif|test={{{genre|}}}|then=<tr><th>Genre(s)</th><td>{{{genre|}}}</td></tr>}}
+
! Country
<tr><th>Publisher</th><td>{{{publisher}}}</td></tr>
+
| {{{country}}}
<tr><th>Released</th><td>{{{release_date}}}</td></tr><!--
+
|-
-->{{qif|test={{{media_type|}}}|then=<tr><th>Media Type</th><td>{{{media_type|}}}</td></tr>}}<!--
+
! style="white-space: nowrap;" | Language(s)
-->{{qif|test={{{pages|}}}|then=<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
+
| {{{language|}}}
-->{{qif|test={{{size_weight|}}}|then=<tr><th>Size and Weight</th><td>{{{size_weight|}}}</td></tr>}}<!--
+
|-
-->{{qif|test={{{isbn|}}}|then=<tr><th>ISBN</th><td>{{{isbn|}}}</td></tr>}}<!--
+
! style="white-space: nowrap;" | [[Literary genre|Genre(s)]]
-->{{qif|test={{{preceded_by|}}}|then=<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
+
| {{{genre}}}
-->{{qif|test={{{followed_by|}}}|then=<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
+
|- class{{{subject|}}}="hiddenStructure"
</table><noinclude>
+
! style="white-space: nowrap;" | Subject(s)
 +
| {{{subject|}}}
 +
|- class{{{series|}}}="hiddenStructure"
 +
! Series
 +
| {{{series|stand-alone}}}
 +
|- class{{{preceded_by|}}}="hiddenStructure"
 +
! style="white-space: nowrap;" | Preceded by
 +
| ''{{{preceded_by|none}}}''
 +
|- class{{{followed_by|}}}="hiddenStructure"
 +
! style="white-space: nowrap;" | Followed by
 +
| ''{{{followed_by|none}}}''
 +
|}<noinclude>
  
 
==Usage==
 
==Usage==
Line 26: Line 37:
 
| name =  
 
| name =  
 
| orig title =  
 
| orig title =  
| translator =
 
 
| image =  
 
| image =  
 +
| caption =
 
| author =  
 
| author =  
| cover_artist =
 
 
| country =  
 
| country =  
 
| language =  
 
| language =  
| series =
 
| subject =
 
 
| genre =  
 
| genre =  
 +
| subject =
 +
| series =
 
| publisher =  
 
| publisher =  
| release_date =
 
| media_type =
 
| pages =
 
| size_weight =
 
| isbn =
 
 
| preceded_by =  
 
| preceded_by =  
 
| followed_by =  
 
| followed_by =  
Line 46: Line 51:
 
</pre>
 
</pre>
  
Please do not make major changes to the infobox, such as the addition of new fields (e.g. MPAA ratings), without proposing and discussing it on the talk page first. If you make any changes, please make sure that all pages relying on this template ([[Special:Whatlinkshere/Template:Infobox_Book]]) still work.
+
Please do not make major changes to the infobox, such as the addition of new fields (e.g. MPAA ratings), without proposing and discussing it on the talk page first. If you make any changes, please make sure that all pages relying on this template ([[Special:Whatlinkshere/Template:Infobox Book]]) still work.
  
 
[[Category:Infobox templates|Book]]
 
[[Category:Infobox templates|Book]]

Revision as of 15:20, 14 March 2006

{{{name}}}

Author {{{author}}}
ISBN
Country {{{country}}}
Language(s)
Genre(s) {{{genre}}}
Subject(s)
Series stand-alone
Preceded by none
Followed by none

Usage

{{Infobox Book 
| name = 
| orig title = 
| image = 
| caption = 
| author = 
| country = 
| language = 
| genre = 
| subject = 
| series = 
| publisher = 
| preceded_by = 
| followed_by = 
}}

Please do not make major changes to the infobox, such as the addition of new fields (e.g. MPAA ratings), without proposing and discussing it on the talk page first. If you make any changes, please make sure that all pages relying on this template (Special:Whatlinkshere/Template:Infobox Book) still work.