Actions

Template

Difference between revisions of "Infobox Book"

From

Line 1: Line 1:
 
[[Category:Books]]<table class="infobox" align="right" style="width: 20em; font-size: 90%; text-align: left; border: 1px black solid;"><!--
 
[[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|<!--
+
-->{{#if:{{{Title|}}}|{{#set:name={{{Title}}}}}<!--
 +
-->{{#arraymap: name, country, Link, image, image caption, title_orig, pages, size-weight, language, preceded_by, followed_by, release date, series|,|X|<!--
 
   -->{{#if:{{{X|}}}|{{#set:X={{{X}}}}}}}|}}<!--
 
   -->{{#if:{{{X|}}}|{{#set:X={{{X}}}}}}}|}}<!--
-->{{#arraymap: author, translator, illustrator, cover artist, isbn, media type, subject, genre, publisher |,|X|<!--
+
-->{{#arraymap: author, Author, translator, illustrator, cover artist, isbn, media type, subject, genre, publisher |,|X|<!--
 
-->{{#arraymap:{{{X|}}}|,|Q|{{#set:X=Q}}|}}<!--
 
-->{{#arraymap:{{{X|}}}|,|Q|{{#set:X=Q}}|}}<!--
 
-->|}}<!--
 
-->|}}<!--
 
--><caption style="font-size: larger;font-style:italic;font-weight:bold"><!--
 
--><caption style="font-size: larger;font-style:italic;font-weight:bold"><!--
-->{{#if:{{{link|}}}<!--
+
-->{{#if:{{{Link|}}}<!--
then-->|[[ {{{link}}} {{#if:{{{name|}}}|{{{name}}}|{{{title|}}}}} ]]<!--
+
then-->|[[ {{{Link}}} {{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}} ]]<!--
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{title|}}}}}<!--
+
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}<!--
 
-->}}</caption><!--
 
-->}}</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 35: Line 36:
 
<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    =  

Revision as of 19:36, 25 June 2013

{{#if:|

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

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.