Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(Removed (if not in English) from Original title.)
(rv)
Line 1: Line 1:
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%" cellspacing="2"
+
<table class="infobox" style="width: 20em; font-size: 90%; text-align: left;">
|-
+
<caption style="font-size: larger;">'''''{{{name}}}'''''</caption><!--
|+ style="font-size: larger;" align="center" colspan="2" | '''''{{{name}}}'''''
+
-->{{qif|test={{{image|}}}|then=<tr><td colspan="2" style="text-align: center;">{{{image|}}}</td></tr>}}
|-  
+
<tr><th>Author</th><td>{{{author}}}</td></tr><!--
{{qif | test={{{image|}}} | then=
+
-->{{qif|test={{{title_orig|}}}|then=<tr><th>Original title (if not in English)</th><td>{{{title_orig|}}}</td></tr>}}<!--
{{!}} style="font-size: 100%;" align="center" colspan="2" {{!}} {{{image}}}}}
+
-->{{qif|test={{{translator|}}}|then=<tr><th>Translator</th><td>{{{translator|}}}</td></tr>}}<!--
|-
+
-->{{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>}}<!--
| {{{author}}}
+
-->{{qif|test={{{language|}}}|then=<tr><th>Language</th><td>{{{language|}}}</td></tr>}}<!--
|-  
+
-->{{qif|test={{{series|}}}|then=<tr><th>Series</th><td>{{{series}}}</td></tr>}}<!--
{{qif | test={{{title_orig|}}} | then=
+
-->{{qif|test={{{subject|}}}|then=<tr><th>Subject(s)</th><td>{{{subject|}}}</td></tr>}}<!--
! Original title
+
-->{{qif|test={{{genre|}}}|then=<tr><th>Genre(s)</th><td>{{{genre|}}}</td></tr>}}
{{!}} {{{title_orig}}}}}
+
<tr><th>Publisher</th><td>{{{publisher}}}</td></tr>
|-  
+
<tr><th>Released</th><td>{{{release_date}}}</td></tr><!--
{{qif | test={{{translator|}}} | then=
+
-->{{qif|test={{{media_type|}}}|then=<tr><th>Media Type</th><td>{{{media_type|}}}</td></tr>}}<!--
! Translator
+
-->{{qif|test={{{pages|}}}|then=<tr><th>Pages</th><td>{{{pages|}}}</td></tr>}}<!--
{{!}} {{{translator}}}}}
+
-->{{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>}}<!--
{{qif | test={{{cover_artist|}}} | then=
+
-->{{qif|test={{{preceded_by|}}}|then=<tr><th>Preceded&nbsp;by</th><td>''{{{preceded_by|}}}''</td></tr>}}<!--
! Cover artist
+
-->{{qif|test={{{followed_by|}}}|then=<tr><th>Followed&nbsp;by</th><td>''{{{followed_by|}}}''</td></tr>}}
{{!}} {{{cover_artist}}}}}
+
</table><noinclude>
|-  
+
 
{{qif | test={{{country|}}} | then=
+
! Country
+
{{!}} {{{country}}}}}
+
|-  
+
{{qif | test={{{language|}}} | then=
+
! Language
+
{{!}} {{{language}}}}}
+
|-  
+
{{qif | test={{{series|}}} | then=
+
! Series
+
{{!}} {{{series}}}}}
+
|-  
+
{{qif | test={{{subject|}}} | then=
+
! Subject(s)
+
{{!}} {{{subject}}}}}
+
|-  
+
{{qif | test={{{genre|}}} | then=
+
! Genre(s)
+
{{!}} {{{genre}}}}}
+
|-
+
! Publisher
+
| {{{publisher}}}
+
|-
+
! Released
+
| {{{release_date}}}
+
|-  
+
{{qif | test={{{media_type|}}} | then=
+
! Media Type
+
{{!}} {{{media_type}}}}}
+
|-  
+
{{qif | test={{{pages|}}} | then=
+
! Pages
+
{{!}} {{{pages}}}}}
+
|-  
+
{{qif | test={{{size_weight|}}} | then=
+
! Size and Weight
+
{{!}} {{{size_weight}}}}}
+
|-  
+
{{qif | test={{{isbn|}}} | then=
+
! ISBN
+
{{!}} {{{isbn}}}}}
+
|-  
+
{{qif | test={{{preceded_by|}}} | then=
+
! Preceded&nbsp;by
+
{{!}} {{{preceded_by}}}}}
+
|-  
+
{{qif | test={{{followed_by|}}} | then=
+
! Followed&nbsp;by
+
{{!}} {{{followed_by}}}}}
+
|}<noinclude>
+
 
==Usage==
 
==Usage==
{| style="background: transparent;"
+
<pre>
|<pre>{{Infobox Book  
+
{{Infobox Book  
 
| name =  
 
| name =  
 +
| orig title =
 +
| translator =
 
| image =  
 
| image =  
 
| author =  
 
| author =  
| title_orig = (if not in English)
 
| translator = 
 
 
| cover_artist =  
 
| cover_artist =  
 
| country =  
 
| country =  
Line 93: Line 43:
 
| preceded_by =  
 
| preceded_by =  
 
| followed_by =  
 
| followed_by =  
}}</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]]
 
[[Category:Book templates|{{PAGENAME}}]]
 
[[Category:Book templates|{{PAGENAME}}]]
[[Category:WikiProject Books|Infobox Book]]
 
[[Category:WikiProject Novels|Infobox Book]]
 
 
</noinclude>
 
</noinclude>
 +
<noinclude>[[Category:WikiProject Books|Infobox_Book]][[Category:WikiProject Novels|Infobox_Book]]</noinclude>

Revision as of 18:17, 7 April 2006

Template:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:Qif
{{{name}}}
Author{{{author}}}
Publisher{{{publisher}}}
Released{{{release_date}}}

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.