Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

m (fix)
m (Reverted edits by Locke Cole (talk) to last version by Netoholic)
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}}}'''''
-->{{qif|test={{{image|}}}|then=<tr><td colspan="2" style="text-align: center;">{{{image|}}}</td></tr>}}
+
|- class="hiddenStructure{{{image|}}}"
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
+
| colspan="2" style="text-align: center;" | {{{image|}}}
-->{{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>}}<!--
+
|- class{{{title_orig|}}}="hiddenStructure"
-->{{qif|test={{{language|}}}|then=<tr><th>Language</th><td>{{{language|}}}</td></tr>}}<!--
+
! Original title (if not in English)
-->{{qif|test={{{subject|}}}|then=<tr><th>Subject(s)</th><td>{{{subject|}}}</td></tr>}}<!--
+
| {{{title_orig}}}
-->{{qif|test={{{genre|}}}|then=<tr><th>Genre(s)</th><td>{{{genre|}}}</td></tr>}}
+
|- class{{{translator|}}}="hiddenStructure"
<tr><th>Publisher</th><td>{{{publisher}}}</td></tr>
+
! Translator
<tr><th>Released</th><td>{{{release_date}}}</td></tr><!--
+
| {{{translator}}}
-->{{qif|test={{{media_type|}}}|then=<tr><th>Media Type</th><td>{{{media_type|}}}</td></tr>}}<!--
+
|- class{{{cover_artist|}}}="hiddenStructure"
-->{{qif|test={{{pages|}}}|then=<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
+
! Cover Artist
-->{{qif|test={{{size_weight|}}}|then=<tr><th>Size and Weight</th><td>{{{size_weight|}}}</td></tr>}}<!--
+
| {{{cover_artist}}}
-->{{qif|test={{{isbn|}}}|then=<tr><th>ISBN</th><td>{{{isbn|}}}</td></tr>}}<!--
+
|- class{{{country|}}}="hiddenStructure"
-->{{qif|test={{{preceded_by|}}}|then=<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
+
! Country
-->{{qif|test={{{followed_by|}}}|then=<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
+
| {{{country}}}
</table><noinclude>
+
|- class{{{language|}}}="hiddenStructure"
 +
! Language
 +
| {{{language}}}
 +
|- class{{{series|}}}="hiddenStructure"
 +
! Series
 +
| {{{series}}}
 +
|- class{{{subject|}}}="hiddenStructure"
 +
! Subject(s)
 +
| {{{subject}}}
 +
|- class{{{genre|}}}="hiddenStructure"
 +
! Genre(s)
 +
| {{{genre}}}
 +
|-
 +
! Publisher
 +
| {{{publisher}}}
 +
|-
 +
! Released
 +
| {{{release_date}}}
 +
|- class{{{media_type|}}}="hiddenStructure"
 +
! Media Type
 +
| {{{media_type}}}
 +
|- class{{{pages|}}}="hiddenStructure"
 +
! Pages
 +
| {{{pages}}}
 +
|- class{{{size_weight|}}}="hiddenStructure"
 +
! Size and Weight
 +
| {{{size_weight}}}
 +
|- class{{{isbn|}}}="hiddenStructure"
 +
! ISBN
 +
| {{{isbn}}}
 +
|- class{{{preceded_by|}}}="hiddenStructure"
 +
! Preceded&nbsp;by
 +
| ''{{{preceded_by}}}''
 +
|- class{{{followed_by|}}}="hiddenStructure"
 +
! Followed&nbsp;by
 +
| ''{{{followed_by}}}''
 +
|}<noinclude>
  
 
==Usage==
 
==Usage==

Revision as of 15:18, 7 March 2006

{{{name}}}
Author {{{author}}}
Original title (if not in English) {{{title_orig}}}
Translator {{{translator}}}
Cover Artist {{{cover_artist}}}
Country {{{country}}}
Language {{{language}}}
Series {{{series}}}
Subject(s) {{{subject}}}
Genre(s) {{{genre}}}
Publisher {{{publisher}}}
Released {{{release_date}}}
Media Type {{{media_type}}}
Pages {{{pages}}}
Size and Weight {{{size_weight}}}
ISBN {{{isbn}}}
Preceded by {{{preceded_by}}}
Followed by {{{followed_by}}}

Usage

{{Infobox Book 
| name = 
| orig title = 
| translator = 
| image = 
| author = 
| cover_artist = 
| country = 
| language = 
| series = 
| subject = 
| genre = 
| publisher = 
| release_date = 
| media_type = 
| pages = 
| size_weight = 
| isbn = 
| 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.