Actions

Template

Difference between revisions of "Infobox Book"

From

 
(15 intermediate revisions by one other user not shown)
Line 1: Line 1:
<table class="infobox" align="right" style="width: 20em; font-size: 90%; text-align: left; border: 1px black solid;"><!--
+
<includeonly>[[Category:Books]]<table class="infobox" align="right" style="width: 20em; font-size: 90%; text-align: left; border: 1px black solid;"><!--
-->{{#arraymap: name, country, title, link, image, image caption, title_orig, pages, size-weight, language, preceded_by, followed_by, release date, series|,|X|X={{#set:X::{{{X}}}}}|}}<!--
+
-->{{#if:{{{Title|}}}|{{#set:name={{{Title}}}}}}}<!--
-->{{#arraymap: author, translator, illustrator, cover artist, isbn, media type, subject, genre, publisher |,|X|<!--
+
-->{{#if:{{{Link|}}}|{{#set:Link={{{Link}}}/summary}}}}<!--
-->{{#arraymap:{{{x}}}|,|Q|X=Q...{{#set:X::{{{Q}}}}}|}}<!--
+
--><caption style="font-size: larger;font-style:italic;font-weight:bold"><!--
-->|}}<!--
+
-->{{#if:{{{Link|}}}<!--
--><caption style="font-size: larger;">'''''<!--
+
then-->|[{{{Link}}}/summary {{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}]<!--
-->{{#if:{{{link|}}}<!--
+
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}<!--
then-->|[[ {{{link}}} {{#if:{{{name|}}}|{{{name}}}|{{{title|}}}}} ]]<!--
+
-->}}</caption><!--
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{title|}}}}}<!--
+
-->}}'''''</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|}}}|<tr><td colspan="2" style="text-align: center;">{{{image_caption|}}}</td></tr>}}}}
 
-->{{#if:{{{image|}}}|{{#if:{{{image_caption|}}}|<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|}}}{{{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>}}<!--
Line 29: Line 27:
 
-->{{#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>{{DiscussionWidget}}</includeonly><noinclude>
  
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{Infobox Book  
 
{{Infobox Book  
 +
| Title        = old param
 +
| Link          = old param
 +
| Author        = old param
 
| name          =  
 
| name          =  
| title        = formal name
 
 
| title_orig    =  
 
| title_orig    =  
 
| translator    =  
 
| translator    =  

Latest revision as of 14:07, 22 February 2016


Usage

{{Infobox Book 
| Title         = old param
| Link          = old param
| Author        = old param
| name          = 
| title_orig    = 
| translator    = 
| image         = http://books.google.com/books?id=auZXJuwLw8QC&printsec=frontcover&dq=the+glass+castle&source=gbs_summary_r&cad=0
| image_caption = the book
| author        = Jeannette Walls
| illustrator   = 
| cover_artist  = 
| country       = 
| language      = 
| series        = 
| subject       = 
| genre         = 
| publisher     = 
| release_date  = 
| media_type    = 
| pages         = 
| isbn          = 
| preceded_by   = 
| followed_by   = 
}}


Please do not make major changes to the infobox without proposing and discussing it on the talk page first.