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