Actions

Template

Difference between revisions of "Infobox Book"

From

 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Books]]<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;"><!--
 
-->{{#if:{{{Title|}}}|{{#set:name={{{Title}}}}}}}<!--
 
-->{{#if:{{{Title|}}}|{{#set:name={{{Title}}}}}}}<!--
-->{{#arraymap: author, Author, name, country, Link, image, image caption, title_orig, pages, size-weight, translator, illustrator, cover artist, language, preceded_by, followed_by, release date, series, publisher|,|X|<!--
+
-->{{#if:{{{Link|}}}|{{#set:Link={{{Link}}}/summary}}}}<!--
  -->{{#if:{{{X|}}}|{{#set:X={{{X}}}}}}}|}}<!--
+
-->{{#arraymap: isbn, media type |,|X|<!--
+
-->{{#arraymap:{{{X|}}}|,|Q|{{#set:X=Q}}|}}<!--
+
-->|}}<!--
+
-->{{#arraymap: subject, genre |,|X|<!--
+
-->{{#arraymap:{{{X|}}}|,|Q|{{#set:X=Subject: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}}}/summary {{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}]<!--
 
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}<!--
 
else-->|{{#if:{{{name|}}}|{{{name}}}|{{{Title|}}}}}<!--
 
-->}}</caption><!--
 
-->}}</caption><!--
Line 34: 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==

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.