Help us get to over 8,750 articles in 2024.

If you know of a magician not listed in MagicPedia, start a New Biography for them. Contact us at magicpediahelp@gmail.com

Difference between revisions of "Template:Infobox book"

From Magicpedia, the free online encyclopedia for magicians by magicians.
Jump to: navigation, search
m
m
 
(135 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{infobox
+
<includeonly>{{infobox
| title      = ''{{{title|{{PAGENAME}}}}}''
+
| bodystyle  = margin: 0px 10px 10px 10px; padding: 0px; background-color:#E6E6FA;width:{{{infoboxwidth|{{{width|20em}}}}}};
| image      = {{#if:{{{image_file<includeonly>|</includeonly>}}}|[[Image:{{{image_file}}}|{{px|{{{image_size|}}}|120}}]]}}
+
| above = ''{{{title|{{PAGENAME}}}}}''
| caption    = {{{image_caption<includeonly>|</includeonly>}}}
+
| image      = {{#if:{{{image_file|}}}|[[Image:{{{image_file}}}|{{px|{{{image_size|}}}|140}}]]}}
 +
| caption    = {{{image_caption|}}}
 
| label1    = Author
 
| label1    = Author
| data1      = {{{author<includeonly>|</includeonly>}}}
+
| data1      = {{#if:{{{author|}}}|{{#if:{{#pos:{{{author}}}|]]|}}|{{{author}}}|[[{{{author}}}]] }} }}
| label2    = {{{editor_title|Editors}}}
+
| label2     = Coauthor
| data2     = {{{editors<includeonly>|</includeonly>}}}
+
| data2      = {{#if:{{{coauthor|}}}|{{#if:{{#pos:{{{coauthor}}}|]]|}}|{{{coauthor}}}|[[{{{coauthor}}}]] }} }}
| label3     = Publisher
+
| label3     = {{{editor_title|Editor}}}
| data3     = {{{publisher<includeonly>|</includeonly>}}}
+
| data3     = {{{editor|}}}
| label4   = Illustrator
+
| label4     = Publisher
| data4     = {{{Illustrator<includeonly>|</includeonly>}}}
+
| data4     = {{#if:{{{publisher|}}}|[[{{{publisher}}}]]}}
| label5    = Publication Date
+
| label30   = Subject
| data5    = {{{ pub_date<includeonly>|</includeonly>}}}
+
| data30     = {{{subject|}}}
| label6    = Language
+
| label5    = Illustrator
| data6    = {{{language<includeonly>|</includeonly>}}}
+
| data5    = {{{illustrator|}}}
| label7    = Google books
+
| label6    = Publication Date
| data7    = http://books.google.com/books?id={{{gbooks<includeonly>|</includeonly>}}}  
+
| data6    = {{#if:{{{pub_date|}}}|[[{{{pub_date}}}]]}}  
 +
| label7    = Language
 +
| data7    = {{#if:{{{language|}}}|{{{language|}}}|English }}
 +
| label20    = Pages
 +
| data20    = {{{pages|}}}
 
| label8    = ISBN:
 
| label8    = ISBN:
| data8     = {{{isbn<includeonly>|</includeonly>}}}
+
|data8 = {{#if:{{{isbn|}}} | {{#iferror: {{#expr:{{{isbn}}}}} | {{{isbn}}} | [[Special:Booksources/{{{isbn}}}|{{{isbn}}}]] }} }}
| label9    = series
+
| label9    = Series
| data9    = {{{series<includeonly>|</includeonly>}}}
+
| data9    = {{{series|}}}
| label10    = preceded_by
+
| label10    = Preceded by
| data10    = {{{preceded_by<includeonly>|</includeonly>}}}
+
| data10    = {{{preceded_by|}}}
| label11    = followed_by
+
| label11    = Followed by
| data11    = {{{followed_by<includeonly>|</includeonly>}}}
+
| data11    = {{{followed_by|}}}
}}<noinclude>
+
| label12    = [[AskAlexander]]
 +
| data12= {{#if:{{{alex|}}}| [http://askalexander.org/displaypdf.cgi?pgnum=1&did={{urlencode:{{{alex}}}}} {{{alex}}}] }}
 +
| label13    = [[CARC]]
 +
| data13= {{#if:{{{carc|}}}| [http://www.conjuringlibrary.net/newopc/booksview.asp?key={{urlencode:{{{carc}}}}} {{{carc}}}] }}
 +
| label14    = Denis Behr's Conjuring Archive
 +
| data14= {{#if:{{{behr|}}}| [http://www.conjuringarchive.com/show.php?book={{urlencode:{{{behr}}}}} {{{behr}}}] }}
 +
| label60    = 
 +
| data60=
 +
| below  =  &nbsp;
 +
}}[[Category:Books]]<div style="margin:50px 20px;clear:right;float:right">{{#if:{{{gbooks|}}}|{{#widget:Google Books|id={{{gbooks}}} }}[[Category:Books available on Google Books]] }}</div>
 +
{{#if:{{{author|}}}|{{#if:{{#pos:{{{author}}}|]]|}}||[[Category:Books by {{{author}}}]]}} }}
 +
{{#if:{{{coauthor|}}}|{{#if:{{#pos:{{{coauthor}}}|]]|}}||[[Category:Books by {{{coauthor}}}]]}} }}
 +
{{#if:{{{language|}}}|[[Category:{{{language}}} books]]| [[Category:English books]]}}
 +
{{#if:{{{pub_date|}}}|[[Category:Books published in {{{pub_date}}}]]}}
 +
{{#if:{{{publisher|}}}|[[Category:Books published by {{{publisher}}}]]}}</includeonly><noinclude>
 
=== Usage ===
 
=== Usage ===
 
To use this template please add the following code to the top of the article.
 
To use this template please add the following code to the top of the article.
  
''Note: If you have no information for a certain parameter please just blank it rather than removing it so that other editors can see that it needs adding at a later stage''
 
  
 
<pre style="overflow:auto">{{Infobox book
 
<pre style="overflow:auto">{{Infobox book
| title          =  
+
| author          = <!-- only list one primary author-->
 +
| coauthor        = 
 +
| pub_date        =
 +
| publisher      =
 +
| subject        =
 
| image_file      =  
 
| image_file      =  
 
| image_size      =  
 
| image_size      =  
 
| image_caption  =  
 
| image_caption  =  
 
| editor          =  
 
| editor          =  
| publisher      =
+
| illustrator    =
| pub_date        =  
+
| language        = English
| language        =  
+
| pages          =  
| gbooks          =  
+
 
| isbn            =
 
| isbn            =
 
| series          =
 
| series          =
 
| preceded_by    =
 
| preceded_by    =
 
| followed_by    =
 
| followed_by    =
 +
| gbooks          = <!-- google books ID -->
 
}}
 
}}
 
</pre>  
 
</pre>  
 +
 +
''Note: If you have no information for a certain parameter please just blank it rather than removing it so that other editors can see that it needs adding at a later stage''
 
    
 
    
 
    
 
    
 
</noinclude>
 
</noinclude>

Latest revision as of 16:03, 7 July 2013

Usage

To use this template please add the following code to the top of the article.


{{Infobox book
| author          = <!-- only list one primary author-->
| coauthor        =  
| pub_date        = 
| publisher       = 
| subject         =
| image_file      = 
| image_size      = 
| image_caption   = 
| editor          = 
| illustrator     =
| language        = English
| pages           = 
| isbn            =
| series          =
| preceded_by     =
| followed_by     =
| gbooks          = <!-- google books ID -->
}}

Note: If you have no information for a certain parameter please just blank it rather than removing it so that other editors can see that it needs adding at a later stage