Typecraft v2.5
Jump to: navigation, search

Difference between revisions of "Template:Infobox book"

(removed "if not in English" as experiment)
(to display caption just with image, you don't need to test image twice; parameter whose existence we've checked will NEVER use default; comments-hiding linebreaks in HTML table quite pointless)
Line 1: Line 1:
 
<table class="infobox" style="width: 20em; text-align: left">
 
<table class="infobox" style="width: 20em; 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}}}
-->{{#if:{{{image|}}}|{{#if:{{{image_caption|}}}
+
{{#if: {{{image_caption|}}} | <br> {{{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</th><td>{{{title_orig}}}</td></tr>}}<!--
 
-->{{#if:{{{title_orig|}}}|<tr><th>Original title</th><td>{{{title_orig}}}</td></tr>}}<!--
Line 27: Line 26:
 
==Usage==
 
==Usage==
  
<pre style="width:20em">
+
<pre style="width:35em">
 
{{Infobox Book  
 
{{Infobox Book  
 
| name          =  
 
| name          =  
| title_orig    =  
+
| title_orig    = (use if not originally in English)
 
| translator    =  
 
| translator    =  
 
| image        =  
 
| image        =  
Line 52: Line 51:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
See the talk page for more thorough documentation.
  
 
{{esoteric}}
 
{{esoteric}}
Line 59: Line 60:
 
[[Category:publishing infobox templates|Book]]
 
[[Category:publishing infobox templates|Book]]
 
[[Category:Book templates|Infobox Book]]
 
[[Category:Book templates|Infobox Book]]
[[Category:WikiProject Books|!Infobox_Book]]
+
[[Category:WikiProject Books|!Infobox Book]]
[[Category:WikiProject Novels|!Infobox_Book]]
+
[[Category:WikiProject Novels|!Infobox Book]]
[[Category:WikiProject Fictional series|!Infobox_Book]]
+
[[Category:WikiProject Fictional series|!Infobox Book]]
 
[[Category:Templates using ParserFunctions|Infobox Book]]
 
[[Category:Templates using ParserFunctions|Infobox Book]]
 
[[Category:Infobox templates|Book]]
 
[[Category:Infobox templates|Book]]

Revision as of 11:08, 7 March 2007

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

Usage

{{Infobox Book 
| name          = 
| title_orig    = (use if not originally in English)
| 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   = 
}}

See the talk page for more thorough documentation.

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 de:Vorlage:Infobox Buch es:Plantilla:Infobox Libro fr:Modèle:Fiche livre hr:Predložak:Infobox knjiga nl:Sjabloon:Boek pt:Info livro ru:Шаблон:Издание zh:Template:Infobox Book